/* SILVER SURFER #1 — tokens from brief-v2: space black, chrome, cold blue light. Single committed theme. */
:root {
  --bg: #050810;
  --bg-2: #0B111C;
  --panel: #0D1420;
  --line: #1B2230;
  --ink: #EEF1F6;
  --mute: #9AA3B2;
  --chrome-hi: #F5F6F8;
  --chrome-mid: #B8BCC6;
  --chrome-lo: #5E6470;
  --blue: #3D8BFF;
  --blue-core: #BFE3FF;
  --blue-dim: rgba(61, 139, 255, 0.18);
  --display: "Rubik Mono One", "Arial Black", Impact, sans-serif;
  --body: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --mono: "Azeret Mono", "Cascadia Mono", Consolas, monospace;
  --zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --chrome-text: linear-gradient(180deg, #FFFFFF 0%, #E3E6EC 38%, #7C818C 50%, #D9DCE3 62%, #FFFFFF 100%);
  --gutter: clamp(16px, 4vw, 48px);
  --page-w: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-core); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* language switch: only one language is visible at a time */
[lang="zh"] { font-family: var(--zh); }
html[data-lang="en"] [lang="zh"] { display: none !important; }
html[data-lang="zh"] [lang="en"] { display: none !important; }

/* ---------- atmosphere: a live starfield canvas behind everything, plus the sticker field ---------- */
canvas.space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.stickerfield { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: clip; }
.floater {
  position: absolute; width: var(--w, 160px); height: auto; opacity: .9;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.65)) drop-shadow(0 0 22px rgba(61,139,255,.18));
  will-change: transform;
}
@keyframes bob { from { translate: 0 -8px; } to { translate: 0 8px; } }
@media (prefers-reduced-motion: no-preference) { .floater img { animation: bob var(--d, 6s) ease-in-out infinite alternate; } }
@media (max-width: 720px) { .floater { --w: 84px !important; opacity: .55; } .floater.desktop-only { display: none; } }
.page { position: relative; z-index: 2; }

/* ---------- comic page chrome: gutters, page numbers, caption boxes ---------- */
.sheet {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.pg {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.pg-no {
  position: absolute; top: 18px; right: var(--gutter);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.pg-no b { color: var(--chrome-mid); font-weight: 600; }
.caption {
  display: inline-block;
  background: var(--chrome-hi);
  color: #0A0D14;
  font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(18px, 2.4vw, 28px); line-height: 1.15;
  padding: 10px 16px 9px;
  box-shadow: 4px 4px 0 var(--blue), 0 0 32px var(--blue-dim);
  transform: rotate(-1deg);
  max-width: 22ch;
  text-wrap: balance;
}
.caption + .caption { margin-top: 12px; transform: rotate(.6deg); }
.lede { max-width: 58ch; color: var(--ink); font-size: clamp(17px, 1.6vw, 20px); }
.lede p { margin: 0 0 14px; }
.small { color: var(--mute); font-size: 15px; max-width: 62ch; }
.h {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 4vw, 52px); line-height: 1.02; letter-spacing: -.01em;
  margin: 0 0 20px;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.two { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.panel {
  position: relative;
  border: 2px solid var(--chrome-mid);
  box-shadow: 6px 6px 0 #000, 0 0 0 1px #000;
  background: #000;
  overflow: hidden;
}
.panel img { width: 100%; height: auto; }
.panel.tilt-l { transform: rotate(-1.2deg); }
.panel.tilt-r { transform: rotate(1deg); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  background: linear-gradient(180deg, rgba(5,8,16,.96), rgba(5,8,16,.78));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.issue {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--chrome-mid);
  border: 1px solid var(--chrome-lo); padding: 6px 10px;
}
.issue b { font-weight: 600; color: var(--chrome-hi); }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav button {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute); text-decoration: none; padding: 8px 10px; background: none; border: 0;
}
.nav a:hover { color: var(--chrome-hi); }
.lang { border: 1px solid var(--chrome-lo) !important; color: var(--chrome-hi) !important; }

/* ---------- COVER ---------- */
.cover { position: relative; overflow: hidden; min-height: min(92vh, 900px); }
.cover .sheet { position: relative; padding-top: clamp(24px, 4vw, 48px); }
.masthead { margin: 0; line-height: 0; }
.masthead img { width: min(100%, 820px); height: auto; filter: drop-shadow(0 8px 0 rgba(0,0,0,.6)) drop-shadow(0 0 36px rgba(61,139,255,.35)); }
.masthead .fallback {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 9.5vw, 128px); line-height: .92; letter-spacing: -.02em;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 #000) drop-shadow(0 0 40px rgba(61,139,255,.35));
}
.tagline {
  margin: 22px 0 0; max-width: 34ch;
  font-size: clamp(18px, 2.2vw, 26px); line-height: 1.25; font-weight: 500;
  text-wrap: balance;
}
.tagline [lang="zh"] { display: block; }
.wave-wrap { position: absolute; inset: 0; }
canvas.wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform-origin: 62% 45%; }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1.2%, 0.8%); } }
@media (prefers-reduced-motion: no-preference) { canvas.wave { animation: drift 26s ease-in-out infinite alternate; } }
.surfer {
  position: absolute; z-index: 2; width: clamp(180px, 30vw, 460px); height: auto;
  pointer-events: none;
  filter: drop-shadow(0 0 28px rgba(191,227,255,.45)) drop-shadow(0 14px 18px rgba(0,0,0,.6));
  transition: left .7s cubic-bezier(.2,.8,.2,1), top .7s cubic-bezier(.2,.8,.2,1);
}
@media (prefers-reduced-motion: reduce) { .surfer { transition: none; } }
.bursts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.burst {
  --b: var(--chrome-hi);
  position: relative; display: inline-block;
  font-family: var(--display); font-size: clamp(12px, 1.3vw, 16px); line-height: 1.1;
  color: #0A0D14; background: var(--b);
  padding: 12px 18px;
  clip-path: polygon(4% 18%, 12% 0, 24% 10%, 36% 0, 48% 8%, 62% 0, 74% 10%, 88% 2%, 100% 16%, 94% 34%, 100% 52%, 92% 70%, 100% 88%, 84% 100%, 70% 92%, 56% 100%, 42% 90%, 28% 100%, 14% 92%, 0 100%, 6% 78%, 0 58%, 8% 40%, 0 24%);
  transform: rotate(-4deg);
}
.burst.blue { --b: var(--blue-core); transform: rotate(3deg); }
.windows { display: flex; gap: 6px; margin-top: 28px; align-items: center; }
.windows span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-right: 6px; }
.windows button {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; padding: 7px 10px;
  background: transparent; border: 1px solid var(--chrome-lo); color: var(--chrome-mid);
}
.windows button[aria-pressed="true"] { background: var(--chrome-hi); color: #0A0D14; border-color: var(--chrome-hi); }
.quote { margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--mute); font-variant-numeric: tabular-nums; }
.quote b { color: var(--blue-core); font-weight: 600; }

/* CA bar = the comic price box */
.cabar {
  margin-top: clamp(28px, 4vw, 44px);
  max-width: 640px;
  border: 2px solid var(--chrome-mid); background: rgba(5,8,16,.85);
  box-shadow: 6px 6px 0 #000;
}
.cabar .lbl {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.cabar .row { display: flex; align-items: center; gap: 10px; padding: 12px; }
.cabar code {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: clamp(12px, 1.4vw, 15px);
  color: var(--chrome-hi); overflow-wrap: anywhere; word-break: break-all;
}
.cabar code.pending { color: var(--mute); }
.copy {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--chrome-hi); color: #0A0D14; border: 0; padding: 10px 14px;
}
.copy[disabled] { opacity: .35; cursor: not-allowed; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  padding: 13px 18px; border: 2px solid var(--chrome-mid); color: var(--chrome-hi);
  background: rgba(5,8,16,.7);
}
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 28px rgba(61,139,255,.45); }
.btn.primary:hover { background: #5b9dff; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* ---------- THE PAIR ---------- */
.plate {
  display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px;
  margin-top: 22px; padding: 16px 18px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 15px;
}
.plate dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.plate dd { margin: 0; }
.plate a { color: var(--blue-core); }

/* ---------- DIVIDENDS ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.stat {
  padding: 16px 16px 14px; border: 2px solid var(--chrome-mid); background: #000;
  box-shadow: 4px 4px 0 #000;
}
.stat b {
  display: block; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.6vw, 34px); line-height: 1;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; margin-bottom: 6px;
}
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.counter { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--mute); letter-spacing: .06em; }
.counter b { color: var(--blue-core); font-weight: 600; }

/* ---------- THE SPLIT (cutaway bar) ---------- */
.bar { display: grid; grid-template-columns: 82fr 10fr 5fr 3fr; gap: 3px; margin-top: 22px; height: 34px; }
.bar > div {
  position: relative; background: linear-gradient(180deg, #F5F6F8, #B8BCC6 45%, #6C717C 55%, #D9DCE3);
  border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.bar > div:nth-child(2) { background: linear-gradient(180deg, #3b3f48, #1b1e26); }
.bar > div:nth-child(3) { background: linear-gradient(180deg, #3D8BFF, #1c4fa8); }
.bar > div:nth-child(4) { background: linear-gradient(180deg, #8f96a3, #4a505b); }
.legend { display: grid; grid-template-columns: repeat(4, max-content); gap: 8px 22px; margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.legend b { display: block; font-size: 18px; color: var(--chrome-hi); font-weight: 600; font-variant-numeric: tabular-nums; }
.legend span { color: var(--mute); text-transform: uppercase; font-size: 11px; }

/* ---------- ORIGIN strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.strip figure { margin: 0; }
.strip .panel img { aspect-ratio: 3 / 4; object-fit: cover; }
.strip figcaption { margin-top: 10px; }
.strip .caption { font-size: clamp(14px, 1.5vw, 18px); transform: none; max-width: none; }

/* ---------- ART grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.grid a { display: block; border: 2px solid var(--chrome-mid); background: #000; box-shadow: 4px 4px 0 #000; }
.grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.grid a:hover { border-color: var(--blue-core); }

/* ---------- ART row (sticker pack links) ---------- */
.artrow { display: grid; grid-template-columns: max-content 1fr; gap: 20px 32px; align-items: center; margin-top: 22px; }
.artrow .ctas { margin-top: 0; }
@media (max-width: 720px) { .artrow { grid-template-columns: 1fr; } }

/* ---------- STICKERS (grid no longer used as a section) ---------- */
.stickers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 26px; }
.stickers img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); transition: transform .2s ease; }
.stickers img:hover { transform: rotate(-4deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .stickers img { transition: none; } .stickers img:hover { transform: none; } }

/* ---------- MODEL SHEET ---------- */
.sheet-img { margin-top: 26px; }

/* ---------- BACK COVER ---------- */
.back { border-top: 2px solid var(--chrome-mid); }
.ad { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.strike { font-family: var(--display); font-size: clamp(20px, 3vw, 36px); color: var(--chrome-lo); text-decoration: line-through; text-decoration-color: var(--blue); text-decoration-thickness: 6px; margin: 0; }
.coupon {
  margin-top: 18px; border: 2px dashed var(--chrome-mid); padding: 8px 0;
  background: var(--chrome-hi); color: #0A0D14;
}
.coupon a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 18px; text-decoration: none;
  font-family: var(--display); font-size: clamp(14px, 1.6vw, 20px);
  border-bottom: 1px solid rgba(0,0,0,.15);
}
.coupon a:last-child { border-bottom: 0; }
.coupon a[aria-disabled="true"] { color: #8a8f99; pointer-events: none; }
.coupon small { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #4a505b; }
.fine { margin-top: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); line-height: 1.8; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .two, .ad { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .stickers { grid-template-columns: repeat(4, 1fr); }
  .legend { grid-template-columns: repeat(2, max-content); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { flex-wrap: wrap; }
  .nav a:not(.lang) { display: none; }
  .cover { min-height: 0; }
  .wave-wrap { position: relative; height: 320px; margin: 18px calc(-1 * var(--gutter)) 0; }
  .surfer { width: 46vw; }
  .stats { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stickers { grid-template-columns: repeat(3, 1fr); }
  .bar { height: 26px; }
  .caption { max-width: none; }
}

/* ---------- every monitor ----------
   Short desktops (720/768/864 px tall, incl. 2560x1080): a compact cover so the CA bar and BUY stay above the fold.
   Big monitors (2K, ultrawide, 4K): the whole page scales up by tiers instead of sitting as a 1280 px strip. */
@media (min-width: 1000px) and (max-height: 820px) {
  /* tight: 1280x720, 1366x768 */
  .cover { min-height: 0; }
  .cover .sheet { padding-top: 14px; }
  .masthead img { width: min(100%, 560px); }
  .tagline { margin-top: 10px; font-size: 18px; max-width: 40ch; }
  .tagline [lang="zh"] { display: inline; margin-left: 10px; }
  .bursts { margin-top: 12px; gap: 10px; }
  .burst { padding: 9px 14px; font-size: 12px; }
  .windows { margin-top: 14px; }
  .quote { margin-top: 8px; }
  .cabar { margin-top: 14px; max-width: 560px; }
  .cabar .row { padding: 9px 10px; }
  .ctas { margin-top: 10px; }
  .btn { padding: 10px 14px; font-size: 12px; }
}
@media (min-width: 1000px) and (min-height: 821px) and (max-height: 1500px) {
  /* mid: 1440x900, 1536x864, 1920x1080 (zoomed), 2560x1440 and 3440x1440 (zoomed) */
  .cover { min-height: 0; }
  .cover .sheet { padding-top: 22px; }
  .masthead img { width: min(100%, 680px); }
  .tagline { margin-top: 14px; font-size: clamp(18px, 1.6vw, 22px); }
  .bursts { margin-top: 16px; }
  .windows { margin-top: 18px; }
  .cabar { margin-top: 18px; }
  .ctas { margin-top: 12px; }
}
@media (min-width: 1800px) and (min-height: 1000px) { .page, .stickerfield { zoom: 1.2; } .cover { min-height: 0; } }
@media (min-width: 2300px) and (min-height: 1250px) { .page, .stickerfield { zoom: 1.45; } }
@media (min-width: 3000px) and (min-height: 1250px) { .page, .stickerfield { zoom: 1.45; } }
@media (min-width: 3600px) and (min-height: 1900px) { .page, .stickerfield { zoom: 2; } }
@media (max-width: 640px) {
  .wave-wrap { height: 250px; }
  .masthead { margin-top: -22px; }
  .tagline { margin-top: 14px; }
  .bursts { margin-top: 16px; }
  .windows { margin-top: 18px; flex-wrap: wrap; }
  .cabar { margin-top: 18px; }
}
