:root {
  --paper: #f3efe6;
  --paper-deep: #e6dfd1;
  --card: #fffdf7;
  --ink: #12110f;
  --muted: #6f695f;
  --line: #cfc7b9;
  --line-strong: #9d9588;
  --orange: #f05232;
  --blue: #3157ff;
  --green: #1d9b68;
  --shadow: 0 18px 60px rgba(40, 31, 17, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.hidden { display: none !important; }
.beacon { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.shell { width: min(1480px, calc(100% - 52px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 12px 26px;
  border-bottom: 1px solid var(--ink);
  background: rgba(243, 239, 230, .92);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand-icon { display: block; width: 34px; height: 34px; }
.nav-links { display: flex; gap: 28px; font-family: "Space Grotesk", sans-serif; font-size: 13px; }
.nav-links a { position: relative; }
.nav-links a::after { position: absolute; right: 100%; bottom: -5px; left: 0; height: 2px; background: var(--orange); content: ""; transition: right .2s ease; }
.nav-links a:hover::after { right: 0; }
.basepaint-link {
  justify-self: end;
  padding: 10px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .15s ease, border-color .15s ease;
}
.basepaint-link:hover { border-color: var(--orange); background: var(--orange); }

.hero { padding: 70px 0 58px; }
.hero-kicker, .eyebrow, .micro-label {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 30px; border-bottom: 1px solid var(--ink); }
.hero-intro h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(48px, 8vw, 118px);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .8;
}
.hero-deck { margin: 18px 0 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(24px, 3vw, 42px); font-style: italic; }
.hero-day-card { display: grid; grid-template-columns: auto auto; gap: 8px 16px; min-width: 190px; padding: 12px 0 2px; border-top: 2px solid var(--orange); }
.hero-day-card span, .hero-day-card small { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.hero-day-card strong { font-family: "Space Grotesk", sans-serif; font-size: 24px; }
.hero-day-card small { grid-column: 1 / -1; letter-spacing: .04em; }
.hero-grid-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); gap: 7vw; align-items: center; padding-top: 46px; }
.hero-copy h2 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(58px, 7vw, 112px); font-weight: 400; letter-spacing: -.055em; line-height: .82; }
.hero-copy h2 span { color: var(--blue); font-style: italic; }
.hero-copy > p { max-width: 600px; margin: 27px 0 0; color: #4b473f; font-family: "Space Grotesk", sans-serif; font-size: 17px; line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 31px; }
.button { padding: 13px 18px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.button-primary { border-color: var(--orange); background: var(--orange); color: #fff; }
.button-primary:hover { border-color: var(--ink); background: var(--ink); }
.button-ghost:hover { background: var(--card); }
.button:disabled { cursor: wait; opacity: .55; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.hero-proof span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .35); color: var(--muted); font-size: 10px; }
.hero-proof b { margin-right: 4px; color: var(--ink); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-frame { position: relative; width: min(520px, 100%); aspect-ratio: 1; padding: 11%; overflow: hidden; border: 1px solid var(--ink); border-radius: 48% 52% 46% 54% / 53% 46% 54% 47%; background: var(--card); box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-frame::before { position: absolute; inset: 5%; border: 1px solid var(--line); border-radius: 50%; content: ""; pointer-events: none; }
.hero-pixels { display: grid; grid-template: repeat(18, 1fr) / repeat(18, 1fr); width: 100%; height: 100%; overflow: hidden; border-radius: 50%; filter: saturate(.92) contrast(1.05); }
.hero-pixels i { display: block; }
.scanner { position: absolute; top: 50%; right: 6%; left: 6%; height: 2px; background: var(--orange); box-shadow: 0 0 0 1px rgba(240, 82, 50, .08); animation: scan 4.5s ease-in-out infinite; }
.scanner::after { position: absolute; top: -6px; right: -7px; width: 13px; height: 13px; border-radius: 50%; background: var(--orange); content: ""; }
@keyframes scan { 0%, 100% { transform: translateY(-160px); } 50% { transform: translateY(160px); } }
.hero-tag { position: absolute; padding: 9px 12px; border-radius: 999px; background: var(--blue); color: var(--paper); font-size: 9px; letter-spacing: .08em; }
.hero-tag.bottom { bottom: 9%; left: 2%; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 44px; border-block: 1px solid var(--ink); background: var(--ink); }
.hero-stats div { min-height: 78px; padding: 17px 18px; background: var(--paper); }
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { font-family: "Space Grotesk", sans-serif; font-size: 19px; }
.hero-stats span { margin-top: 6px; color: var(--muted); font-size: 9px; text-transform: uppercase; }

.manifesto-strip { overflow: hidden; border-block: 1px solid var(--ink); background: var(--orange); }
.marquee { display: flex; align-items: center; gap: 24px; width: max-content; padding: 13px 0; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .04em; animation: marq 24s linear infinite; }
.marquee b { font-weight: 400; }
@keyframes marq { to { transform: translateX(-50%); } }

.xray, .paintprint { padding: 92px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-heading h2, .about-copy h2 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(44px, 5vw, 78px); font-weight: 400; letter-spacing: -.04em; line-height: .94; }
.section-note { max-width: 460px; margin: 0; color: var(--muted); font-family: "Space Grotesk", sans-serif; font-size: 14px; line-height: 1.6; }
.day-loader { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 8px; }
.day-loader label { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--ink); border-radius: 999px; background: var(--card); }
.day-loader label span { padding-left: 13px; color: var(--muted); font-size: 9px; }
.day-loader input { width: 78px; padding: 10px 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 700; }
.icon-button, .mini-button, .text-button { border: 1px solid var(--line-strong); background: transparent; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.icon-button { width: 42px; height: 42px; border-radius: 50%; background: var(--card); font-size: 15px; }
.icon-button:hover, .mini-button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.mini-button { padding: 9px 12px; border-radius: 999px; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.mini-button.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.text-button { padding: 4px 0; border-width: 0 0 1px; border-radius: 0; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.text-button:hover { color: var(--orange); }

.panel { border: 1px solid var(--ink); background: rgba(255, 253, 247, .82); box-shadow: 0 7px 0 rgba(18, 17, 15, .04); }
.experience-grid { display: grid; grid-template-columns: 250px minmax(430px, 1fr) 300px; gap: 12px; align-items: start; }
.left-rail, .contributors { overflow: hidden; border-radius: 24px; }
.stage { padding: 12px; border-radius: 28px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 13px; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.live-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }
.live-chip i, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.live-chip.ok i { background: var(--green); }
.live-chip.warn i { background: #e69c25; }
.mode-stack { padding: 9px; }
.mode-button { display: grid; grid-template-columns: 32px 1fr; gap: 7px; align-items: center; width: 100%; padding: 12px 10px; border: 0; border-radius: 15px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.mode-button:hover { background: var(--paper); }
.mode-button.active { background: var(--ink); color: #fff; }
.mode-number { color: inherit; font-size: 9px; opacity: .65; }
.mode-button b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 12px; letter-spacing: .02em; }
.mode-button small { display: block; margin-top: 3px; color: inherit; font-size: 8px; opacity: .7; }
.divider { height: 1px; margin: 4px 16px; background: var(--line); }
.selection-box { padding: 18px 16px; }
.empty-selection { color: var(--muted); font-family: "Space Grotesk", sans-serif; font-size: 12px; line-height: 1.45; }
.selected-person { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; }
.selected-copy { min-width: 0; }
.selected-copy strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.selected-copy small { color: var(--muted); font-size: 8px; }
.isolate-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.selection-box > .text-button { margin-top: 11px; }
.canvas-meta { display: grid; gap: 11px; padding: 15px 16px; }
.canvas-meta div { display: grid; grid-template-columns: 65px 1fr; gap: 8px; min-width: 0; }
.canvas-meta span { color: var(--muted); font-size: 8px; }
.canvas-meta strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.palette { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 16px 15px; }
.palette i { width: 16px; height: 16px; border: 1px solid rgba(18, 17, 15, .22); border-radius: 50%; }
.rail-link { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 9px; }
.rail-link:hover { background: var(--paper); color: var(--blue); }

.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 7px 13px; }
.stage-title { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.stage-tools { display: flex; gap: 16px; }
.stage-legend { display: flex; align-items: center; gap: 9px; min-height: 31px; padding: 0 8px; color: var(--muted); font-size: 8px; }
.stage-legend strong { color: var(--ink); font-size: 9px; letter-spacing: .08em; }
.stage-legend span { border-left: 1px solid var(--line); padding-left: 9px; }
.canvas-wrap { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; min-height: 440px; overflow: hidden; border: 1px solid var(--ink); border-radius: 20px; background-color: #d9d2c5; background-image: linear-gradient(45deg, #c9c1b3 25%, transparent 25%), linear-gradient(-45deg, #c9c1b3 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #c9c1b3 75%), linear-gradient(-45deg, transparent 75%, #c9c1b3 75%); background-position: 0 0, 0 9px, 9px -9px, -9px 0; background-size: 18px 18px; }
.canvas-view-label { position: absolute; bottom: 11px; left: 13px; z-index: 5; padding: 6px 8px; border-radius: 999px; background: rgba(18, 17, 15, .86); color: #fff; pointer-events: none; font-size: 7px; letter-spacing: .1em; }
#mainCanvas { display: block; width: min(100%, 720px); height: min(100%, 720px); box-shadow: 0 18px 60px rgba(18, 17, 15, .18); cursor: crosshair; image-rendering: pixelated; object-fit: contain; touch-action: none; }
.crosshair { position: absolute; pointer-events: none; }
.crosshair i, .crosshair b { position: absolute; background: var(--orange); }
.crosshair i { left: -11px; width: 22px; height: 1px; }
.crosshair b { top: -11px; width: 1px; height: 22px; }
.pixel-tooltip { position: absolute; z-index: 20; display: flex; align-items: center; gap: 9px; min-width: 210px; padding: 9px 10px; border-radius: 12px; background: var(--ink); color: #fff; pointer-events: none; box-shadow: var(--shadow); }
.tooltip-color { width: 26px; height: 26px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; }
.pixel-tooltip strong { display: block; font-size: 9px; }
.pixel-tooltip small { display: block; max-width: 190px; margin-top: 3px; color: #c9c5bb; font-size: 7px; line-height: 1.4; }
.loading-overlay, .error-overlay { position: absolute; inset: 0; z-index: 15; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: rgba(243, 239, 230, .92); text-align: center; backdrop-filter: blur(6px); }
.loading-overlay strong, .error-overlay strong { font-family: "Space Grotesk", sans-serif; font-size: 13px; }
.loading-overlay small, .error-overlay p { max-width: 340px; margin: 7px 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.loader-grid { display: grid; grid-template: repeat(3, 10px) / repeat(3, 10px); gap: 4px; margin-bottom: 15px; }
.loader-grid i { width: 10px; height: 10px; background: var(--orange); animation: blink 1s infinite alternate; }
.loader-grid i:nth-child(2n) { background: var(--blue); animation-delay: .2s; }
.loader-grid i:nth-child(3n) { animation-delay: .4s; }
@keyframes blink { to { opacity: .15; transform: scale(.7); } }

.replay-deck { margin-top: 10px; padding: 13px 15px; border: 1px solid var(--ink); border-radius: 18px; background: var(--ink); color: #fff; }
.replay-controls { display: flex; align-items: center; gap: 12px; }
.play-button { width: 44px; height: 44px; border: 1px solid var(--orange); border-radius: 50%; background: var(--orange); color: #fff; cursor: pointer; }
.replay-time { display: grid; gap: 2px; margin-right: auto; }
.replay-time b { font-size: 13px; }
.replay-time small { color: #a9a397; font-size: 7px; }
.speed-control { display: flex; gap: 3px; }
.speed-control button { padding: 7px 9px; border: 1px solid #4b4944; border-radius: 999px; background: transparent; color: #ddd6ca; cursor: pointer; font-size: 8px; }
.speed-control button.active { border-color: #fff; background: #fff; color: var(--ink); }
.timeline { width: 100%; margin: 13px 0 4px; accent-color: var(--orange); }
.timeline-labels { display: flex; justify-content: space-between; color: #8f897e; font-size: 7px; }
.stage-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.stage-stats div { padding: 12px; background: var(--card); }
.stage-stats span { display: block; color: var(--muted); font-size: 7px; }
.stage-stats strong { display: block; margin-top: 4px; font-family: "Space Grotesk", sans-serif; font-size: 17px; }

.search-box { display: flex; align-items: center; gap: 7px; margin: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.search-box span { color: var(--muted); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 9px; }
.legend-note { padding: 0 13px 11px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.contributors-list { max-height: 680px; overflow: auto; border-top: 1px solid var(--line); }
.contributor-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; text-align: left; }
.contributor-row:hover { background: var(--paper); }
.contributor-row.active { background: #eceeff; }
.contributor-dot { width: 13px; height: 13px; border: 1px solid var(--ink); border-radius: 50%; }
.contributor-info { min-width: 0; }
.contributor-info strong { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
.contributor-info small, .contributor-pixels small { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; }
.contributor-pixels { text-align: right; }
.contributor-pixels b { font-family: "Space Grotesk", sans-serif; font-size: 11px; }
.skeleton-row { height: 58px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(49, 87, 255, .08), transparent); background-size: 200% 100%; animation: skeleton 1.4s infinite; }
@keyframes skeleton { to { background-position: -200% 0; } }

.paintprint { border-top: 1px solid var(--ink); }
.paintprint-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 13px; }
.paintprint-form, .paintprint-card { border-radius: 24px; }
.paintprint-form { padding: 24px; }
.paintprint-form > label { font-size: 9px; font-weight: 700; }
.wallet-row { display: flex; gap: 8px; margin-top: 10px; }
.wallet-row input { min-width: 0; flex: 1; padding: 13px 15px; border: 1px solid var(--ink); border-radius: 999px; outline: 0; background: #fff; font-size: 10px; }
.wallet-row input:focus { box-shadow: 0 0 0 3px rgba(49, 87, 255, .15); }
.paintprint-form > p { margin: 13px 0 24px; color: var(--muted); font-family: "Space Grotesk", sans-serif; font-size: 12px; line-height: 1.55; }
.recent-painters { padding-top: 16px; border-top: 1px solid var(--line); }
.recent-painters > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 8px; }
.recent-painters > div { display: flex; flex-wrap: wrap; gap: 6px; }
.recent-painters button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: 8px; }
.recent-painters button:hover { border-color: var(--blue); color: var(--blue); }
.paintprint-card { position: relative; min-height: 420px; padding: 26px; overflow: hidden; }
.paintprint-card::before { position: absolute; top: -80px; right: -80px; width: 240px; height: 240px; border: 48px solid rgba(49, 87, 255, .06); border-radius: 50%; content: ""; }
.paintprint-empty { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 360px; text-align: center; }
.fingerprint { position: relative; width: 76px; height: 76px; margin-bottom: 18px; border: 2px solid var(--ink); border-radius: 50%; }
.fingerprint::before, .fingerprint::after { position: absolute; inset: 10px; border: 2px solid var(--orange); border-radius: 50%; content: ""; }
.fingerprint::after { inset: 22px; border-color: var(--blue); }
.paintprint-empty strong { font-family: "Space Grotesk", sans-serif; font-size: 13px; }
.paintprint-empty span { margin-top: 6px; color: var(--muted); font-size: 9px; }
.paintprint-content { position: relative; }
.card-topline, .pp-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 8px; }
.identity-row { display: flex; align-items: center; gap: 15px; margin: 28px 0; }
.identity-mark { width: 64px; height: 64px; border: 3px solid var(--ink); border-radius: 50%; }
.identity-row h3 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 22px; }
.identity-row p { margin: 4px 0 0; color: var(--orange); font-size: 8px; }
.dna-grid { display: grid; grid-template-columns: repeat(30, 1fr); height: 105px; overflow: hidden; border: 1px solid var(--ink); border-radius: 12px; }
.dna-grid i { display: block; }
.pp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 17px 0 23px; }
.pp-stats div { padding-top: 10px; border-top: 1px solid var(--line); }
.pp-stats span { display: block; color: var(--muted); font-size: 7px; }
.pp-stats strong { display: block; margin-top: 4px; font-family: "Space Grotesk", sans-serif; font-size: 22px; }

.about { display: grid; grid-template-columns: 120px 1.3fr .8fr; gap: 45px; width: min(1480px, calc(100% - 52px)); margin: 0 auto 90px; padding-top: 72px; border-top: 1px solid var(--ink); }
.about-number { color: var(--orange); font-family: "Instrument Serif", Georgia, serif; font-size: 92px; font-style: italic; line-height: 1; }
.about-copy p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-family: "Space Grotesk", sans-serif; font-size: 14px; line-height: 1.7; }
.about-steps { display: grid; align-content: start; }
.about-steps div { display: grid; grid-template-columns: 32px 70px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-steps b { color: var(--orange); font-size: 9px; }
.about-steps span { font-size: 9px; font-weight: 700; }
.about-steps p { margin: 0; color: var(--muted); font-family: "Space Grotesk", sans-serif; font-size: 11px; line-height: 1.4; }
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 90px; padding: 20px 28px; border-top: 1px solid var(--ink); }
.footer-brand { justify-self: start; }
footer p { color: var(--muted); font-size: 8px; }
footer > a { justify-self: end; border-bottom: 1px solid var(--ink); font-size: 9px; }
.toast { position: fixed; bottom: 25px; left: 50%; z-index: 100; padding: 11px 15px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 9px; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .experience-grid { grid-template-columns: 220px 1fr; }
  .contributors { grid-column: 1 / -1; }
  .contributors-list { display: grid; grid-template-columns: repeat(2, 1fr); max-height: 330px; }
  .contributor-row:nth-child(odd) { border-right: 1px solid var(--line); }
  .about { grid-template-columns: 80px 1fr; }
  .about-steps { grid-column: 2; }
}
@media (max-width: 850px) {
  .shell, .about { width: min(100% - 28px, 1480px); }
  .site-header { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { padding: 58px 0; }
  .hero-intro { align-items: start; flex-direction: column; }
  .hero-day-card { width: 100%; }
  .hero-grid-layout { grid-template-columns: 1fr; gap: 4vw; }
  .hero-copy h2 { font-size: clamp(58px, 16vw, 96px); }
  .hero-visual { margin-top: 8px; }
  .hero-frame { width: min(440px, 90vw); }
  .section-heading { align-items: start; flex-direction: column; }
  .day-loader { justify-content: start; }
  .experience-grid { grid-template-columns: 1fr; }
  .left-rail { order: 2; }
  .stage { order: 1; }
  .contributors { order: 3; }
  .mode-stack { display: grid; grid-template-columns: repeat(3, 1fr); }
  .mode-button { display: block; text-align: center; }
  .mode-number { display: none; }
  .canvas-meta { grid-template-columns: repeat(2, 1fr); }
  .canvas-meta div { display: block; }
  .canvas-meta strong { display: block; margin-top: 3px; }
  .paintprint-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-number { font-size: 62px; }
  .about-steps { grid-column: auto; }
  .pp-stats { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr; }
  .footer-brand, footer > a { justify-self: start; }
  .stage-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .site-header { min-height: 62px; padding: 10px 14px; }
  .brand-icon { width: 30px; height: 30px; }
  .brand { font-size: 13px; }
  .basepaint-link { padding: 8px 11px; }
  .hero { padding-top: 42px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { text-align: center; }
  .hero-stats { grid-template-columns: 1fr; }
  .xray, .paintprint { padding: 66px 0; }
  .section-heading h2, .about-copy h2 { font-size: 48px; }
  .day-loader { display: grid; grid-template-columns: 42px 1fr 42px; }
  .day-loader .mini-button { grid-column: span 2; }
  .day-loader label { justify-content: center; }
  .day-loader input { width: 82px; }
  .stage { padding: 7px; border-radius: 18px; }
  .stage-head { align-items: start; flex-direction: column; }
  .stage-tools { width: 100%; justify-content: space-between; }
  .canvas-wrap { min-height: 0; }
  .replay-controls { flex-wrap: wrap; }
  .speed-control { width: 100%; justify-content: end; }
  .contributors-list { display: block; }
  .contributor-row:nth-child(odd) { border-right: 0; }
  .wallet-row { flex-direction: column; }
  .about { margin-bottom: 64px; }
  .about-steps div { grid-template-columns: 28px 60px 1fr; }
  .marquee { font-size: 11px; }
  .pp-footer { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
