/* ==========================================================================
   anthpad — pages
   ========================================================================== */
:root { --pos: var(--up); --neg: var(--down); }

/* Landing ------------------------------------------------------------------ */
.landing {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--topbar-h) + 1rem) 0 calc(var(--dock-h) + 4rem);
}
.landing__copy { margin-left: clamp(0px, 31%, 470px); max-width: 980px; }
.landing__title { font-size: clamp(3.4rem, 6.6vw, 7.6rem); }
.ipo {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1rem;
  margin-bottom: clamp(1.4rem, 3vh, 2.2rem);
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.8s var(--ease) 0.3s, transform 0.8s var(--ease) 0.3s;
}
.landing.is-in .ipo { opacity: 1; transform: none; }
.ipo__label { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.ipo__label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0.6); animation: ipo-pulse 1.8s infinite; }
@keyframes ipo-pulse { 70% { box-shadow: 0 0 0 8px rgb(var(--accent-rgb) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0); } }
.ipo__text { color: var(--text-3); }
.ipo__clock { display: inline-flex; align-items: center; gap: 0.25rem; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ipo__clock b { min-width: 2.6ch; text-align: center; padding: 0.35rem 0.5rem; border-radius: 10px; background: var(--stat); color: #f4f3ee; font-weight: 500; font-size: 1.05rem; }
.ipo__clock i { font-style: normal; color: var(--text-3); font-size: 0.8rem; margin: 0 0.15rem 0 0.05rem; }
.ipo.is-after .ipo__clock { display: none; }
.landing__title .line { display: block; overflow: hidden; padding: 0.04em 0 0.1em; margin: -0.04em 0 -0.1em; }
.landing__title .line > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease); }
.landing__title .line:nth-child(2) > span { transition-delay: 0.08s; }
.landing__title .line:nth-child(3) > span { transition-delay: 0.16s; }
.landing.is-in .landing__title .line > span { transform: none; }
.landing__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem;
  margin-top: clamp(2rem, 4.5vh, 3.2rem);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.9s var(--ease) 0.45s, transform 0.9s var(--ease) 0.45s;
}
.landing.is-in .landing__actions { opacity: 1; transform: none; }

/* Sections ----------------------------------------------------------------- */
.section { padding: clamp(2rem, 6vh, 4.5rem) 0; }
.section > .wrap > * { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.section.is-in > .wrap > * { opacity: 1; transform: none; }
.section__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.2rem, 5vh, 3.6rem); }
.section__head .h2 { max-width: 16ch; }

/* Feature: accordion beside a visual ------------------------------------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
.acc { border-top: 1px solid var(--line); }
.acc__row { border-bottom: 1px solid var(--line); }
.acc__head { width: 100%; display: grid; grid-template-columns: 58px 1fr 34px; align-items: center; gap: 1.3rem; padding: 1.5rem 0; text-align: left; }
.acc__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgb(var(--tint) / 0.05); color: var(--text-3); transition: background-color 0.35s, color 0.35s; }
.acc__icon .icon { width: 26px; height: 26px; }
.acc__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 2.3vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.1; color: var(--text-3); transition: color 0.3s; }
.acc__toggle { position: relative; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color 0.3s, box-shadow 0.3s; }
.acc__toggle::before, .acc__toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -0.8px 0 0 -6px; background: currentColor; transition: transform 0.4s var(--ease); }
.acc__toggle::after { transform: rotate(90deg); }
.acc__row:hover .acc__title { color: var(--text-2); }
.acc__row.is-open .acc__title { color: var(--text); }
.acc__row.is-open .acc__icon { background: var(--accent-soft); color: var(--accent); }
.acc__row.is-open .acc__toggle { background: var(--accent); box-shadow: none; color: var(--accent-ink); }
.acc__row.is-open .acc__toggle::after { transform: rotate(0deg); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.acc__row.is-open .acc__body { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; padding-left: calc(58px + 1.3rem); }
.acc__inner > p { color: var(--text-2); max-width: 52ch; }
.acc__inner > :last-child { margin-bottom: 1.8rem; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-top: 1.4rem; }

.visual {
  position: sticky; top: calc(var(--topbar-h) + 1.5rem);
  min-height: 520px;
  border-radius: var(--r-lg);
  background: var(--well);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid; place-items: center;
}

/* pipeline */
.pipe { width: 100%; height: auto; }
.pipe__track { fill: none; stroke: rgb(var(--tint) / 0.12); stroke-width: 2; }
.pipe__flow { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 5 13; opacity: 0; transition: opacity 0.4s; animation: flow 0.9s linear infinite; }
.pipe__flow.is-on { opacity: 1; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.pipe__node rect { fill: var(--node); stroke: rgb(var(--tint) / 0.14); stroke-width: 1.5; transition: fill 0.4s, stroke 0.4s; }
.pipe__node text { fill: var(--text-3); font-family: var(--font-head); font-weight: 600; font-size: 18px; transition: fill 0.4s; }
.pipe__node svg { fill: none; stroke: var(--text-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s; }
.pipe__node.is-on rect { stroke: rgb(var(--accent-rgb) / 0.55); }
.pipe__node.is-on text { fill: var(--text); }
.pipe__node.is-on svg { stroke: var(--accent); }
.pipe__node.is-focus rect { fill: rgb(var(--accent-rgb) / 0.16); stroke: var(--accent); filter: drop-shadow(0 0 18px rgb(var(--accent-rgb) / 0.35)); }

/* console */
.console { place-items: stretch; align-content: start; min-height: 0; font-family: var(--font-mono); }
.console__bar { display: flex; align-items: center; gap: 0.5rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.console__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgb(var(--tint) / 0.12); }
.console__bar b { margin-left: 0.7rem; font-weight: 500; font-size: var(--fs-xs); color: var(--text-3); }
.console__meta { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem 0.4rem; font-size: var(--fs-xs); color: var(--text-3); }
.console__meta span:last-child { color: var(--text); font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; }
.console__steps { padding: 0.6rem 1.6rem 0.4rem; display: grid; }
.console__steps li { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 0.9rem; padding: 1rem 0; color: var(--text-3); border-bottom: 1px dashed var(--line); font-size: 1rem; transition: color 0.3s; }
.console__steps li:last-child { border-bottom: 0; }
.console__st { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); position: relative; }
.console__steps li.is-run { color: var(--text); }
.console__steps li.is-run .console__st { box-shadow: none; border: 2px solid var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.console__steps li.is-done { color: var(--text-2); }
.console__steps li.is-done .console__st { background: var(--accent); box-shadow: none; }
.console__steps li.is-done .console__st::after { content: ''; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.console__foot { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.6rem 1.6rem; font-size: var(--fs-xs); color: var(--text-3); }
.console__meter { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.console__meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.6s var(--ease); }

/* Reserve ------------------------------------------------------------------- */
.reserve { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.reserve__copy { display: grid; gap: 1.6rem; align-content: start; }
.calc { display: grid; gap: 1.7rem; padding: clamp(1.4rem, 2.6vw, 2.2rem); border-radius: var(--r-lg); background: var(--well); border: 1px solid var(--line); }
.range { display: grid; gap: 0.8rem; }
.range__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--text-2); }
.range output { font-family: var(--font-mono); font-size: 1.2rem; color: var(--text); }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; --fill: 50%; }
input[type='range']::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--line-strong) var(--fill)); }
input[type='range']::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-strong); }
input[type='range']::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--text); border: 3px solid var(--accent); box-shadow: 0 4px 14px rgb(0 0 0 / 0.5); transition: transform 0.2s var(--ease); }
input[type='range']::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 3px solid var(--accent); }
input[type='range']:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__bars { display: grid; gap: 1.3rem; }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; color: var(--text-3); }
.calc__label b { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.8rem); color: var(--text); letter-spacing: -0.03em; }
.meter { height: 10px; border-radius: 10px; background: rgb(var(--tint) / 0.08); overflow: hidden; margin-top: 0.6rem; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 10px; transition: width 0.6s var(--ease); }
.meter--light i { background: var(--text); }
.meter--split { background: var(--down); }
.meter--split i { background: var(--up); border-radius: 10px 0 0 10px; }

/* Live strip ------------------------------------------------------------------- */
.live { padding: clamp(1.5rem, 3.4vw, 3.5rem) 0; overflow: hidden; }
.live__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding: 0 clamp(1.5rem, 3.4vw, 3.5rem); margin-bottom: 2.4rem; }
.live__head .lead { margin-top: 0.8rem; }
.live .stats-row { padding: 0 clamp(1.5rem, 3.4vw, 3.5rem); margin-top: 2.4rem; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 1rem; width: max-content; animation: marquee var(--dur, 70s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__empty { padding: 1rem clamp(1.5rem, 3.4vw, 3.5rem); }
.tick { display: grid; grid-template-columns: 48px auto auto; align-items: center; gap: 1rem; padding: 0.9rem 1.5rem 0.9rem 0.9rem; border-radius: 20px; background: rgb(var(--tint) / 0.04); border: 1px solid var(--line); transition: background-color 0.25s, border-color 0.25s, transform 0.35s var(--ease); }
.tick:hover { background: rgb(var(--tint) / 0.08); border-color: rgb(var(--accent-rgb) / 0.5); transform: translateY(-3px); }
.tick__name strong { display: block; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.tick__name small { font-family: var(--font-mono); color: var(--text-3); font-size: var(--fs-xs); }
.tick__px { font-size: 0.95rem; white-space: nowrap; }
.tick__px em { font-style: normal; margin-left: 0.6rem; }
.tick--ghost { width: 260px; height: 80px; }

/* Tiles --------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.tile { display: grid; gap: 1.1rem; align-content: start; padding: clamp(1.6rem, 2.6vw, 2.4rem); transition: transform 0.45s var(--ease), border-color 0.3s; }
.tile:hover { transform: translateY(-5px); border-color: rgb(var(--accent-rgb) / 0.45); }
.tile__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tile__icon .icon { width: 28px; height: 28px; }
.tile__text { color: var(--text-2); }

/* Footer ------------------------------------------------------------------------ */
.foot { padding: clamp(3rem, 8vh, 5rem) 0 calc(var(--dock-h) + 4rem); }
.foot__in { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem 3rem; align-items: center; padding-top: 2rem; border-top: 1px solid var(--line); }
.foot__brand { font-family: var(--font-head); }
.foot__links { display: flex; gap: 1.8rem; flex-wrap: wrap; justify-content: flex-end; font-weight: 500; }
.foot__links a:hover { color: var(--accent); }
.foot__legal { grid-column: 1 / -1; max-width: none; }

/* Pages ------------------------------------------------------------------------- */
.page { padding: calc(var(--topbar-h) + 1.5rem) 0 calc(var(--dock-h) + 5rem); }
.page > .wrap { display: grid; gap: 1.4rem; }
.page > .wrap > * { animation: fadeup 0.8s var(--ease) backwards; }
.page > .wrap > *:nth-child(2) { animation-delay: 0.08s; }
.page > .wrap > *:nth-child(3) { animation-delay: 0.16s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(22px); } }
.page-head { display: grid; gap: 2rem; }
.page-head__text { display: grid; gap: 1rem; }
.page-head .stats-row { margin-top: 0; }
.row-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; }
.empty { display: grid; gap: 1.2rem; justify-items: start; padding: 2.5rem 1rem; }
.empty p { color: var(--text-2); max-width: 52ch; }

.toolbar { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; padding: 0.3rem 0.3rem 1.4rem; }
.field-search { display: flex; align-items: center; gap: 0.7rem; height: 58px; padding: 0 1.3rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px var(--line); flex: 1; min-width: 220px; max-width: 440px; color: var(--text-3); transition: box-shadow 0.2s; }
.field-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.field-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 1.05rem; color: var(--text); }
.refresh { position: relative; width: 58px; height: 58px; margin-left: auto; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); }
.refresh svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.refresh circle { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: calc(151 * (1 - var(--p, 0))); stroke-linecap: round; }
.refresh span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-3); }

/* Board table */
.table-panel { padding: 1.4rem; }
.table { --cols: 2.4rem minmax(220px, 2.2fr) 1.1fr 0.75fr 0.75fr 0.8fr 1fr 1fr 1fr 1.1fr 100px; }
.table__head, .row { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 1rem; padding: 0 1rem; }
.table__head { position: sticky; top: var(--topbar-h); z-index: 3; height: 52px; font-size: var(--fs-xs); color: var(--text-3); background: var(--bar-strong); border-radius: 14px; }
.table__head > * { justify-self: end; }
.table__head > :nth-child(1), .table__head > :nth-child(2) { justify-self: start; }
.table__head button { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 500; }
.table__head button:hover, .table__head button.is-sorted { color: var(--text); }
.table__head button.is-sorted::after { content: ''; border: 4px solid transparent; border-top-color: var(--accent); margin-top: 4px; }
.table__head button.is-sorted.asc::after { border-top-color: transparent; border-bottom-color: var(--accent); margin: 0 0 4px; }
.row { position: relative; min-height: 84px; border-bottom: 1px solid var(--line); transition: background-color 0.2s; }
.row.is-new { animation: fadeup 0.6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 25ms); }
.row:hover { background: rgb(var(--tint) / 0.035); }
.row > * { justify-self: end; text-align: right; }
.row > :nth-child(2), .row > :nth-child(3) { justify-self: start; text-align: left; }
.row__link { position: absolute; inset: 0; z-index: 1; justify-self: stretch !important; align-self: stretch; border-radius: 10px; }
.row__rank { color: var(--text-3); font-size: var(--fs-xs); }
.row__token { justify-self: stretch !important; display: flex; align-items: center; gap: 1rem; min-width: 0; }
.row__token div { min-width: 0; }
.row__token strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__token small { color: var(--text-3); font-size: var(--fs-xs); }
.row .num { font-size: 1rem; }
.th-end, .td-end { justify-self: end; }
.flash-up { animation: flash-up 1.2s var(--ease); }
.flash-down { animation: flash-down 1.2s var(--ease); }
@keyframes flash-up { 0% { background: rgb(134 196 151 / 0.2); } }
@keyframes flash-down { 0% { background: rgb(236 138 114 / 0.2); } }
.pressure { width: 100%; max-width: 120px; display: grid; gap: 5px; justify-items: end; }
.pressure__bar { width: 100%; height: 6px; border-radius: 6px; background: var(--down); overflow: hidden; }
.pressure__bar span { display: block; height: 100%; width: calc(var(--b, 0.5) * 100%); background: var(--up); }
.pressure small { font-size: 0.75rem; color: var(--text-3); }
.spark { width: 100px; height: 34px; }
.spark path { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Coin */
.back { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-3); font-weight: 500; width: max-content; padding: 0.4rem 0; }
.back:hover { color: var(--text); }
.coin { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.4rem; align-items: start; }
.coin__main, .coin__side { display: grid; gap: 1.4rem; }
.coin__banner { height: clamp(110px, 13vw, 180px); border-radius: 20px; overflow: hidden; margin-bottom: 1.8rem; }
.coin__banner img { width: 100%; height: 100%; object-fit: cover; }
.coin__id { display: flex; align-items: center; gap: 1.4rem; }
.thumb--lg { width: 84px; height: 84px; border-radius: 22px; font-size: 1rem; }
.coin__sym { color: var(--text-3); font-size: 1.1rem; margin-top: 0.4rem; }
.coin__links { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.8rem; }
.chip { display: inline-flex; align-items: center; gap: 0.55rem; height: 48px; padding: 0 1.1rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 0.98rem; transition: box-shadow 0.2s, background-color 0.2s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--accent); background: rgb(var(--tint) / 0.04); }
.chip .icon { width: 18px; height: 18px; }
.coin__price { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; margin-top: 2rem; }
.coin__price strong { font-size: clamp(2.8rem, 5.4vw, 4.6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; border-radius: 10px; }
.changes { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.changes span { font-family: var(--font-mono); font-size: 0.95rem; padding: 0.45rem 0.75rem; border-radius: 10px; background: rgb(var(--tint) / 0.05); }
.changes b { color: var(--text-3); margin-right: 0.45rem; font-weight: 500; }
.changes em { font-style: normal; }
.chart-panel { padding: 1.4rem; }
.chart-panel__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: var(--fs-sm); }
.chart { position: relative; height: clamp(320px, 46vh, 470px); }
.chart canvas { width: 100%; height: 100%; }
.chart__tip { position: absolute; top: 8px; left: 8px; pointer-events: none; padding: 0.55rem 0.8rem; border-radius: 12px; background: var(--text); color: var(--bg); font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.5; opacity: 0; transition: opacity 0.15s; white-space: nowrap; }
.chart.is-hover .chart__tip { opacity: 1; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.2rem; margin-top: 1.4rem; }
.kv dt { font-size: var(--fs-sm); color: var(--text-3); }
.kv dd { font-size: 1.3rem; margin-top: 0.2rem; letter-spacing: -0.02em; }
.flow { margin-top: 1.3rem; }
.flow__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.2rem 1rem; color: var(--text-3); font-size: var(--fs-sm); }
.flow__row > span { white-space: nowrap; }
.flow__row .num { color: var(--text-2); }

/* Forms (launch + builder) */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 1.4rem; align-items: start; }
.launch__preview { position: sticky; top: calc(var(--topbar-h) + 1rem); }
.steps { display: flex; gap: 0.55rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.steps button { display: inline-flex; align-items: center; gap: 0.75rem; height: 56px; padding: 0 1.4rem 0 0.5rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; color: var(--text-3); transition: background-color 0.25s, color 0.25s; }
.steps button span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--tint) / 0.06); font-size: 0.9rem; }
.steps button[aria-current='step'] { background: var(--text); color: var(--bg); box-shadow: none; }
.steps button[aria-current='step'] span { background: var(--accent); color: var(--accent-ink); }
.steps button.is-done span { background: var(--accent-soft); color: var(--accent); }
.steps button:disabled { opacity: 0.45; cursor: not-allowed; }
.fstep { display: grid; gap: 1.9rem; animation: fadeup 0.6s var(--ease) backwards; }
.fstep > p.muted { margin-top: -1rem; }
.field { display: grid; gap: 0.65rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 1.05rem; padding: 0; }
.field__label small { font-weight: 400; color: var(--text-3); }
.field__hint { color: var(--text-3); font-size: var(--fs-sm); }
.field__err { color: var(--down); font-size: var(--fs-sm); font-weight: 600; }
.field__err:empty { display: none; }
.input {
  width: 100%; height: 66px; padding: 0 1.35rem;
  border: 0; border-radius: 18px; outline: none;
  background: rgb(var(--tint) / 0.04);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 1.125rem; color: var(--text);
  transition: box-shadow 0.2s, background-color 0.2s;
}
.input::placeholder, .input input::placeholder { color: rgb(var(--tint) / 0.3); }
.input:focus, .input:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); background: rgb(var(--tint) / 0.07); }
.input--lg { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.input--area { height: auto; min-height: 132px; padding: 1.05rem 1.35rem; resize: vertical; line-height: 1.5; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 3rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8a80' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.2rem center; background-size: 20px; }
select.input option { background: var(--bg-2); color: var(--text); }
.input--affix { display: flex; align-items: center; padding: 0; }
.input--affix > span { padding-left: 1.35rem; color: var(--text-3); font-weight: 600; }
.input--affix input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; padding: 0 1.35rem 0 0.25rem; font-size: 1.125rem; }
.field.is-invalid .input { box-shadow: inset 0 0 0 1.5px var(--down); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; display: inline-flex; align-items: center; height: 56px; padding: 0 1.45rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.choice:has(input:checked) { background: var(--text); color: var(--bg); box-shadow: none; }
.choice:has(input:focus-visible), .toggle:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.toggle { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow 0.2s, background-color 0.2s; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgb(var(--tint) / 0.05); color: var(--text-3); }
.toggle strong { display: block; font-weight: 600; }
.toggle small { display: block; color: var(--text-3); font-size: var(--fs-sm); line-height: 1.35; }
.toggle__tick { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.toggle__tick .icon { width: 16px; height: 16px; stroke-width: 2.4; color: var(--accent-ink); opacity: 0; }
.toggle:has(input:checked) { box-shadow: inset 0 0 0 1.5px rgb(var(--accent-rgb) / 0.65); background: rgb(var(--accent-rgb) / 0.05); }
.toggle:has(input:checked) .toggle__icon { color: var(--accent); background: var(--accent-soft); }
.toggle:has(input:checked) .toggle__tick { background: var(--accent); box-shadow: none; }
.toggle:has(input:checked) .toggle__tick .icon { opacity: 1; }
.drop { position: relative; display: flex; align-items: center; gap: 1.3rem; padding: 1.2rem; border-radius: 20px; border: 1.5px dashed var(--line-strong); transition: border-color 0.2s, background-color 0.2s; }
.drop.is-over { border-color: var(--accent); background: rgb(var(--accent-rgb) / 0.06); }
.drop__img { width: 84px; height: 84px; flex: none; border-radius: 20px; overflow: hidden; display: grid; place-items: center; background: rgb(var(--tint) / 0.05); color: var(--text-3); }
.drop__img img { width: 100%; height: 100%; object-fit: cover; }
.drop strong { display: block; font-weight: 600; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.splitbar { display: flex; height: 76px; border-radius: 20px; overflow: hidden; font-weight: 700; font-size: 1.3rem; font-family: var(--font-mono); }
.splitbar > div { display: flex; align-items: center; padding: 0 1.3rem; white-space: nowrap; overflow: hidden; transition: flex-basis 0.5s var(--ease); }
.splitbar small { font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; opacity: 0.75; margin-left: 0.6rem; }
.splitbar__a { background: var(--accent); color: var(--accent-ink); }
.splitbar__r { background: var(--text); color: var(--bg); justify-content: flex-end; }
.fnav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 0.4rem; }
.review { border-top: 1px solid var(--line); }
.review > div { display: grid; grid-template-columns: 10rem 1fr auto; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.review dt { color: var(--text-3); }
.review dd { font-weight: 600; overflow-wrap: anywhere; }
.review button { color: var(--text-3); text-decoration: underline; text-underline-offset: 4px; font-size: var(--fs-sm); }
.review button:hover { color: var(--accent); }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.4rem; border-radius: 18px; background: var(--accent-soft); }
.notice.is-ok { background: rgb(134 196 151 / 0.1); }
.agree { display: flex; gap: 0.9rem; align-items: flex-start; color: var(--text-2); }
.agree input { width: 22px; height: 22px; accent-color: var(--accent); margin-top: 3px; flex: none; }
.agree.is-invalid span { color: var(--down); }
.draft { display: grid; gap: 0.9rem; padding: 1.4rem; border-radius: 20px; background: rgb(var(--accent-rgb) / 0.07); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.28); }
.draft__row { display: flex; gap: 0.7rem; }
.draft__row .input { flex: 1; }
.preview { display: grid; gap: 1.5rem; }
.preview__top { display: flex; align-items: center; gap: 1.1rem; }
.preview__top .h3 { overflow-wrap: anywhere; }
.preview__sym { color: var(--text-3); margin-top: 0.3rem; }
.preview__desc { min-height: 3em; overflow-wrap: anywhere; }
.preview__kv { display: grid; gap: 1rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.preview__kv div { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; }
.preview__kv dt { color: var(--text-3); font-size: var(--fs-sm); }
.preview__kv dd { font-weight: 600; }
.preview__splitlab { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-3); margin-top: 0.6rem; }
.done { display: grid; gap: 1.6rem; justify-items: start; animation: fadeup 0.7s var(--ease) backwards; }
.done__mark { width: 96px; height: 96px; }
.done__mark circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 280; stroke-dashoffset: 280; animation: draw 0.9s var(--ease) forwards; }
.done__mark path { fill: none; stroke: var(--text); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.5s var(--ease) 0.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done .h1 { max-width: 14ch; }
.idchip { display: inline-flex; align-items: center; gap: 0.8rem; min-height: 58px; padding: 0.6rem 1.2rem; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; flex-wrap: wrap; }
.idchip:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.idchip b { font-weight: 500; overflow-wrap: anywhere; }
.done__meta { display: flex; gap: 3rem; flex-wrap: wrap; }
.done__meta dt { color: var(--text-3); font-size: var(--fs-sm); }
.done__meta dd { font-weight: 600; }

/* Builder */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.4rem; align-items: start; }
.builder__form { display: grid; gap: 1.6rem; }
.builder__sub { margin-top: 1.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.builder__out { position: sticky; top: calc(var(--topbar-h) + 1rem); padding: 1.3rem; display: grid; gap: 1rem; }
.files { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.files button { display: inline-flex; align-items: center; gap: 0.5rem; height: 50px; padding: 0 1.05rem; border-radius: 14px; font-family: var(--font-mono); font-size: 0.92rem; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); transition: color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.files button .icon { width: 18px; height: 18px; }
.files button[aria-selected='true'] { color: var(--text); background: rgb(var(--tint) / 0.06); box-shadow: inset 0 0 0 1.5px var(--accent); }
.code {
  margin: 0; height: min(62vh, 660px); overflow: auto;
  padding: 1.2rem 0; border-radius: 18px;
  background: #141413; border: 1px solid var(--line);
  --tint: 244 243 238;
  font-family: var(--font-mono); font-size: 0.92rem; line-height: 1.75; color: #cfcbc1;
  counter-reset: ln; white-space: pre-wrap; word-break: break-word;
}
.code__line { display: block; position: relative; padding: 0 1.3rem 0 3.8rem; counter-increment: ln; }
.code__line::before { content: counter(ln); position: absolute; left: 0; width: 2.7rem; text-align: right; color: rgb(var(--tint) / 0.2); }
.tk-k { color: #ea9f84; }
.tk-s { color: #e8e3d7; }
.tk-n { color: var(--up); }
.tk-h { color: var(--accent); font-weight: 600; }
.tk-b { color: var(--accent); }
.builder__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Pulse */
.field-panel { padding: 1.4rem; }
.legend { display: flex; align-items: center; gap: 0.7rem; margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); }
.legend i { width: 130px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, rgb(236 138 114), rgb(120 116 108), rgb(134 196 151)); }
.bubbles { position: relative; height: clamp(440px, 64vh, 660px); border-radius: 20px; background: var(--well); border: 1px solid var(--line); overflow: hidden; }
.bubbles canvas, .scatter canvas { width: 100%; height: 100%; }
.bubbles__empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; }
.viz-tip { position: absolute; left: 0; top: 0; z-index: 2; min-width: 190px; padding: 0.75rem 0.95rem; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 0.95rem; line-height: 1.5; pointer-events: none; opacity: 0; transition: opacity 0.15s; }
.viz-tip .muted { color: inherit; opacity: 0.62; }
.viz-tip .pos { color: var(--tip-pos); }
.viz-tip .neg { color: var(--tip-neg); }
.is-tip > .viz-tip { opacity: 1; }
.pulse-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; }
.viz-sub { margin: 0.6rem 0 1.4rem; }
.flowrow { display: grid; grid-template-columns: 8.5rem 1fr 6.5rem; gap: 1rem; align-items: center; padding: 0.75rem 0.4rem; border-bottom: 1px solid var(--line); border-radius: 8px; transition: background-color 0.2s; }
.flowrow:hover { background: rgb(var(--tint) / 0.04); }
.flowrow__name strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flowrow__name small { font-size: var(--fs-xs); }
.flowrow__bar { width: var(--w); display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.flowrow__bar .buy { background: var(--up); }
.flowrow__bar .sell { background: var(--down); }
.flowrow__pct { text-align: right; font-size: var(--fs-sm); color: var(--text-2); }
.scatter { position: relative; height: 440px; }

/* ------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 1280px) {
  .table { --cols: 2.4rem minmax(200px, 2.2fr) 1.1fr 0.75fr 0.75fr 0.8fr 1fr 1fr 1fr 100px; }
  .table [data-col='pressure'] { display: none; }
}
@media (max-width: 1100px) {
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .visual { position: relative; top: 0; min-height: 0; }
  .feature--flip .visual { order: 2; }
  .reserve, .coin, .launch, .builder, .pulse-grid { grid-template-columns: 1fr; }
  .launch__preview, .builder__out { position: relative; top: 0; }
  .section__head { grid-template-columns: 1fr; }
  .table { --cols: 2rem minmax(180px, 2fr) 1.1fr 0.8fr 0.8fr 1fr 1fr; }
  .table [data-col='m5'], .table [data-col='liq'], .table [data-col='spark'] { display: none; }
}
@media (max-width: 900px) {
  .landing__copy { margin-left: 0; }
  .landing { align-items: flex-end; }
  .tiles { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .foot__links { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .landing__title { font-size: clamp(2.9rem, 12vw, 4.2rem); }
  .landing__actions .btn { flex: 1; }
  .landing__actions .ca-chip { width: 100%; }
  .acc__head { grid-template-columns: 48px 1fr 30px; gap: 1rem; }
  .acc__icon { width: 48px; height: 48px; }
  .acc__inner { padding-left: 0; }
  .pair, .toggles { grid-template-columns: 1fr; }
  .review > div { grid-template-columns: 1fr auto; }
  .review dt { grid-column: 1 / -1; }
  .table { --cols: minmax(0, 1.6fr) 1fr 0.8fr; }
  .table [data-col='rank'], .table [data-col='h1'], .table [data-col='vol'], .table [data-col='mcap'] { display: none; }
  .row, .table__head { padding: 0 0.5rem; gap: 0.6rem; }
  .table-panel, .field-panel, .chart-panel { padding: 0.9rem; }
  .flowrow { grid-template-columns: 6rem 1fr 5rem; }
  .legend { margin-left: 0; }
  .draft__row { flex-direction: column; }
  .kv dd { font-size: 1.1rem; }
}

/* ==========================================================================
   Colony, bands, sideways tour, Ant farm
   ========================================================================== */
.btn--dark { background: var(--ink); color: #f7ecd9; }
.btn--dark:hover { background: #000; box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.6); }

.landing__hint {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1.6rem; color: var(--text-3); font-size: var(--fs-sm);
  opacity: 0; transition: opacity 0.9s var(--ease) 0.8s;
}
.landing__hint .icon { width: 20px; height: 20px; color: var(--accent); flex: none; }
.landing.is-in .landing__hint { opacity: 1; }

/* Crossing bands */
.bands { position: relative; height: clamp(200px, 26vw, 300px); margin: clamp(1rem, 4vh, 3rem) 0; overflow: hidden; pointer-events: none; }
.band { position: absolute; left: -6vw; right: -6vw; top: 50%; padding: 1.1rem 0; overflow: hidden; box-shadow: 0 24px 60px -30px rgb(0 0 0 / 0.5); }
.band--a { background: var(--accent); color: var(--accent-ink); transform: translateY(-80%) rotate(-3.5deg); z-index: 1; }
.band--b { background: var(--ink); color: #f7ecd9; transform: translateY(-10%) rotate(2.5deg); }
.band__track { display: flex; align-items: center; gap: 2.2rem; width: max-content; will-change: transform; }
.band__track span { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3.4rem); letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.band__track i { width: 0.55em; height: 0.55em; font-size: clamp(1.9rem, 3.6vw, 3.4rem); background: currentColor; transform: rotate(45deg); flex: none; }
.band--b .band__track i { background: var(--accent); }

/* Inside the colony (pinned, sideways) */
.hscroll { position: relative; }
.hscroll__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.6rem, 4vh, 3rem); overflow: hidden; padding: var(--topbar-h) 0 calc(var(--dock-h) + 1.5rem); }
.hscroll__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; }
.hscroll__intro { display: grid; gap: 1.2rem; }
.hscroll__progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hscroll__progress span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); }
.hscroll__track { display: flex; gap: 1.4rem; width: max-content; padding: 0 max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); will-change: transform; }
.hcard { width: clamp(300px, 34vw, 500px); min-height: clamp(320px, 46vh, 460px); padding: clamp(1.6rem, 2.6vw, 2.4rem); display: flex; flex-direction: column; gap: 1rem; }
.hcard__n { font-size: 1rem; color: var(--accent); font-weight: 600; }
.hcard__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 2.8vw, 2.8rem); line-height: 1.02; letter-spacing: -0.025em; }
.hcard__text { color: var(--text-2); max-width: 40ch; }
.hcard__live { position: relative; margin-top: auto; display: grid; gap: 0.3rem; padding: 1.2rem 1.4rem; border-radius: var(--r-lg); background: var(--stat); color: #f4f3ee; box-shadow: inset 3px 0 0 var(--accent); --text-3: #a29c90; }
.hcard__live b { font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.hcard__live span { color: #a29c90; font-size: var(--fs-sm); }
.hcard__live .stat__live { font-style: normal; }
.hcard--cta { border-radius: var(--r-xl); background: var(--accent); color: var(--accent-ink); --text-2: var(--accent-ink); justify-content: flex-start; }
.hcard--cta .hcard__n, .hcard--cta .dot { color: var(--accent-ink); }
.hcard--cta .btn { margin-top: auto; align-self: flex-start; }

/* Accent tile */
.tile--accent { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.tile--accent::before { background: var(--accent-ink); }
.tile--accent .tile__icon { background: rgb(0 0 0 / 0.12); color: var(--accent-ink); }
.tile--accent .tile__text { color: var(--accent-ink); opacity: 0.85; }
.tile--accent .dot { color: var(--accent-ink); }
.tiles { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Ant farm page */
.farm { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.4rem; align-items: stretch; }
.farm__stage { position: relative; padding: 0.8rem; min-height: 0; }
.farm__canvas { width: 100%; height: clamp(460px, 68vh, 760px); border-radius: 22px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); touch-action: none; cursor: crosshair; }
.farm__hint { position: absolute; left: 1.8rem; bottom: 1.8rem; padding: 0.55rem 0.9rem; border-radius: var(--r-pill); background: var(--glass-strong); border: 1px solid var(--glass-line); font-size: var(--fs-sm); color: var(--text-2); pointer-events: none; }
.farm__controls { display: grid; gap: 1.5rem; align-content: start; }
.seg--tools { display: flex; width: 100%; }
.seg--tools button { flex: 1; padding: 0 0.6rem; }
.farm__switches { display: grid; gap: 0.9rem; }
.farm__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.farm__buttons .btn { width: 100%; }
.farm__legend { display: grid; gap: 0.9rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.farm__legend dt { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.farm__legend dd { color: var(--text-3); font-size: var(--fs-sm); margin-left: 1.6rem; }
.lg { width: 14px; height: 14px; border-radius: 4px; }
.lg--home { background: rgb(60 100 220 / 0.75); }
.lg--food { background: var(--accent); }

/* Switch */
.switch { position: relative; display: flex; align-items: center; gap: 0.85rem; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { position: relative; width: 50px; height: 30px; border-radius: 30px; background: rgb(var(--tint) / 0.16); transition: background-color 0.25s; flex: none; }
.switch__track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / 0.25); transition: transform 0.35s var(--ease); }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Food drop ripple */
.food-ripple { position: fixed; z-index: 5; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid var(--accent); pointer-events: none; animation: food-ripple 0.8s var(--ease) forwards; }
@keyframes food-ripple { to { transform: scale(5); opacity: 0; } }

@media (max-width: 1100px) {
  .farm { grid-template-columns: 1fr; }
  .farm__canvas { height: clamp(380px, 60vh, 620px); }
}
@media (max-width: 900px) {
  .hscroll__pin { position: relative; height: auto; padding: 3rem 0; }
  .hscroll__head { grid-template-columns: 1fr; }
  .hscroll__progress { display: none; }
  .hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; transform: none !important; scrollbar-width: none; }
  .hscroll__track::-webkit-scrollbar { display: none; }
  .hcard { flex: none; width: 82vw; scroll-snap-align: center; min-height: 360px; }
  .bands { height: 180px; }
}

.farm-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 3rem; align-items: end; padding: 0.4rem 0 0.6rem; }
.farm-head .lead { max-width: 56ch; }
.farm__canvas { height: calc(100vh - var(--topbar-h) - var(--dock-h) - 13rem); min-height: 440px; max-height: 820px; }
.farm__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 1rem; border-radius: 18px; background: var(--stat); color: #f4f3ee; box-shadow: inset 3px 0 0 var(--accent); }
.farm__stats div { display: grid; gap: 0.1rem; }
.farm__stats b { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.03em; }
.farm__stats small { color: #a29c90; font-size: 0.8rem; }
@media (max-width: 900px) { .farm-head { grid-template-columns: 1fr; } }
