@font-face { font-family: 'Bagel Fat One'; src: url('/assets/fonts/bagel-fat-one.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'ZCOOL KuaiLe'; src: url('/assets/fonts/zcool-kuaile.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

/* Colours are sampled from the Aikol drawings: sky, bandana/bowl red, fur, kibble, grass. */
/* The static markup is English, so Chinese browsers would flash English for a moment before app.js runs.
   The head script sets data-booting and data-lang; applyLang clears data-booting once the copy is in place. */
html[data-booting] { visibility: hidden; }
html[data-booting][data-lang="en"] { visibility: visible; }

:root {
  --ink: #000;
  --paper: #fff;
  --sky: #b3e0f9;
  --sky-pale: #e3f3fd;
  --red: #d42a2f;
  --red-dark: #a51d22;
  --fur: #f4e6cc;
  --kibble: #6e4220;
  --grass: #8cb85c;
  --line: 3px solid var(--ink);
  /* Slightly lopsided corners, like the hand-drawn outlines. */
  --wobble: 18px 26px 16px 24px / 24px 16px 26px 18px;
  --wobble-sm: 12px 16px 10px 15px / 15px 10px 16px 12px;
  --display: 'Bagel Fat One', 'ZCOOL KuaiLe', 'PingFang SC', sans-serif;
  --body: 'Figtree', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}
html[data-lang="zh"] { --display: 'ZCOOL KuaiLe', 'PingFang SC', sans-serif; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.lede { max-width: 60ch; margin: 14px 0 0; font-size: 18px; }
.muted { opacity: .65; }

/* Buttons are stickers: black outline, flat fill, hard shadow that you press into. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 28px; border: var(--line); border-radius: var(--wobble-sm); font-family: var(--display); font-size: 21px; line-height: 1; text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-red { background: var(--red); color: var(--paper); }
.btn-white { background: var(--paper); color: var(--ink); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 17px; box-shadow: 3px 3px 0 var(--ink); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* Header sits on the drawing's sky. */
.top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 16px clamp(20px, 4vw, 48px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 30px/1 'Bagel Fat One', sans-serif; }
.brand img { width: 44px; height: 44px; border: var(--line); border-radius: 50%; background: var(--paper); object-fit: cover; }
.nav { display: flex; gap: 24px; margin-right: auto; }
.nav a { text-decoration: none; font-weight: 700; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ca-chip { padding: 7px 14px; border: var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.lang { min-width: 60px; height: 42px; padding: 0 14px; border: var(--line); border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800; cursor: pointer; }

/* Hero: the copy lives in the empty sky of the drawing. */
.hero { position: relative; background: var(--sky); }
.hero-art img { width: 100%; height: auto; }
.hero-copy { position: absolute; top: 0; left: 0; width: min(700px, 50%); padding: clamp(92px, 7vw, 116px) 0 0 clamp(20px, 5vw, 80px); }
.hero h1 { font-size: clamp(36px, 3.7vw, 60px); }
html[data-lang="en"] .hero h1 { font-size: clamp(32px, 3.2vw, 50px); text-wrap: balance; }
.hero-sub { margin: 16px 0 0; font-size: 19px; font-weight: 500; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* Counter band: the one number the whole site is about. */
.counter { border-block: var(--line); background: var(--red); color: var(--paper); }
.counter-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 14px; padding: 18px 0 16px; text-align: center; }
.counter-label, .counter-unit { font-family: var(--display); font-size: 26px; }
.counter-num { font: 400 54px/1 'Bagel Fat One', sans-serif; color: var(--paper); text-shadow: 3px 3px 0 var(--ink); }
.counter-empty { flex-basis: 100%; margin: 2px 0 0; font-weight: 600; }

/* Live wall. */
.live { padding: 88px 0 96px; background: var(--sky-pale); border-bottom: var(--line); }
.live-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 28px; margin-top: 36px; align-items: start; }
.stage-player { padding: 10px; border: 4px solid var(--ink); border-radius: var(--wobble); background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.screen { position: relative; aspect-ratio: 16 / 9; border: var(--line); border-radius: 12px; overflow: hidden; background: #1d1d1d; }
.screen video { width: 100%; height: 100%; object-fit: contain; background: #1d1d1d; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.poster.gone { opacity: 0; pointer-events: none; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; padding: 12px 22px 12px 12px; border: var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 17px; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }
.play-icon { width: 38px; height: 38px; border: var(--line); border-radius: 50%; background: var(--red); position: relative; }
.play-icon::after { content: ''; position: absolute; left: 11px; top: 7px; border: 9px solid transparent; border-left: 13px solid var(--paper); border-right: 0; }
.player-msg { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); font-size: 14px; font-weight: 600; }
.now-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 6px 4px; }
.now-bar strong { font-family: var(--display); font-weight: 400; font-size: 24px; }
.stations { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stations-note { padding: 18px; border: 3px dashed var(--ink); border-radius: var(--wobble-sm); background: var(--paper); }
.station { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border: var(--line); border-radius: var(--wobble-sm); background: var(--paper); }
.station.on { background: var(--sky); box-shadow: 4px 4px 0 var(--ink); }
.station .pick { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.station img { width: 88px; aspect-ratio: 16 / 10; flex: none; border: 2px solid var(--ink); border-radius: 8px; object-fit: cover; background: #1d1d1d; }
.station .info { min-width: 0; display: grid; }
.station b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.2; }
.station small { font-size: 13px; font-weight: 600; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Feeders paid by the tax. */
.fund { padding: 88px 0 90px; background: var(--grass); border-bottom: var(--line); }
.fund-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: 28px; margin-top: 32px; align-items: stretch; }
.machines { padding: 22px 24px; border: 4px solid var(--ink); border-radius: var(--wobble); background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.machines-count { margin: 0; font-family: var(--display); font-size: 28px; line-height: 1.1; }
.machines-count span:first-child { font: 400 64px/1 'Bagel Fat One', sans-serif; color: var(--red); text-shadow: 3px 3px 0 var(--ink); }
.machine-row { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; padding: 0; }
/* A feeder: red body, a window full of kibble, a bowl underneath. */
.machine { position: relative; width: 46px; height: 64px; border: var(--line); border-radius: 10px 10px 6px 6px; background: var(--red); }
.machine::before { content: ''; position: absolute; left: 7px; right: 7px; top: 8px; height: 22px; border: 2px solid var(--ink); border-radius: 5px; background: radial-gradient(circle at 30% 40%, var(--kibble) 0 3px, transparent 3.5px) 0 0 / 9px 8px, var(--fur); }
.machine::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -10px; height: 12px; border: var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: var(--paper); }
.machine.next { display: grid; place-items: center; border-style: dashed; background: var(--paper); font: 400 26px/1 'Bagel Fat One', sans-serif; }
.machine.next::before, .machine.next::after { content: none; }
.machines-next { margin: 22px 0 0; font-weight: 700; }
.fund-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.fund-facts div { padding: 14px 16px; border: var(--line); border-radius: var(--wobble-sm); background: var(--paper); }
.fund-facts dt { font-size: 14px; font-weight: 700; opacity: .7; }
.fund-facts dd { margin: 4px 0 0; font-family: var(--display); font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
/* Pay-to-feed: a paper ticket next to the feeders, units are stickers you press. */
.buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.1fr); gap: 18px 28px; margin-top: 28px; padding: 22px 24px; border: 4px solid var(--ink); border-radius: var(--wobble); background: var(--fur); box-shadow: 6px 6px 0 var(--ink); }
.buy-head h3 { font-size: 30px; }
.buy-head p { margin: 10px 0 0; max-width: 46ch; }
.buy-form { display: grid; gap: 14px; align-content: start; }
.buy-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; font-weight: 700; }
.buy-field legend { padding: 0; margin-bottom: 6px; }
.buy-field select { min-height: 46px; padding: 0 12px; border: var(--line); border-radius: 12px; background: var(--paper); font: 600 17px var(--body); color: var(--ink); }
.buy-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 360px; }
.unit { min-height: 44px; padding: 0 6px; border: var(--line); border-radius: 999px; background: var(--paper); font: 800 17px var(--body); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.unit[aria-pressed="true"] { background: var(--red); color: var(--paper); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.unit:disabled { opacity: .5; cursor: not-allowed; }
.buy-total { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.buy-wallet { margin: 0; font-size: 14px; font-weight: 700; opacity: .7; overflow-wrap: anywhere; }
.buy-status { margin: 0; min-height: 1.6em; font-weight: 700; }
.buy-status[data-tone="warn"] { color: var(--red-dark); }
.buy-orders { grid-column: 1 / -1; list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.buy-orders li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); }
.buy-orders b { font-weight: 800; }
.buy-orders span { font-weight: 600; }
.buy-videos { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.buy-videos a { font-weight: 800; }
.buy-orders .btn { margin-left: auto; }
.log-title { margin-top: 40px; font-size: 28px; }
.feed-log { list-style: none; display: grid; gap: 8px; margin: 14px 0 0; padding: 0; max-height: 420px; overflow-y: auto; }
.feed-log li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); }
.feed-log time { min-width: 4.5em; font-weight: 700; font-variant-numeric: tabular-nums; }
.feed-log b { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-log a { font-weight: 800; }
.feed-log small { font-weight: 600; opacity: .6; }
.feed-log .log-empty { border-style: dashed; font-weight: 600; }
.kind { padding: 1px 9px; border: 2px solid var(--ink); border-radius: 999px; font-size: 12px; font-weight: 800; }
.kind-free { background: var(--sky); }
.kind-auto { background: var(--fur); }
.kind-paid { background: var(--red); color: var(--paper); }

/* Growth: one drawing, three stages; stages not reached yet are greyed out in place. */
.grow { padding: 88px 0 90px; background: var(--paper); text-align: center; border-bottom: var(--line); }
.grow .lede { margin-inline: auto; }
.grow-strip { display: grid; grid-template-columns: 27fr 33fr 40fr; grid-template-rows: auto auto; max-width: 1020px; margin: 28px auto 0; }
.grow-strip > img { grid-column: 1 / -1; grid-row: 1; width: 100%; height: auto; }
.track { display: contents; list-style: none; }
.track li { grid-row: 1 / 3; display: grid; grid-template-rows: subgrid; justify-items: center; }
.track li[data-stage="0"] { grid-column: 1; }
.track li[data-stage="1"] { grid-column: 2; }
.track li[data-stage="2"] { grid-column: 3; }
.shade { grid-row: 1; align-self: stretch; justify-self: stretch; background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: grayscale(1); backdrop-filter: grayscale(1); transition: opacity .5s ease; }
.track li.reached .shade { opacity: 0; }
.label { grid-row: 2; display: grid; padding-top: 6px; }
.track b { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.2; }
.track .at { font-size: 15px; font-weight: 600; opacity: .65; }
.track li.now .at { opacity: 1; color: var(--red); }
.bar { position: relative; height: 26px; margin: 36px auto 0; max-width: 860px; border: var(--line); border-radius: 999px; background: var(--paper); overflow: hidden; }
.bar span { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--kibble) 0 10px, #8a5a30 10px 20px); border-right: var(--line); transition: width .8s ease; }
.grow-next { margin: 14px 0 0; font-weight: 700; }

/* CZ wall. */
.cz { padding: 88px 0; background: var(--fur); }
.cz-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.cz-pending { margin: 22px 0 0; padding: 14px 18px; border: 3px dashed var(--ink); border-radius: var(--wobble-sm); background: var(--paper); font-weight: 700; max-width: 44ch; }
.cz-side { position: sticky; top: 24px; background: var(--fur); }
.cz-dog { width: min(260px, 60%); height: auto; margin: 26px 0 0 12px; mix-blend-mode: multiply; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.posts li { padding: 14px 18px; border: var(--line); border-radius: var(--wobble-sm); background: var(--paper); }
.post-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; opacity: .8; }
.rumor { padding: 1px 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--red); color: var(--paper); font-weight: 800; font-size: 12px; }
.rumor.live { background: var(--ink); }
.posts p { margin: 6px 0; overflow-wrap: anywhere; white-space: pre-line; }
.posts a { font-weight: 800; }

/* Footer. */
.foot { padding: 52px 0 40px; background: var(--ink); color: var(--paper); }
.foot-grid { display: grid; gap: 18px; }
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border: 3px solid var(--paper); border-radius: var(--wobble-sm); }
.ca-label { font-weight: 800; }
.ca code { flex: 1; min-width: 0; font: 600 15px/1.4 var(--body); opacity: .75; overflow-wrap: anywhere; }
.foot .btn-white { box-shadow: 3px 3px 0 var(--paper); }
.x-link { margin: 0; font-weight: 700; }
.x-link a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.disclaimer { margin: 0; max-width: 72ch; font-size: 15px; opacity: .8; }
.meta { margin: 0; font-size: 13px; opacity: .6; }

.soon { width: min(420px, calc(100% - 32px)); padding: 24px 28px 28px; border: 4px solid var(--ink); border-radius: var(--wobble); background: var(--paper); color: var(--ink); text-align: center; box-shadow: 8px 8px 0 var(--ink); }
.soon::backdrop { background: rgba(179, 224, 249, .8); }
.soon img { width: 150px; height: auto; margin: 0 auto 6px; }
.soon h3 { font-size: 30px; }
.soon p { margin: 10px 0 20px; }
.feed-dlg .feed-video { margin-top: -6px; }
.feed-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.feed-actions form { display: contents; }

@media (max-width: 1180px) {
  .hero { display: flex; flex-direction: column; }
  .hero-copy { position: static; order: -1; width: auto; padding: 104px clamp(20px, 5vw, 80px) 8px; }
  .hero-copy > * { max-width: 640px; }
}
@media (max-width: 1020px) {
  .nav { display: none; }
  .brand { margin-right: auto; }
  .live-grid, .cz-grid, .fund-grid, .buy { grid-template-columns: 1fr; }
  .cz-side { position: static; }
  .cz-dog { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { gap: 10px; padding: 14px 16px; }
  .brand { font-size: 25px; }
  .brand img { width: 36px; height: 36px; }
  .ca-chip { padding: 5px 10px; font-size: 12px; }
  .lang { min-width: 50px; height: 36px; padding: 0 10px; }
  .hero-copy { padding: 88px 20px 4px; }
  .hero h1, html[data-lang="en"] .hero h1 { font-size: clamp(32px, 9.4vw, 42px); }
  .hero-sub { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .counter-label, .counter-unit { font-size: 21px; }
  .counter-num { font-size: 44px; }
  .live, .cz, .fund { padding: 60px 0; }
  .fund-facts { grid-template-columns: 1fr; }
  .feed-log li { flex-wrap: wrap; gap: 4px 10px; }
  .buy { padding: 18px 16px; }
  .buy-head h3 { font-size: 26px; }
  .grow { padding: 64px 0; }
  .track b { font-size: 18px; }
  .track .at { font-size: 12px; }
  .station img { width: 72px; }
  .lede { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
