/* =========================================================================
   Floating cat — styles
   Look: a bright blue sky photo behind classic
   Windows-style windows, beveled buttons and a taskbar.
   ========================================================================= */

:root {
  /* scenery */
  --sky-top: #1d5ec9;
  --sky-mid: #3f8be3;
  --sky-low: #9ccbf3;
  --sky-haze: #d8ecfb;

  /* classic window chrome */
  --face: #c0c0c0;
  --face-light: #dfdfdf;
  --white: #ffffff;
  --shadow: #808080;
  --dark: #0a0a0a;
  --title-a: #000080;
  --title-b: #1084d0;
  --title-off-a: #808080;
  --title-off-b: #b5b5b5;
  --select: #000080;
  --tooltip: #ffffe1;

  /* accents */
  --pink: #f4b3bd;      /* paw pads */
  --pink-deep: #c2185b;
  --lcd: #000000;
  --lcd-text: #33ff66;
  --up: #008a3a;
  --down: #c62828;

  --ink: #000000;
  --ink-soft: #3c3c3c;

  /* bevels (outer dark, inner light — the classic 2px look) */
  --raised: inset -1px -1px var(--dark), inset 1px 1px var(--white), inset -2px -2px var(--shadow), inset 2px 2px var(--face-light);
  --pressed: inset -1px -1px var(--white), inset 1px 1px var(--dark), inset -2px -2px var(--face-light), inset 2px 2px var(--shadow);
  --window: inset -1px -1px var(--dark), inset 1px 1px var(--face-light), inset -2px -2px var(--shadow), inset 2px 2px var(--white);
  --sunken: inset -1px -1px var(--white), inset 1px 1px var(--shadow), inset -2px -2px var(--face-light), inset 2px 2px var(--dark);
  --thin-in: inset -1px -1px var(--white), inset 1px 1px var(--shadow);

  --ui: Tahoma, Verdana, "Segoe UI", "DejaVu Sans", sans-serif;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --lcd-font: "VT323", "Lucida Console", "Courier New", monospace;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --taskbar-h: 40px;

  /* mouse parallax, set by script.js (-1 … 1) */
  --px: 0;
  --py: 0;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-loading { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--ui);
  font-size: 15px;
  color: var(--ink);
  background: var(--sky-mid);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: calc(var(--taskbar-h) + env(safe-area-inset-bottom, 0px));
}

img { max-width: 100%; height: auto; display: block; }
a, a:visited { color: #0000ee; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* classic dotted focus ring */
:focus-visible { outline: 1px dotted var(--dark); outline-offset: 2px; }

/* =========================================================================
   Scenery (fixed behind everything)
   ========================================================================= */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--sky-mid);
}
main { position: relative; z-index: 1; }

/* the photo, slightly oversized so the mouse parallax never shows an edge */
.sky-photo {
  position: absolute;
  inset: -3%;
  background: var(--sky-mid) center / cover no-repeat;
  background-image: url("sky.jpg");
  background-image: image-set(url("sky.webp") type("image/webp"), url("sky.jpg") type("image/jpeg"));
  transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -10px), 0);
  will-change: transform;
}

/* rising music notes */
.notes { position: absolute; inset: 0; }
.note {
  position: absolute;
  bottom: -30px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  fill: #fff;
  opacity: 0;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 80, 0.35));
  animation: rise var(--d) var(--ease) var(--delay) infinite;
}
.note.pink { fill: var(--pink); }
@keyframes rise {
  0%   { transform: translate(0, 0) rotate(-8deg); opacity: 0; }
  15%  { opacity: 0.9; }
  50%  { transform: translate(18px, -34vh) rotate(8deg); }
  80%  { opacity: 0.5; }
  100% { transform: translate(-10px, -68vh) rotate(-6deg); opacity: 0; }
}

/* =========================================================================
   Window chrome
   ========================================================================= */
.win {
  position: relative;
  background: var(--face);
  box-shadow: var(--window), 6px 6px 0 rgba(0, 0, 40, 0.22);
  padding: 3px;
  min-width: 0;
}
.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 26px;
  padding: 0 3px 0 5px;
  background: linear-gradient(90deg, var(--title-a), var(--title-b));
  color: #fff;
  user-select: none;
}
/* windows not in focus get the gray title bar */
.win[data-task]:not(.active) .title-bar {
  background: linear-gradient(90deg, var(--title-off-a), var(--title-off-b));
  color: #e4e4e4;
}
.title-bar-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.title-bar-text img { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.title-bar-controls { display: flex; flex: none; }
.title-bar-controls button {
  width: 18px;
  height: 16px;
  padding: 0;
  border: 0;
  background: var(--face);
  box-shadow: var(--raised);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.title-bar-controls button[data-win="close"] { margin-left: 2px; }
.title-bar-controls button:active { box-shadow: var(--pressed); }
.title-bar-controls svg { width: 8px; height: 8px; fill: var(--dark); shape-rendering: crispEdges; }
.title-bar-controls button:active svg { transform: translate(1px, 1px); }

.win-body { padding: 14px 12px; }

/* status bar */
.status-bar { display: flex; gap: 3px; align-items: stretch; margin-top: 2px; }
.status-cell {
  box-shadow: var(--thin-in);
  padding: 3px 8px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-cell.grow { flex: 1; min-width: 0; }
.status-bar .btn-sm { min-width: 60px; }

/* minimized / closed / maximized states (handled in script.js) */
.win.minimized > :not(.title-bar) { display: none; }
.win.closed { display: none; }
.win.maxed {
  position: fixed;
  inset: 0 0 calc(var(--taskbar-h) + env(safe-area-inset-bottom, 0px)) 0;
  z-index: 70;
  overflow: auto;
  box-shadow: var(--window);
  transform: none !important;
  opacity: 1 !important;
}
.win.maxed .chart { height: calc(100vh - 280px); min-height: 300px; }
html.has-max { overflow: hidden; }

/* sunken fields */
.field { background: var(--white); box-shadow: var(--sunken); padding: 6px 8px; }
.field-deep { box-shadow: var(--sunken); padding: 2px; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 18px;
  border: 0;
  border-radius: 0;
  background: var(--face);
  box-shadow: var(--raised);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
a.btn, a.btn:visited { color: var(--ink); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:hover { background: #c8c8c8; }
.btn:active, .btn.active { box-shadow: var(--pressed); }
.btn:active > *, .btn.active > * { transform: translate(1px, 1px); }
.btn.active { background: repeating-conic-gradient(var(--face) 0 25%, #e8e8e8 0 50%) 0 0 / 2px 2px; font-weight: 700; }
.btn:focus-visible { outline: 1px dotted var(--dark); outline-offset: -6px; }
/* the "default" button gets the extra black frame */
.btn-default { box-shadow: inset 0 0 0 1px var(--dark), inset -2px -2px var(--dark), inset 2px 2px var(--white), inset -3px -3px var(--shadow), inset 3px 3px var(--face-light); font-weight: 700; }
.btn-default:active { box-shadow: inset 0 0 0 1px var(--dark), inset -2px -2px var(--white), inset 2px 2px var(--shadow); }
.btn-sm { min-height: 26px; padding: 3px 10px; font-size: 12px; }
.btn-icon { width: 40px; min-height: 32px; padding: 0; }
.btn-icon svg { fill: var(--ink); stroke: none; width: 18px; height: 18px; }

/* =========================================================================
   Loading screen
   ========================================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--sky-mid) center / cover no-repeat;
  background-image: url("sky.jpg");
  background-image: image-set(url("sky.webp") type("image/webp"), url("sky.jpg") type("image/jpeg"));
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-win { width: min(340px, 100%); }
.loader-body { display: grid; justify-items: center; gap: 12px; padding: 18px 16px 16px; }
.loader-cat {
  width: 180px;
  height: auto;
  animation: bob 3.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 60, 0.2));
}
.loader-text { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; }
.loader-text .dots span { animation: dot 1.4s steps(1) infinite; }
.loader-text .dots span:nth-child(2) { animation-delay: 0.3s; }
.loader-text .dots span:nth-child(3) { animation-delay: 0.6s; }
@keyframes dot { 0%, 100% { opacity: 0; } 30% { opacity: 1; } }
.loader-note { fill: var(--pink-deep); animation: noteHop 1.6s ease-in-out infinite; }
@keyframes noteHop { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-5px) rotate(10deg); } }
.progress { width: 100%; height: 22px; background: var(--white); box-shadow: var(--sunken); padding: 3px; }
.progress-fill {
  height: 100%;
  width: 0;
  /* the chunky block progress bar */
  background: repeating-linear-gradient(90deg, var(--select) 0 10px, transparent 10px 12px);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--taskbar-h));
  min-height: calc(100svh - var(--taskbar-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px 16px 84px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.hero-cat {
  position: relative;
  width: min(520px, 86vw, 52svh);
  transform: translate3d(calc(var(--px) * -18px), calc(var(--py) * -12px), 0);
  will-change: transform;
}
.hero-cat-float { animation: bob 7s ease-in-out infinite; }
.hero-cat-float img {
  width: 100%;
  height: auto;
  animation: sway 11s ease-in-out infinite;
  transform-origin: 55% 55%;
  filter: drop-shadow(0 18px 20px rgba(0, 30, 90, 0.25));
}
.hero-cat-shadow {
  width: 54%;
  height: 22px;
  margin: 2px auto 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 40, 110, 0.35), transparent);
  filter: blur(5px);
  animation: shadow 7s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes sway { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.78); opacity: 0.55; } }

.hero-win { width: min(640px, 100%); margin-top: 6px; }
.hero-win .win-body { text-align: center; padding: 18px 16px 16px; }
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  /* early-web gradient lettering, kept to one blue family */
  background: linear-gradient(180deg, #4fa8ff 0%, #1366d6 50%, #0a2f8c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 2px 0 var(--white)) drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.35));
  overflow-wrap: anywhere;
}
.hero-tagline { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.hero-buttons { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 8px; margin-top: 16px; }

/* scrolling ticker */
.marquee {
  margin-top: 2px;
  background: var(--lcd);
  box-shadow: var(--sunken);
  padding: 5px 2px 3px;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  font-family: var(--lcd-font);
  font-size: 20px;
  line-height: 1;
  color: var(--lcd-text);
  animation: marquee 30s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* hero entrance after the loader */
.hero-anim { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.ready .hero-anim { opacity: 1; transform: none; }
.ready .scroll-cue { transition-delay: 0.5s; }

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  translate: -50% 0;
  min-height: 28px;
  padding: 3px 12px;
  font-size: 12px;
}
.scroll-cue svg { animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* =========================================================================
   Sections
   ========================================================================= */
.sections {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 26px;
  padding-block: 12px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.win[id] { scroll-margin-top: 16px; }
.note-text { color: var(--ink-soft); }

/* windows "open" as they scroll in */
.reveal { opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Contract address ---------- */
.ca-row { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; }
.terminal {
  background: var(--lcd);
  color: var(--lcd-text);
  box-shadow: var(--sunken);
  font-family: var(--lcd-font);
}
.ca-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: clamp(18px, 2.6vw, 26px);
  line-height: 1.1;
  word-break: break-all;
  user-select: all;
}
.ca-copy { min-width: 96px; font-size: 15px; }

/* ---------- Chart ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 6px; }
.stat { display: grid; gap: 1px; min-width: 0; }
.stat-label { font-size: 11px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value { font-size: clamp(15px, 1.8vw, 19px); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value.up { color: var(--up); }
.stat-value.down { color: var(--down); }
.live { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 13px; padding-inline: 12px; background: var(--face); box-shadow: var(--thin-in); }
.live-dot { width: 9px; height: 9px; background: var(--shadow); box-shadow: inset -1px -1px rgba(0, 0, 0, 0.4); }
.live.on .live-dot { background: #20d050; animation: blink 1.2s steps(1) infinite; }
.live.demo .live-dot { background: #ffb000; }
@keyframes blink { 50% { opacity: 0.25; } }

.chart-wrap { margin-top: 8px; background: var(--lcd); box-shadow: var(--sunken); padding: 2px; }
.chart-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px 6px; }
.chart-label { font-family: var(--lcd-font); font-size: 20px; color: var(--lcd-text); line-height: 1; margin-right: auto; }
.chart { height: 480px; width: 100%; background: var(--lcd); }
.chart iframe { display: block; width: 100%; height: 100%; border: 0; }
.chart-msg { height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; text-align: center; }
.chart-msg p { font-family: var(--lcd-font); font-size: 24px; line-height: 1.1; color: var(--lcd-text); max-width: 32ch; }

/* ---------- How to buy (setup wizard) ---------- */
.wizard { display: grid; grid-template-columns: 170px 1fr; gap: 18px; }
.wizard-side {
  background: linear-gradient(180deg, var(--title-a), var(--title-b));
  box-shadow: var(--thin-in);
  display: grid;
  place-items: center;
  padding: 10px;
}
.wizard-side img { width: 100%; height: auto; transform: rotate(-8deg); filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35)); }
.wizard-main { display: grid; gap: 12px; min-width: 0; align-content: start; }
.wizard-main h2 { font-size: clamp(18px, 2.4vw, 22px); text-wrap: balance; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; background: var(--white); box-shadow: var(--sunken); padding: 12px; }
.step-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--face);
  box-shadow: var(--raised);
}
.step h3 { font-size: 15px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--ink-soft); }
.wizard-buttons { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--shadow); padding-top: 12px; flex-wrap: wrap; }

/* ---------- Footer (About dialog) ---------- */
.about { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.about-icon { width: 72px; height: 72px; box-shadow: var(--sunken); padding: 2px; background: var(--white); }
.about-text { display: grid; gap: 10px; min-width: 0; }
.about-name { font-weight: 700; font-size: 18px; }
.about-ticker { color: var(--ink-soft); font-weight: 400; }
.disclaimer { color: var(--ink-soft); max-width: 60ch; }
.socials { display: flex; gap: 6px; flex-wrap: wrap; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  width: 88px;
  height: 31px;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: Verdana, var(--ui);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
  border: 1px solid var(--dark);
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.6), inset -1px -1px rgba(0, 0, 0, 0.3);
}
.badge b { display: block; font-size: 10px; }
.b-sol { background: linear-gradient(90deg, #9945ff, #14f195); color: #fff; text-shadow: 1px 1px 0 #000; }
.b-lofi { background: var(--lcd); color: var(--lcd-text); font-family: var(--lcd-font); font-size: 13px; font-weight: 400; }
.b-lofi b { font-size: 13px; font-weight: 400; }
.b-cat { background: var(--pink); color: #5b1030; }
.b-view { background: var(--face); color: var(--select); }
.copyright { font-size: 12px; color: var(--ink-soft); }

/* =========================================================================
   Taskbar + Start menu
   ========================================================================= */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 4px;
  height: calc(var(--taskbar-h) + env(safe-area-inset-bottom, 0px));
  padding: 4px max(4px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px));
  background: var(--face);
  box-shadow: inset 0 1px var(--face-light), inset 0 2px var(--white);
}
.start-btn { flex: none; min-height: 32px; padding: 3px 10px 3px 6px; font-weight: 700; font-size: 14px; gap: 5px; }
.start-btn img { width: 18px; height: 18px; border-radius: 3px; }
.start-btn[aria-expanded="true"] { box-shadow: var(--pressed); }
.tasks { flex: 1; display: flex; gap: 3px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tasks::-webkit-scrollbar { display: none; }
.task {
  flex: 0 1 150px;
  min-width: 96px;
  min-height: 32px;
  justify-content: flex-start;
  padding: 3px 8px;
  font-size: 12px;
  gap: 5px;
  overflow: hidden;
}
.task img { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.task span { overflow: hidden; text-overflow: ellipsis; }
.task.closed-task { color: var(--shadow); }
.tray { flex: none; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; background: var(--face); box-shadow: var(--thin-in); font-size: 12px; }

.start-menu {
  position: fixed;
  left: max(4px, env(safe-area-inset-left, 0px));
  bottom: calc(var(--taskbar-h) + env(safe-area-inset-bottom, 0px) - 2px);
  z-index: 85;
  display: flex;
  width: 230px;
}
.start-menu[hidden] { display: none; }
.start-side {
  width: 28px;
  background: linear-gradient(0deg, var(--title-a), var(--title-b));
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 8px 4px;
  white-space: nowrap;
  overflow: hidden;
}
.start-items { list-style: none; margin: 0; padding: 2px; flex: 1; min-width: 0; }
.start-items a, .start-items a:visited {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.start-items a:hover, .start-items a:focus-visible { background: var(--select); color: #fff; outline: none; }
.si {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  background: var(--face);
  box-shadow: var(--raised);
  color: var(--select);
  flex: none;
}
.start-items .sep { height: 2px; margin: 4px 2px; box-shadow: inset 0 1px var(--shadow), inset 0 -1px var(--white); }

/* =========================================================================
   Helper pop-up + notification balloon
   ========================================================================= */
.helper {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--taskbar-h) + env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 75;
  width: min(260px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  padding: 12px;
  background: var(--tooltip);
  border: 1px solid var(--dark);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  font-size: 13px;
  animation: pop 0.4s var(--ease);
}
.helper[hidden] { display: none; }
.helper img { border-radius: 50%; animation: bob 3s ease-in-out infinite; }
.helper p { padding-right: 10px; }
.helper-buttons { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; }
.helper-close { position: absolute; top: 2px; right: 6px; border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; padding: 2px; }
@keyframes pop { from { transform: translateY(10px) scale(0.96); opacity: 0; } }

.balloon {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--taskbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 120;
  display: grid;
  gap: 2px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 10px 14px;
  background: var(--tooltip);
  border: 1px solid var(--dark);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.balloon.show { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .live { grid-column: span 3; padding-block: 5px; }
}
@media (max-width: 860px) {
  .wizard { grid-template-columns: 1fr; }
  .wizard-side { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .sections { gap: 20px; }
  .hero { padding-top: 20px; padding-bottom: 76px; }
  .hero-buttons { grid-template-columns: 1fr 1fr; }
  .hero-buttons .btn-default { grid-column: 1 / -1; }
  .ca-row { flex-direction: column; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:first-child { grid-column: 1 / -1; }
  .live { grid-column: 1 / -1; }
  .chart { height: 420px; }
  .chart-label { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-icon { width: 56px; height: 56px; }
  .task { min-width: 40px; flex: none; justify-content: center; }
  .task span { display: none; }
  .status-bar .status-cell:not(.grow) { display: none; }
}

/* =========================================================================
   Reduced motion: keep the look, drop the movement
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .note { display: none; }
  .marquee-track { animation: none; }
  .reveal, .hero-anim { opacity: 1; transform: none; }
}
