/* Octanks: bright paper, like the tanks' own art. Cream page, white cards, ink type, with amber and
   magma as the fuel. Amber is a fill colour here, never text: on paper it is too light to read, so
   links and small accents use --accent, a burnt orange. Motion is decorative and switches off with
   prefers-reduced-motion; nothing on the page depends on it. */
:root {
  color-scheme: light;
  --bg: #fbf7ef;
  --bg-2: #f4ecdd;
  --panel: #ffffff;
  --panel-2: #fffcf6;
  --line: #ece2d0;
  --line-2: #ded0b8;
  --line-3: #c9b89a;
  --text: #1b160f;
  --text-2: #4b4337;
  --text-3: #6a604f;
  --ink: #1b160f;
  --amber: #ffb000;
  --amber-2: #ffc233;
  --magma: #ff5a36;
  --hot: #e8600c;
  --accent: #c2410c;
  --accent-2: #9a3412;
  --danger: #d23a16;
  --ok: #15803d;
  --glow: rgba(255, 176, 0, 0.22);
  --shade: 74, 52, 18; /* the warm brown every shadow is mixed from */
  --shadow-sm: 0 1px 2px rgba(var(--shade), 0.06), 0 6px 18px -8px rgba(var(--shade), 0.16);
  --shadow-lg: 0 34px 64px -30px rgba(var(--shade), 0.38), 0 2px 6px rgba(var(--shade), 0.05);
  --glass: rgba(251, 247, 239, 0.82);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --wrap: 1180px;
  --gut: max(20px, calc((100vw - var(--wrap)) / 2));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 66px;
  --pager-h: 74px;
  --chrome: calc(var(--nav-h) + var(--pager-h));
  --sans: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "SF Mono", Consolas, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--sans);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* film grain and two slow glows, behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 88% -8%, rgba(255, 176, 0, 0.24), transparent 62%),
    radial-gradient(50vw 40vw at -10% 45%, rgba(255, 90, 54, 0.1), transparent 60%),
    radial-gradient(40vw 30vw at 50% 110%, rgba(255, 176, 0, 0.14), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--amber); color: var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--text-3); }
.fine { color: var(--text-3); font-size: 13px; line-height: 1.55; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 20; transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; padding: 16px var(--gut); transition: padding 0.3s ease; }
.nav.scrolled .nav-in { padding-top: 11px; padding-bottom: 11px; }
.brand { display: flex; flex: none; }
.brand img { width: 128px; height: auto; }
.tabs { position: relative; display: flex; gap: 2px; margin-left: auto; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.78); box-shadow: var(--shadow-sm); }
.tabs a { position: relative; color: var(--text-3); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color 0.2s ease, background 0.2s ease; }
.tabs a:hover { color: var(--text); background: rgba(27, 22, 15, 0.04); }
.tabs a.active { color: var(--text); background: rgba(255, 176, 0, 0.2); }
.tab-ink { position: absolute; left: 0; bottom: 3px; height: 2px; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--amber), var(--magma)); box-shadow: 0 0 10px rgba(255, 160, 20, 0.7); transition: transform 0.5s var(--ease), width 0.5s var(--ease); pointer-events: none; }

/* ------------------------------------------------------------ buttons */
.btn {
  appearance: none; cursor: pointer; font: inherit; font-weight: 650; font-size: 15px; letter-spacing: -0.005em;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; isolation: isolate; overflow: hidden;
  transition: transform 0.18s var(--ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, color 0.2s ease;
}
.btn span[aria-hidden] { transition: transform 0.25s var(--ease); }
.btn:hover:not(:disabled) span[aria-hidden] { transform: translateX(3px); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.99); }
.btn:disabled { cursor: not-allowed; opacity: 0.5; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 0 0 0 var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary:hover:not(:disabled) { background: var(--amber-2); color: var(--ink); box-shadow: 0 8px 30px -6px rgba(255, 176, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
/* a light sweep across primary buttons on hover */
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%); transform: translateX(-120%); }
.btn-primary:hover:not(:disabled)::after { transform: translateX(120%); transition: transform 0.7s ease; }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover:not(:disabled) { border-color: var(--line-3); background: #fff8ea; color: var(--text); }

/* ------------------------------------------------------------ layout */
main { overflow-x: clip; }
.page { width: min(var(--wrap), 100% - 40px); margin-inline: auto; padding: 44px 0 40px; }
.section-head { margin-bottom: 34px; max-width: 64ch; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; font-weight: 800; font-style: italic; letter-spacing: -0.035em; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 700; }
.section-head p { margin: 16px 0 0; font-size: 17px; }
.index { display: flex; align-items: center; gap: 12px; margin: 0 0 18px !important; font: 600 12px/1 var(--mono) !important; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.index span { color: var(--text-3); }
.index::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); order: 1; }
.index span { order: 2; }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 40px; align-items: center;
  width: min(var(--wrap), 100% - 40px); margin-inline: auto; min-height: calc(100svh - var(--chrome) - 70px); padding: 24px 0 32px;
}
.hero-grid {
  position: absolute; inset: -80px -50vw 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.8;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(70% 70% at 70% 40%, #000 0%, transparent 70%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.7); font: 600 11.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 176, 0, 0.6); animation: ping 2.4s ease-out infinite; }
h1 { font-size: clamp(40px, 4.5vw, 66px); line-height: 0.94; font-weight: 850; font-style: italic; letter-spacing: -0.045em; }
h1 .nw { white-space: nowrap; }
h1 .hl { display: block; background: linear-gradient(100deg, var(--hot) 10%, #dd4d14 55%, var(--danger) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); max-width: 50ch; margin: 28px 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* the pump readout: a small gauge beside three live numbers */
.pump { display: flex; align-items: center; gap: 22px; margin-top: 44px; padding: 16px 22px 16px 16px; max-width: 560px; border: 1px solid var(--line); border-radius: var(--r-md); background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 252, 246, 0.78)); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); }
.pump-gauge { width: 64px; height: 64px; flex: none; }
.pump-read { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 30px; margin: 0; }
.pump-read dt { font: 600 10.5px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.pump-read dd { margin: 5px 0 0; font: 700 18px/1.15 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
#stat-status { color: var(--accent); }

/* gauge parts, shared by both gauges */
.g-track, .bg-track { fill: none; stroke: #e6dac5; stroke-linecap: round; }
.g-track { stroke-width: 7; }
.bg-track { stroke-width: 10; stroke: #eadfcb; }
.g-hot, .bg-hot { fill: none; stroke: url(#gHot); stroke-linecap: round; }
.g-hot { stroke: var(--amber); stroke-width: 7; }
.bg-hot { stroke-width: 10; filter: drop-shadow(0 0 10px rgba(255, 140, 20, 0.55)); }
.g-hub { fill: var(--amber); }
.g-pin { fill: var(--ink); }
.ticks line { stroke: #cdbfa6; stroke-width: 3; stroke-linecap: round; }
.g-label { font: 800 italic 26px var(--sans); fill: #a89a82; }
.g-label.hot { fill: var(--hot); }
.needle { transform-box: view-box; transform: rotate(96deg); }
.needle-lg { transform-origin: 200px 200px; }
.needle-sm { transform-origin: 60px 60px; }
.needle line { stroke: var(--amber); stroke-linecap: round; }
.needle-lg line { stroke-width: 9; filter: drop-shadow(0 0 8px rgba(255, 176, 0, 0.6)); }
.needle-sm line { stroke-width: 6; }

.hero-stage { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 600px; justify-self: end; --px: 0; --py: 0; }
.big-gauge { position: absolute; left: 4%; top: -2%; width: 92%; height: auto; opacity: 0.95; transform: translate(calc(var(--px) * -10px), calc(var(--py) * -10px)); transition: transform 0.6s var(--ease); }
.fan { position: absolute; inset: 0; transform: translate(calc(var(--px) * 14px), calc(var(--py) * 14px)); transition: transform 0.6s var(--ease); }
.card { position: absolute; width: 46%; border-radius: 20px; border: 1px solid rgba(27, 22, 15, 0.08); box-shadow: 0 40px 70px -24px rgba(var(--shade), 0.45), 0 0 0 1px rgba(var(--shade), 0.06); }
.c1 { left: 1%; top: 57%; width: 40%; --r: -9deg; transform: rotate(var(--r)); animation: float 7s ease-in-out infinite; }
.c3 { right: 1%; top: 57%; width: 40%; --r: 9deg; transform: rotate(var(--r)); animation: float 7.6s ease-in-out -2.4s infinite; }
.c2 { left: 29%; top: 51%; width: 42%; --r: 0deg; z-index: 2; box-shadow: 0 50px 90px -24px rgba(var(--shade), 0.5), 0 0 60px -10px rgba(255, 176, 0, 0.45); animation: float 6.4s ease-in-out -1.2s infinite; }

/* ------------------------------------------------------------ marquee */
.marquee { position: relative; overflow: hidden; border-block: 0; background: var(--amber); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 36s linear infinite; }
.marquee span { font: 800 italic clamp(20px, 2.4vw, 30px)/1 var(--sans); letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; text-transform: uppercase; }
.marquee span:nth-of-type(4n + 1) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee i { width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid var(--ink); }

/* ------------------------------------------------------------ mint cards */
.grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grade {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 14px 14px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s ease;
}
.grade::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
  background: linear-gradient(160deg, var(--accent, var(--amber)), transparent 45%, transparent 70%, var(--accent, var(--amber)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.grade:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-lg), 0 0 50px -18px var(--accent-glow, rgba(255, 176, 0, 0.55)); }
.grade:hover::before { opacity: 1; }
.grade[data-tier="0"] { --accent: var(--magma); --accent-glow: rgba(255, 90, 54, 0.55); }
.grade-art { position: relative; border-radius: 16px; overflow: clip; border: 1px solid var(--line); } /* clip, not hidden: a hidden frame counts as a scroll box, and the art's scroll zoom would follow it instead of the page */
.grade-art img { transition: transform 0.7s var(--ease); }
.grade:hover .grade-art img { transform: scale(1.04); }
/* the octane decal, like the sticker on a pump */
.decal { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; min-width: 62px; padding: 6px 8px 5px; border-radius: 8px; background: var(--amber); color: var(--ink); box-shadow: 0 8px 20px -6px rgba(var(--shade), 0.45); transform: rotate(-3deg); }
.grade[data-tier="0"] .decal { background: var(--magma); }
.decal b { font: 900 italic 28px/1 var(--sans); letter-spacing: -0.04em; }
.decal small { font: 700 8.5px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.grade-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 6px 0; }
.grade-head h3 { font-size: 24px; font-style: italic; font-weight: 800; letter-spacing: -0.03em; }
.grade-price { font: 700 14px var(--mono); color: var(--text-2); }
.grade > p { margin: -8px 6px 0; color: var(--text-3); font-size: 14.5px; }
.figures { margin: 0 6px; display: grid; gap: 0; font-size: 14px; border-top: 1px solid var(--line); }
.figures div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.figures div:last-child { border-bottom: 0; }
.figures dt { color: var(--text-3); }
.figures dd { margin: 0; font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.figures .strong dd { color: var(--text); font-weight: 700; }
.figures .strong dt { color: var(--text-2); }
.grade .btn { width: 100%; margin-top: auto; }
.mint-fine { margin: 22px 2px 0; max-width: 90ch; }

/* wallet + pending panels */
.wallet-panel, .pending-panel { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; margin: 0 0 22px; background: var(--panel); box-shadow: var(--shadow-sm); }
.wallet-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wallet-heading h3, .pending-panel h3 { margin: 0; }
#wallet-address { font: 600 14px var(--mono); }
#wallet-network { margin: 6px 0 16px; font-size: 14px; }
.wallet-balances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 12px; }
.wallet-balances div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.wallet-balances dt { color: var(--text-3); font: 600 10.5px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.wallet-balances dd { margin: 8px 0 0; font: 700 19px var(--mono); font-variant-numeric: tabular-nums; }
.wallet-panel .fine { margin: 0; }
.pending-panel { border-color: rgba(255, 176, 0, 0.5); box-shadow: 0 0 40px -16px rgba(255, 176, 0, 0.5); }
.pending-panel h3 { display: flex; align-items: center; gap: 10px; }
.pending-panel p { margin: 10px 0; color: var(--text-2); }
.pending-panel .row { align-items: center; gap: 16px; }
#pending-hash { font-family: var(--mono); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 176, 0, 0.25); border-top-color: var(--amber); animation: spin 0.9s linear infinite; }

/* ------------------------------------------------------------ facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-sm); overflow: hidden; }
.facts div { padding: 34px 28px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts strong { display: block; font: 850 italic clamp(36px, 4.2vw, 54px)/1 var(--sans); letter-spacing: -0.045em; background: linear-gradient(180deg, var(--text), #7a6f5f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts div:first-child strong { background: linear-gradient(100deg, var(--hot), var(--danger)); -webkit-background-clip: text; background-clip: text; }
.facts span { display: block; margin-top: 10px; color: var(--text-3); font-size: 14.5px; }

/* ------------------------------------------------------------ tanks */
.rain-line { margin-top: 14px !important; color: var(--accent) !important; font: 500 14px/1.5 var(--mono) !important; }
.rain-line:empty { display: none; }
.tank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.empty {
  grid-column: 1 / -1; margin: 0; padding: 56px 24px 52px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--text-3); text-align: center;
  background: radial-gradient(40% 80% at 50% 0%, rgba(255, 176, 0, 0.12), transparent 70%);
}
.empty::before { content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 16px; opacity: 0.55;
  background: url("mark-light.svg") center / contain no-repeat; }
.tank { position: relative; background: var(--panel); box-shadow: var(--shadow-sm); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.4s var(--ease), border-color 0.3s ease; }
.tank:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.tank.fresh { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 176, 0, 0.12), 0 0 60px -20px rgba(255, 176, 0, 0.6); animation: fresh 1.2s var(--ease) both; }
.tank img { border-radius: 14px; }
.tank-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px; }
.tank-meta strong { font-size: 18px; font-style: italic; letter-spacing: -0.02em; }
.tank-meta span { font: 12.5px var(--mono); color: var(--text-3); }
.tank-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tank-actions .btn { padding: 10px 12px; }
.tank-actions .btn-quiet { grid-column: 1 / -1; background: transparent; border-color: transparent; color: var(--text-3); padding: 6px 12px; font-weight: 500; font-size: 14px; }
.tank-actions .btn-quiet:hover:not(:disabled) { color: var(--text); border-color: var(--line-2); }

/* ------------------------------------------------------------ how it works: a fuel line runs through the steps */
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 28px; right: calc((100% - 60px) / 4 - 28px); top: 27px; height: 2px; border-radius: 2px; }
.steps::before { background: var(--line-2); }
.steps::after { background: linear-gradient(90deg, var(--amber), var(--magma)); transform-origin: left; transform: scaleX(var(--fill, 1)); box-shadow: 0 0 14px rgba(255, 150, 20, 0.6); }
.steps li { position: relative; padding: 0 4px; }
.step-n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 26px; border-radius: 50%; background: var(--bg); border: 2px solid var(--amber); color: var(--accent); font: 700 15px var(--mono); box-shadow: 0 0 0 6px var(--bg), 0 0 30px -6px rgba(255, 176, 0, 0.6); }
.steps h3 { font-size: 21px; font-style: italic; font-weight: 800; letter-spacing: -0.03em; }
.steps p { margin: 10px 0 0; color: var(--text-3); font-size: 15px; }

/* ------------------------------------------------------------ safety */
.safety { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.safety .section-head { margin-bottom: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checks li { position: relative; padding: 24px 22px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); box-shadow: var(--shadow-sm); transition: border-color 0.3s ease, transform 0.4s var(--ease), box-shadow 0.4s ease; }
.checks li:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.checks li::before { content: ""; display: grid; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 10px; background: rgba(255, 176, 0, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2410C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 18px no-repeat; border: 1px solid rgba(255, 176, 0, 0.4); }
.checks h3 { font-size: 17px; }
.checks p { margin: 8px 0 0; color: var(--text-3); font-size: 14.5px; }

/* ------------------------------------------------------------ closing card + footer (on the safety page) */
.final { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: radial-gradient(80% 140% at 0% 100%, rgba(255, 176, 0, 0.24), transparent 70%), var(--panel); box-shadow: var(--shadow-sm); }
.final img { width: 52px; height: 52px; filter: drop-shadow(0 0 18px rgba(255, 176, 0, 0.5)); }
.final div { flex: 1 1 180px; }
.final h3 { font-size: 26px; font-style: italic; font-weight: 850; letter-spacing: -0.035em; }
.final p { margin: 4px 0 0 !important; font-size: 14.5px !important; }
.footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13.5px; }
.footer p { margin: 0; max-width: 70ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ------------------------------------------------------------ dialogs */
dialog { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--panel); color: var(--text); padding: 0; width: min(460px, calc(100% - 32px)); box-shadow: 0 40px 100px -20px rgba(var(--shade), 0.45); }
dialog[open] { animation: pop 0.32s var(--ease); }
dialog::backdrop { background: rgba(43, 32, 16, 0.32); backdrop-filter: blur(6px); }
dialog form { padding: 28px; display: grid; gap: 12px; }
dialog h3 { font-size: 24px; font-style: italic; font-weight: 800; letter-spacing: -0.03em; }
dialog label { font-size: 13px; color: var(--text-3); margin-top: 6px; font-weight: 500; }
dialog input { width: 100%; min-width: 0; font: 16px var(--mono); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 13px 14px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
dialog input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 176, 0, 0.25); }
dialog p { margin: 0; }
.row { display: flex; gap: 10px; }
.row.end { justify-content: flex-end; margin-top: 8px; }
.preview { min-height: 22px; font: 14px var(--mono); color: var(--accent); }
.error { min-height: 20px; font-size: 14px; color: var(--danger); }

/* ------------------------------------------------------------ toasts */
.toasts { position: fixed; z-index: 40; left: 50%; bottom: calc(var(--pager-h) + 16px); transform: translateX(-50%); display: grid; gap: 10px; width: min(480px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border: 1px solid var(--line-2); border-left: 3px solid var(--amber); border-radius: var(--r-sm); padding: 13px 16px; box-shadow: 0 20px 50px -10px rgba(var(--shade), 0.3); font-size: 14.5px; animation: toast 0.4s var(--ease); }
.toast.err { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--ok); }
.toast a { white-space: nowrap; }

/* ------------------------------------------------------------ motion */
/* elements fade up once they enter the viewport; only when JS is on, so nothing hides without it */
/* Stagger steps for the reveal animation, as classes: the page allows no inline style attributes. */
.d1 { --d: 1; }
.d2 { --d: 2; }
.d3 { --d: 3; }
.d4 { --d: 4; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .grades.reveal, .js .steps.reveal, .js .checks.reveal { opacity: 1; transform: none; }
.js .grades.reveal > *, .js .steps.reveal > li, .js .checks.reveal > li { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.3s ease, box-shadow 0.4s ease; }
.js .grades.reveal.in > *, .js .steps.reveal.in > li, .js .checks.reveal.in > li { opacity: 1; transform: none; }
.js .reveal.in > :nth-child(2) { transition-delay: 0.1s, 0.1s, 0s, 0s; }
.js .reveal.in > :nth-child(3) { transition-delay: 0.2s, 0.2s, 0s, 0s; }
.js .reveal.in > :nth-child(4) { transition-delay: 0.3s, 0.3s, 0s, 0s; }
.js .grades.reveal.in > .grade:hover { transform: translateY(-6px); }
.js .checks.reveal.in > li:hover { transform: translateY(-3px); }
.js .steps.reveal { --fill: 0; }
.js .steps.reveal::after { transition: transform 1.6s var(--ease) 0.2s; }
.js .steps.reveal.in { --fill: 1; }

/* the hero's needles sweep from E to near F on load, then idle */
.js .needle { animation: sweep 2.2s cubic-bezier(0.3, 1.35, 0.4, 1) 0.4s both, idle 4s ease-in-out 2.6s infinite; }
.js .needle-sm { animation-delay: 0.9s, 3.1s; }
.js .card { opacity: 0; }
.js .loaded .card { opacity: 1; transition: opacity 0.9s ease; }
.js .loaded .c1 { transition-delay: 0.5s; }
.js .loaded .c3 { transition-delay: 0.65s; }
.js .loaded .c2 { transition-delay: 0.35s; }

@keyframes sweep { from { transform: rotate(-120deg); } to { transform: rotate(96deg); } }
@keyframes idle { 0%, 100% { transform: rotate(96deg); } 45% { transform: rotate(93deg); } 70% { transform: rotate(97.5deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-14px) rotate(calc(var(--r) * 0.8)); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 176, 0, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 176, 0, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes toast { from { opacity: 0; transform: translateY(12px); } }
@keyframes fresh { from { transform: scale(0.96); opacity: 0; } }

/* ------------------------------------------------------------ scroll zoom, presses, tilt */
/* Everything here animates the individual `scale` and `translate` properties, never `transform`,
   so it stacks on top of the hover lifts, the reveals and the page zoom without fighting them. */
@media (prefers-reduced-motion: no-preference) {
  /* the hero's tanks land with a bounce instead of only fading in */
  .js .card { scale: 0.7; transition: opacity 0.9s ease, scale 1.2s var(--spring); }
  .js .loaded .card { scale: 1; }

  /* a springy press on every button, and a ripple from the finger (motion.ts adds the ripple) */
  .btn { transition: transform 0.5s var(--spring), background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, color 0.2s ease; }
  .btn:active:not(:disabled) { transform: scale(0.94); transition-duration: 0.08s; }
  .pager-btn:active { scale: 0.95; }
  .tabs a:active { scale: 0.92; }
  .pager-btn, .tabs a { position: relative; overflow: hidden; isolation: isolate; transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.3s ease, transform 0.25s var(--ease), scale 0.45s var(--spring); }
  .ripple {
    position: absolute; z-index: -1; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
    border-radius: 50%; pointer-events: none; background: radial-gradient(circle, var(--ripple, rgba(255, 176, 0, 0.5)) 0, transparent 68%);
    animation: ripple 0.7s var(--ease) forwards;
  }
  .btn-primary { --ripple: rgba(255, 255, 255, 0.8); }
  /* fuel droplets thrown from a primary button */
  .burst {
    position: fixed; z-index: 60; left: 0; top: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50% 50% 50% 0;
    background: var(--c); pointer-events: none; translate: var(--x) var(--y); rotate: var(--r);
    animation: burst 0.75s cubic-bezier(0.15, 0.6, 0.3, 1) forwards;
  }
}
@keyframes ripple { from { scale: 0; opacity: 1; } to { scale: 1; opacity: 0; } }
@keyframes burst { to { translate: calc(var(--x) + var(--dx)) calc(var(--y) + var(--dy)); scale: 0.2; opacity: 0; } }

/* the art tilts toward the pointer like a card in the hand, with a soft glare (motion.ts sets the angles) */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .grade-art, .tank img { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease); }
  .grade-art.tilting, .tank img.tilting { transition-duration: 0.12s; }
  .grade-art::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; mix-blend-mode: soft-light;
    background: radial-gradient(55% 55% at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.9), transparent 65%);
  }
  .grade-art.tilting::after { opacity: 1; }
}

/* Scroll zoom, where the browser can tie an animation to scrolling (motion.ts does the same by hand
   elsewhere). A block zooms up from 86% as it rises into view and falls back as it leaves under the
   nav; inside the grade cards the art pushes in like a camera; the hero's tanks rush past you. The
   insets keep the nav (top) and the pager (bottom) out of the visible range. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :where(.js) :where(.section-head, .grade, .tank, .use-card, .checks li, .steps li, .facts, .pump, .final, .fuel-choice, .usdg-panel, .recipient-guide, .wallet-panel, .collection-search, .empty) {
      animation: zoomIn linear backwards, zoomOut linear forwards;
      animation-timeline: view(70px 74px), view(70px 74px);
      animation-range: entry 0% entry 260px, exit calc(100% - 220px) exit 100%;
    }
    :where(.js) .grade-art img { animation: artZoom linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    :where(.js) .hero-stage { animation: zoomThrough linear forwards; animation-timeline: view(70px 0px); animation-range: exit 0% exit 100%; }
    :where(.js) .hero-copy { animation: zoomOut linear forwards; animation-timeline: view(70px 0px); animation-range: exit 0% exit 100%; }
  }
}
@keyframes zoomIn { from { scale: 0.86; opacity: 0.15; } }
@keyframes zoomOut { to { scale: 0.9; opacity: 0.2; } }
@keyframes artZoom { from { scale: 1.22; } }
@keyframes zoomThrough { to { scale: 1.2; opacity: 0; } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; gap: 20px; }
  .hero-stage { justify-self: center; max-width: 520px; margin-top: 10px; }
  .grades { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps::before, .steps::after { display: none; }
  .safety { grid-template-columns: 1fr; gap: 0; }
  .safety .section-head { margin-bottom: 30px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
  :root { --nav-h: 108px; }
  .nav-in { flex-wrap: wrap; row-gap: 10px; }
  .nav .btn { margin-left: auto; }
  .tabs { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; justify-content: space-between; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { padding: 7px 8px; font-size: 12.5px; white-space: nowrap; }
}
@media (max-width: 600px) {
  .page { padding-top: 28px; }
  h1 { font-size: 10.4vw; }
  .eyebrow { letter-spacing: 0.1em; font-size: 10.5px; }
  .pump { gap: 16px; padding: 14px 16px 14px 12px; }
  .pump-gauge { width: 52px; height: 52px; align-self: flex-start; }
  .pump-read { grid-template-columns: 1fr 1fr; gap: 12px 18px; }
  .pump-read div:first-child { grid-column: 1 / -1; }
  .pump-read dd { font-size: 16px; }
  .cta .btn { flex: 1 1 auto; }
  .steps, .checks { grid-template-columns: 1fr; }
  .wallet-balances { grid-template-columns: 1fr; }
  .wallet-heading { flex-wrap: wrap; }
  .facts div { padding: 24px 20px; }
  .brand img { width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal > *, .js .card { opacity: 1 !important; transform: none; }
  .c1, .c3 { transform: rotate(var(--r)); }
  .marquee-track { transform: none; }
}

/* ------------------------------------------------------------ pages that zoom */
body { padding-bottom: var(--pager-h); }
.deck { display: grid; min-height: calc(100svh - var(--chrome)); overflow-x: clip; }
.deck.zooming { overflow: clip; } /* a page scaled up mid-zoom must not grow the scroll height */
.view { grid-area: 1 / 1; align-self: start; min-width: 0; --zoom-filter: none; }
.view-home { display: flex; flex-direction: column; }
.view-home .hero { flex: 1; }
/* a page zoom, scaled about the middle of the screen. Forward, the page you leave rushes past you
   and the next rises from the distance; back, the page you leave falls away and the one before
   comes down from in front. The two overlap, so it reads as one move through depth. */
.view.turn-in, .view.turn-out { transform-origin: 50% calc(50svh - var(--chrome) / 2); }
.view.turn-out { pointer-events: none; z-index: 2; animation: zoomPast 0.38s cubic-bezier(0.55, 0.05, 0.85, 0.35) both; }
.view.turn-in { z-index: 1; animation: zoomUp 0.5s cubic-bezier(0.15, 0.7, 0.3, 1) 0.12s both; }
.view.turn-out.back { animation-name: zoomAway; }
.view.turn-in.back { z-index: 3; animation-name: zoomDown; }
@keyframes zoomPast { to { opacity: 0; transform: scale(1.14); filter: var(--zoom-filter); } }
@keyframes zoomAway { to { opacity: 0; transform: scale(0.86); filter: var(--zoom-filter); } }
@keyframes zoomUp { from { opacity: 0; transform: scale(0.86); filter: var(--zoom-filter); } }
@keyframes zoomDown { from { opacity: 0; transform: scale(1.14); filter: var(--zoom-filter); } }
/* a little depth-of-field blur where there is GPU to spare; phones get scale and fade only */
@media (min-width: 900px) and (pointer: fine) { .view { --zoom-filter: blur(5px); } }

/* the pager: back, dots, next, always at the bottom */
.pager { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; height: var(--pager-h); border-top: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.pager-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gut); }
.pager-btn { display: inline-flex; align-items: center; gap: 14px; min-width: 0; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease, opacity 0.3s ease, transform 0.25s var(--ease); }
.pager-btn:hover { color: var(--text); border-color: var(--line-3); background: rgba(255, 255, 255, 0.85); }
.pager-btn.next { border-color: rgba(255, 176, 0, 0.7); background: rgba(255, 176, 0, 0.12); }
.pager-btn.next:hover { border-color: var(--amber); background: rgba(255, 176, 0, 0.22); transform: translateX(2px); }
.pager-btn.prev:hover { transform: translateX(-2px); }
.pager-btn > span[aria-hidden] { font-size: 18px; color: var(--accent); }
.pager-label { display: grid; line-height: 1.15; }
.pager-label small { font: 600 10px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.pager-label b { font-size: 15px; font-style: italic; font-weight: 750; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager-btn.next .pager-label { text-align: right; }
.pager-btn.off { opacity: 0; pointer-events: none; visibility: hidden; }
.pager-dots { display: flex; gap: 8px; }
.pager-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line-2); transition: width 0.4s var(--ease), background 0.3s ease; }
.pager-dots i.on { width: 28px; background: linear-gradient(90deg, var(--amber), var(--magma)); }

/* pending transaction notice floats under the nav on every page */
#pending-panel { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 15; width: min(var(--wrap), 100% - 40px); margin: 12px auto 0; }

@media (max-width: 600px) {
  :root { --pager-h: 68px; }
  .pager-btn { padding: 7px 12px; gap: 10px; }
  .pager-label small { display: none; }
  .pager-label b { font-size: 14px; max-width: 30vw; }
}
@media (prefers-reduced-motion: reduce) {
  .view.turn-in, .view.turn-out { animation: none !important; }
}

/* toasts sit top-right on wide screens so they never cover a card's buttons */
@media (min-width: 821px) {
  .toasts { left: auto; right: var(--gut); top: calc(var(--nav-h) + 12px); bottom: auto; transform: none; width: min(420px, calc(100% - 32px)); }
  .toast { animation-name: toastSide; }
}
@keyframes toastSide { from { opacity: 0; transform: translateX(16px); } }

/* ------------------------------------------------------------ explore page, pour confirmation, gifting */
.pour-warning { padding: 14px 16px; border: 1px solid rgba(255, 176, 0, 0.7); border-radius: var(--r-sm); background: rgba(255, 176, 0, 0.12); color: var(--text); font-size: 14px; line-height: 1.6; }
.recipient-address { overflow-wrap: anywhere; font-family: var(--mono); font-size: 13px; }
dialog .confirmation-check { display: flex; align-items: flex-start; gap: 10px; color: var(--text); line-height: 1.5; font-size: 14px; }
dialog .confirmation-check input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; padding: 0; accent-color: var(--hot); }
#pour-confirm-dlg .row.end { flex-wrap: wrap; }
#gift-summary, #pour-confirm-summary { color: var(--text-2); }

.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.use-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s ease; }
.use-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg), 0 0 40px -20px rgba(255, 176, 0, 0.5); }
.js .use-grid.reveal { opacity: 1; transform: none; }
.js .use-grid.reveal > * { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.3s ease, box-shadow 0.4s ease; }
.js .use-grid.reveal.in > * { opacity: 1; transform: none; }
.js .use-grid.reveal.in > .use-card:hover { transform: translateY(-5px); }
.use-card h3 { font-size: 30px; font-style: italic; font-weight: 850; letter-spacing: -0.035em; margin: 18px 0 10px; }
.use-card p { color: var(--text-3); margin: 0 0 26px; font-size: 14.5px; }
.use-card a { margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.use-status { display: inline-flex; align-items: center; gap: 8px; font: 600 10.5px/1 var(--mono); letter-spacing: 0.12em; color: var(--ok); text-transform: uppercase; }
.use-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.use-status.planned { color: var(--accent); }
.fuel-choice { margin-top: 26px; padding: 20px 26px; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--r-md); background: var(--panel); box-shadow: var(--shadow-sm); }
.fuel-choice h3 { margin: 0 0 8px; font-style: italic; font-weight: 800; }
.fuel-choice p { margin: 0; color: var(--text-3); }
.fuel-choice strong { color: var(--text); }
@media (max-width: 1020px) { .use-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .use-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ public collection page */
.collection-search { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 14px; padding: 10px 10px 10px 18px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.78); box-shadow: var(--shadow-sm); }
.collection-search label { font: 600 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.collection-search input { width: 96px; padding: 9px 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; font: 15px var(--mono); }
.collection-search input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 176, 0, 0.15); }
.collection-note { margin: 0 2px 20px; }
.collection-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
#collection-grid .tank .fine { margin: 0 4px; }
#collection-grid .tank-actions .btn-quiet { grid-column: auto; }
#collection-grid .tank-actions .btn { white-space: nowrap; padding-inline: 10px; font-size: 14px; }
#collection-grid .tank-actions .btn-primary { grid-column: 1 / -1; }

#tank-detail-dlg { width:min(560px,calc(100% - 32px)); }
.tank-detail-body { padding:24px; display:grid; gap:16px; }
.tank-detail-body > img { width:100%; border-radius:14px; }
.tank-detail-traits { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:0; }
.tank-detail-traits div { border:1px solid var(--line); padding:12px; border-radius:10px; }
.tank-detail-traits dt { color:var(--text-3); font-size:12px; }
.tank-detail-traits dd { margin:4px 0 0; font-family:var(--mono); }
@media(max-width:560px) { .tank-detail-traits { grid-template-columns:repeat(2,1fr); } .tank-detail-body .figures { font-size:12px; } }

/* Where to get USDG: help on the mint page for people arriving with no USDG or no gas. */
.usdg-panel { margin: 30px 0 0; padding: 26px; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--r-md); background: var(--panel); }
.usdg-panel h3 { margin: 0 0 10px; font-style: italic; font-weight: 800; }
.usdg-lead { margin: 0 0 20px; max-width: 75ch; color: var(--text-3); }
.usdg-routes { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.usdg-routes li { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.usdg-routes h4 { margin: 0; font-size: 16px; }
.usdg-routes p { margin: 0; color: var(--text-3); font-size: 14.5px; }
.usdg-routes a { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; text-decoration: none; }
.usdg-token { margin: 0 0 8px; }
.usdg-token code { font: 12.5px var(--mono); color: var(--text); overflow-wrap: anywhere; }
.usdg-token a { white-space: nowrap; }
.recipient-guide { margin: 24px 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.recipient-guide h3 { margin: 0 0 12px; }
.recipient-guide p { color: var(--text-3); max-width: 75ch; }
.recipient-guide strong { color: var(--text); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-actions .btn { flex: 1 1 180px; }

/* WalletConnect: the QR code sits on white so every phone camera reads it */
.wc-qr { width: min(260px, 100%, 32vh); aspect-ratio: 1; margin: 6px auto; border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.wc-qr:empty { background: var(--bg); }
.wc-qr svg { display: block; width: 100%; height: 100%; }
#wc-actions { flex-wrap: wrap; justify-content: center; }
.wallet-panel #wallet-disconnect { margin-top: 12px; }
