:root {
  --lamp: oklch(0.9 0.14 98);
  --lamp-hi: oklch(0.95 0.08 100);
  --lamp-lo: oklch(0.86 0.15 95);
  --lamp-deep: oklch(0.8 0.15 90);
  --ink: oklch(0.25 0.075 265);
  --deep: oklch(0.2 0.06 268);
  --ink-2: oklch(0.42 0.07 265);
  --ink-soft: oklch(0.25 0.075 265 / 0.14);
  --rim: oklch(0.38 0.08 268);
  --glow: oklch(0.88 0.15 98);
  --glow-2: oklch(0.8 0.08 98);
  --heat: oklch(0.62 0.2 25);
  --neg: oklch(0.5 0.19 25);
  --leaf: oklch(0.46 0.13 150);
  --cheek: oklch(0.8 0.09 5);
  --eye: oklch(0.97 0.02 100);
  --display: "Bagel Fat One", "Rethink Sans", system-ui, sans-serif;
  --text: "Rethink Sans", system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 18px;
  --bar: 62px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 70% 18%, var(--lamp-hi), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, var(--lamp-lo), transparent 70%),
    var(--lamp);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: 0.2;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .bar, .foot { position: relative; z-index: 1; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--glow); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.band-ink :focus-visible, .foot :focus-visible { outline-color: var(--glow); }

/* ---------- bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  height: var(--bar);
  display: flex; align-items: center; gap: 20px;
  padding: 0 clamp(14px, 3vw, 36px);
  background: color-mix(in oklch, var(--lamp-hi) 92%, transparent);
  border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 32px; color: var(--ink); }
.brand-name { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.01em; line-height: 1; }
.brand-name span { color: var(--ink-2); }
.routes { display: flex; gap: 4px; margin-left: 12px; }
.routes a {
  text-decoration: none; font-weight: 650; font-size: 0.97rem;
  padding: 8px 14px; border-radius: 12px; color: var(--ink-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.routes a:hover { background: var(--ink-soft); color: var(--ink); }
.routes a[aria-current="page"] { background: var(--ink); color: var(--glow); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.chip {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px 0 8px;
  border: 2px solid var(--ink); border-radius: 13px;
  background: var(--lamp); cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.chip:hover { background: var(--lamp-hi); transform: translateY(-1px); }
.chip-img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.chip-sym { font-weight: 800; font-size: 0.92rem; }
.chip-price { font-weight: 600; font-size: 0.92rem; }
.chip-chg { font-weight: 700; font-size: 0.85rem; }
.up { color: var(--leaf); }
.down { color: var(--neg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 14px; border: 2px solid var(--ink);
  font-weight: 750; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-ink {
  background: linear-gradient(180deg, var(--rim), var(--ink) 55%);
  color: var(--glow);
  box-shadow: inset 0 1px 0 oklch(0.55 0.08 268 / 0.7), 0 6px 18px -8px oklch(0.25 0.075 265 / 0.6);
}
.btn-ink:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 oklch(0.55 0.08 268 / 0.7), 0 12px 24px -10px oklch(0.25 0.075 265 / 0.7); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink-soft); }
.btn-glow { background: var(--glow); color: var(--deep); border-color: var(--glow); }
.btn-glow:hover { transform: translateY(-2px); }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 1.05rem; border-radius: 16px; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 2px solid currentColor; border-radius: 11px; background: transparent; cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--ink-soft); }
.copy {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 0 10px; border-radius: 9px;
  border: 1.5px solid currentColor; background: transparent;
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.copy svg { width: 14px; height: 14px; }

/* ---------- stage (hero) ---------- */
.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 430px) minmax(230px, 280px);
  grid-template-areas: "copy lamp tag";
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  min-height: calc(100svh - var(--bar));
  padding: clamp(20px, 3vw, 40px) clamp(18px, 4vw, 64px) 36px;
  overflow: hidden;
}
.stage-word {
  position: absolute; right: -4vw; bottom: -6vw;
  font-family: var(--display); font-size: clamp(180px, 34vw, 560px); line-height: 0.8;
  color: var(--lamp-lo); pointer-events: none; user-select: none; z-index: 0;
  letter-spacing: -0.02em;
}
.stage > *:not(.stage-word) { position: relative; z-index: 1; }
.stage-copy { grid-area: copy; max-width: 640px; }
.hero-h {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.8rem, 6.2vw, 6.2rem); line-height: 0.92;
  letter-spacing: -0.01em; margin: 0 0 22px; text-wrap: balance;
}
.hero-rule { font-size: clamp(1.05rem, 1.3vw, 1.22rem); max-width: 34em; margin: 0 0 26px; color: var(--ink); }
.burned { display: flex; flex-direction: column; margin-bottom: 26px; }
.burned-n { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; }
.burned-l { font-weight: 650; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.proof { margin: 0; font-weight: 600; color: var(--ink-2); font-size: 0.97rem; }
.proof a { font-weight: 750; color: var(--ink); }

.lamp-wrap { grid-area: lamp; position: relative; height: min(80svh, 740px); min-height: 520px; }
.lamp { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; border-radius: 20px; }
.lamp:focus-visible { outline-offset: -2px; }
.lamp-base {
  position: absolute; left: 50%; bottom: 6.5%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
  color: var(--glow);
}
.base-l { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--glow-2); }
.base-t { font-family: var(--display); font-size: 1.7rem; line-height: 1; }
.lamp-pool {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 24.5%; pointer-events: none;
  font-size: 0.8rem; font-weight: 750; color: var(--glow);
  white-space: nowrap; text-align: center;
}
.lamp-pause {
  position: absolute; right: 6px; top: 6px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 10px;
  border: 2px solid var(--ink); background: var(--lamp-hi); color: var(--ink); cursor: pointer;
}
.lamp-pause svg { width: 16px; height: 16px; fill: currentColor; }

.tag {
  grid-area: tag; align-self: center;
  position: relative;
  background: var(--lamp-hi);
  border: 2px solid var(--ink);
  border-radius: 18px 18px 18px 18px;
  padding: 34px 20px 16px;
  transform: rotate(-2.2deg);
  box-shadow: 0 18px 40px -22px oklch(0.25 0.075 265 / 0.55);
}
.tag::before {
  content: ""; position: absolute; left: 50%; top: -46px; width: 2px; height: 50px;
  background: var(--ink); transform: rotate(10deg); transform-origin: bottom;
}
.tag-hole { position: absolute; left: 50%; top: 12px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--ink); background: var(--lamp); }
.tag-k { font-size: 0.82rem; font-weight: 750; color: var(--ink-2); margin: 0 0 2px; }
.tag-big { font-family: var(--display); font-size: 2.1rem; line-height: 1; margin: 0 0 4px; }
.tag-line { margin: 0 0 12px; font-weight: 600; }
.tag-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 0.93rem; }
.tag-dl dt { color: var(--ink-2); font-weight: 650; }
.tag-dl dd { margin: 0; text-align: right; font-weight: 700; }
.tag-link { font-weight: 750; font-size: 0.93rem; }
.tag-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--ink-soft); }
.tag-count { font-weight: 700; font-size: 0.88rem; color: var(--ink-2); }

/* ---------- bands ---------- */
.band { padding: clamp(56px, 8vw, 110px) clamp(18px, 4vw, 64px); position: relative; }
.sec-h { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 0.95; margin: 0 0 14px; text-wrap: balance; }
.sec-h-sm { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.sec-p { margin: 0 0 20px; max-width: 40em; color: var(--ink-2); font-weight: 500; }

.band-flow { background: var(--lamp-hi); border-top: 2px solid var(--ink); }
.flow-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; margin-bottom: 40px; }
.flow { position: relative; display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 20px; align-items: end; }
.flow-cord { position: absolute; left: 0; right: 0; top: 0; height: 60px; pointer-events: none; overflow: visible; }
.flow-cord path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.flow-cord .drip { stroke: var(--lamp-deep); stroke-width: 3; stroke-dasharray: 4 22; animation: drip 2.4s linear infinite; }
@keyframes drip { to { stroke-dashoffset: -52; } }
.src {
  align-self: end; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; border-radius: var(--r); background: var(--ink); color: var(--glow);
}
.src-k { font-weight: 700; color: var(--glow-2); font-size: 0.9rem; }
.src-v { font-family: var(--display); font-size: 2.2rem; line-height: 1; margin: 6px 0; }
.src-s { font-size: 0.9rem; color: var(--glow-2); }
.flow::before { content: ""; position: absolute; top: 0; height: 3px; background: var(--ink); left: calc((100% - 60px) * 0.134); right: calc((100% - 60px) * 0.122); border-radius: 2px; }
.vessel { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 70px; }
.vessel::before { content: ""; position: absolute; top: 0; left: 50%; width: 3px; height: 64px; margin-left: -1.5px; background: var(--ink); }
@media (max-width: 860px) { .flow::before, .vessel::before { display: none; } }
.vessel svg { width: 88px; height: 150px; margin-bottom: 10px; overflow: visible; }
.vessel-pct { font-family: var(--display); font-size: 2.8rem; line-height: 0.9; }
.vessel-l { font-weight: 800; margin: 4px 0 6px; }
.vessel-s { font-size: 0.93rem; color: var(--ink-2); margin: 0 0 4px; }
.vessel-s strong { color: var(--ink); }
.vessel a { font-weight: 700; font-size: 0.9rem; }

.band-ink { background: var(--deep); color: var(--glow); }
.band-ink .sec-p { color: var(--glow-2); }
.hours-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 40px; margin-bottom: 30px; }
.hours-head .sec-p { margin: 0; }
.drops { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; align-items: end; height: 150px; margin-bottom: 8px; }
.drop {
  position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--glow);
}
.drop svg { width: 100%; max-width: 30px; overflow: visible; transition: transform 0.2s var(--ease); }
.drop:hover svg, .drop:focus-visible svg, .drop[aria-pressed="true"] svg { transform: translateY(-4px); }
.drop-h { font-size: 0.72rem; font-weight: 700; color: var(--glow-2); margin-top: 6px; height: 1em; }
.drop-detail { max-width: 65ch; min-height: 1.6em; font-weight: 650; margin: 10px 0 30px; color: var(--glow); }
.ledger-mini { border-top: 2px solid oklch(0.88 0.15 98 / 0.3); margin-bottom: 30px; }
.lrow { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid oklch(0.88 0.15 98 / 0.18); }
.lrow .r { text-align: right; }
.lrow a { font-weight: 700; }
.lrow-t { color: var(--glow-2); font-weight: 600; }
.lrow-v { font-weight: 750; }
.empty { padding: 26px 0; font-weight: 600; color: var(--ink-2); }
.band-ink .empty { color: var(--glow-2); }

.band-drop { background: var(--lamp); border-top: 2px solid var(--ink); }
.drop-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr); gap: 40px 70px; align-items: start; }
.countdown { display: flex; gap: 10px; margin: 8px 0 24px; flex-wrap: wrap; }
.cd-seg { min-width: 86px; padding: 12px 12px 10px; border-radius: 16px; background: var(--ink); color: var(--glow); text-align: center; }
.cd-n { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; display: block; }
.cd-l { font-size: 0.78rem; font-weight: 700; color: var(--glow-2); }
.drop-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.fact { display: flex; flex-direction: column; }
.fact-v { font-weight: 800; font-size: 1.25rem; }
.fact-l { font-size: 0.88rem; color: var(--ink-2); font-weight: 600; }

.me-card {
  background: var(--lamp-hi); border: 2px solid var(--ink); border-radius: 22px;
  padding: 24px; position: relative; overflow: hidden;
}
.me-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1; margin: 0 0 10px; }
.me-card p { margin: 0 0 14px; }
.me-big { font-family: var(--display); font-size: 2.6rem; line-height: 1; margin: 6px 0 6px; }
.me-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1.5px dashed var(--ink-soft); font-weight: 650; }
.me-row span:first-child { color: var(--ink-2); }
.stamp {
  display: inline-block; font-family: var(--display); font-size: 1.1rem;
  padding: 4px 12px; border: 2.5px solid currentColor; border-radius: 10px; transform: rotate(-4deg);
  animation: stamp 0.5s var(--ease) both;
}
.stamp.ok { color: var(--leaf); }
.stamp.no { color: var(--neg); }
@keyframes stamp { from { transform: rotate(-4deg) scale(1.6); opacity: 0; } to { transform: rotate(-4deg) scale(1); opacity: 1; } }
.meter { height: 12px; border-radius: 8px; background: var(--ink-soft); overflow: hidden; margin: 8px 0 4px; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 8px; transform-origin: left; animation: grow 0.8s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

.band-split { background: var(--lamp-hi); border-top: 2px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px 80px; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow: auto; }
.feed li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1.5px dashed var(--ink-soft); }
@starting-style { .feed li.new { opacity: 0; transform: translateY(-8px); } }
.feed li { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 1.2s ease; }
.feed li.flash { background: var(--lamp); }
.feed svg { width: 16px; height: 18px; }
.feed .t { font-size: 0.85rem; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.feed a { font-weight: 700; }
.faq details { border-bottom: 1.5px dashed var(--ink-soft); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 750; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.3rem; line-height: 1; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 14px; color: var(--ink-2); }

/* ---------- pages ---------- */
.page { max-width: 1160px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 40px) 90px; }
.page-head { margin-bottom: 26px; }
.page-h { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 0.92; margin: 0 0 12px; }
.totals { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-bottom: 26px; padding: 20px 24px; border-radius: 20px; background: var(--ink); color: var(--glow); }
.totals .fact-l { color: var(--glow-2); }
.totals .fact-v { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.05; }
.table-wrap { border: 2px solid var(--ink); border-radius: 18px; background: var(--lamp-hi); overflow: auto; max-height: 70vh; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { position: sticky; top: 0; z-index: 1; background: var(--ink); color: var(--glow); text-align: left; font-size: 0.88rem; font-weight: 750; padding: 0 14px; height: 46px; white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1.5px solid var(--ink-soft); white-space: nowrap; }
.table .r { text-align: right; }
.table tr.mine td { background: var(--lamp); font-weight: 750; }
.table a { font-weight: 700; }
.sort { background: none; border: 0; padding: 0; color: inherit; font-weight: 750; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; min-height: 32px; }
.sort::after { content: ""; width: 0; height: 0; border: 5px solid transparent; opacity: 0.3; border-top-color: currentColor; margin-top: 5px; }
.sort[aria-sort="descending"]::after { opacity: 1; }
.sort[aria-sort="ascending"]::after { opacity: 1; border-top-color: transparent; border-bottom-color: currentColor; margin-top: -5px; }
th.r .sort { flex-direction: row; }
#burnMore, #holderMore { margin-top: 16px; }
.hourlog { margin-top: 40px; }
.hourlog h2 { margin-bottom: 8px; }
.hour-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hchip { font-size: 0.8rem; font-weight: 700; padding: 4px 9px; border-radius: 8px; border: 1.5px solid var(--ink); }
.hchip.burned { background: var(--ink); color: var(--glow); }
.hchip.error { border-color: var(--neg); color: var(--neg); }
.air-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr); gap: 30px 50px; margin-bottom: 44px; align-items: start; }
.list-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.list-tools .sec-h { margin: 0; }
.search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--lamp-hi); min-width: min(320px, 100%); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { border: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; outline: none; }
.search input::placeholder { color: var(--ink-2); }
.search:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.past-h { margin-top: 50px; }
.past { display: grid; gap: 10px; }
.past-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--lamp-hi); border: 2px solid var(--ink); }
.past-row .r { text-align: right; }
.addr { font-family: var(--mono); font-size: 0.86rem; }

/* skeleton */
.sk { display: block; height: 1em; border-radius: 6px; background: linear-gradient(90deg, var(--ink-soft), oklch(0.25 0.075 265 / 0.06), var(--ink-soft)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
.band-ink .sk { background: linear-gradient(90deg, oklch(0.88 0.15 98 / 0.18), oklch(0.88 0.15 98 / 0.06), oklch(0.88 0.15 98 / 0.18)); background-size: 200% 100%; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- sheet ---------- */
.sheet {
  position: fixed; z-index: 40; top: calc(var(--bar) + 8px); right: clamp(12px, 3vw, 36px);
  width: min(380px, calc(100vw - 24px));
  background: var(--lamp-hi); border: 2px solid var(--ink); border-radius: 20px; padding: 18px;
  box-shadow: 0 30px 60px -30px oklch(0.2 0.06 268 / 0.6);
  animation: sheetIn 0.25s var(--ease);
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(-6px); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sheet-head h2 { font-family: var(--display); font-weight: 400; margin: 0; font-size: 1.7rem; }
.sheet-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 6px 0 12px; }
.spark { width: 100%; height: 60px; display: block; margin-bottom: 12px; }
.ca { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--lamp); margin-bottom: 12px; }
.amts { display: flex; gap: 6px; margin-bottom: 10px; }
.amt { flex: 1; min-height: 40px; border-radius: 11px; border: 2px solid var(--ink); background: transparent; font-weight: 750; cursor: pointer; }
.amt[aria-pressed="true"] { background: var(--ink); color: var(--glow); }
.sheet .btn { width: 100%; }
.sheet-note { font-size: 0.85rem; color: var(--ink-2); margin: 10px 0 0; }
.sheet-err { color: var(--neg); font-weight: 650; font-size: 0.9rem; margin: 8px 0 0; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 60; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--glow); border-radius: 14px; padding: 12px 16px; font-weight: 650; box-shadow: 0 16px 30px -16px oklch(0.2 0.06 268 / 0.8); animation: sheetIn 0.25s var(--ease); }
.toast.err { background: var(--neg); color: var(--eye); }
.toast a { color: inherit; font-weight: 800; }

/* ---------- footer ---------- */
.foot { background: var(--deep); color: var(--glow); padding: 60px clamp(18px, 4vw, 64px) 50px; border-top: 2px solid var(--ink); }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px 40px; max-width: 1300px; }
.foot-mark { width: 54px; height: 50px; color: var(--glow); --eye: var(--deep); }
.foot p { margin: 6px 0; color: var(--glow-2); }
.foot h3 { font-size: 0.95rem; margin: 0 0 10px; color: var(--glow); }
.foot-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.foot-col a { font-weight: 650; }
.foot .addr { color: var(--glow); word-break: break-all; }

.tabs { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); grid-template-areas: "copy lamp" "tag lamp"; }
  .tag { max-width: 320px; margin-left: 30px; align-self: start; }
}
@media (max-width: 860px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .src { grid-column: 1 / -1; }
  .flow-cord { display: none; }
  .vessel { padding-top: 10px; }
  .flow-head, .drop-grid, .band-split, .air-top { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --bar: 56px; }
  body { font-size: 16px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .routes { display: none; }
  .brand-name span { display: none; }
  .bar { gap: 10px; }
  .chip-chg, .chip-sym, .chip-img { display: none !important; }
  .chip { padding: 0 10px; }
  .hero-h { font-size: clamp(2.3rem, 10.5vw, 3rem) !important; }
  .hero-rule { font-size: 1rem; }
  .lamp-wrap { height: 480px !important; }
  .btn { min-height: 42px; padding: 0 14px; }
  .stage {
    grid-template-columns: 1fr; grid-template-areas: "copy" "lamp" "tag";
    min-height: 0; padding-top: 22px; gap: 18px;
  }
  .stage-word { font-size: 64vw; bottom: auto; top: 40%; right: -10vw; }
  .hero-h { font-size: clamp(2.6rem, 12vw, 3.6rem); margin-bottom: 14px; }
  .hero-rule { margin-bottom: 18px; }
  .burned { margin-bottom: 18px; }
  .hero-actions .btn { flex: 1; }
  .lamp-wrap { height: 540px; min-height: 0; max-width: 360px; width: 100%; margin: 0 auto; }
  .tag { margin: 30px auto 0; width: 100%; max-width: 360px; transform: rotate(-1.5deg); }
  .drops { height: 110px; gap: 2px; }
  .drop-h { font-size: 0.62rem; }
  .lrow { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .lrow .lrow-s { grid-column: 1; }
  .past-row { grid-template-columns: 1fr auto; }
  .flow { grid-template-columns: 1fr; }
  .vessel { display: grid; grid-template-columns: 70px 1fr; column-gap: 16px; align-items: center; }
  .vessel svg { width: 64px; height: 110px; grid-row: 1 / span 5; margin: 0; }
  .sheet { top: auto; bottom: calc(64px + env(safe-area-inset-bottom)); right: 8px; left: 8px; width: auto; border-radius: 22px 22px 16px 16px; }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); right: 12px; left: 12px; max-width: none; }
  .foot-in { grid-template-columns: 1fr; }
  .tabs {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--deep); border-top: 2px solid var(--ink);
  }
  .tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--glow-2); font-size: 0.78rem; font-weight: 700; }
  .tabs a svg { width: 22px; height: 22px; }
  .tabs a[aria-current="page"] { color: var(--glow); }
  .table td, .table th { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 380px) {
  .chip-price { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
