/* Pintara: dark frame, big white rounded panels, chunky wide caps, candy colour cards. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #171420;
  --ink-2: #211c30;
  --ink-3: #2e2845;
  --paper: #ffffff;
  --mist: #f6f6f6;
  --lilac: #f3f1fb;
  --line: #e7e4f1;
  --text: #171420;
  --muted: #5d5872;
  --on-dark: #e9e6f5;
  --on-dark-muted: #a7a1bd;
  --purple: #6d57ff;
  --purple-d: #5843ee;
  --green: #4de5a6;
  --blue: #9adbff;
  --yellow: #ffe635;
  --orange: #ff9900;
  --pink: #f093ff;
  --red: #ff5a4e;
  --r-xl: 44px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --pill: 999px;
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.display, .h2, .h3, .choice-card h2, .tile h3, .stat b, .foot-mark {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.display { font-size: clamp(44px, 9vw, 124px); line-height: 0.9; margin: 0; }
.h2 { font-size: clamp(28px, 4vw, 44px); line-height: 0.95; margin: 0; }
.h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1; margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* a light Simplified Chinese accent: system CJK fonts only, never stretched or uppercased */
:root { --zh: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif; }
.zh-tag, .zh-line, .zh-sub, .zh-inline, .zh-btn { font-family: var(--zh); font-stretch: normal; text-transform: none; letter-spacing: 0.04em; }
.zh-tag { display: inline-block; vertical-align: middle; font-size: 15px; font-weight: 700; line-height: 1; padding: 7px 12px; border-radius: var(--pill); background: rgba(23, 20, 32, 0.08); color: inherit; }
h2 .zh-tag, .h2 .zh-tag { font-size: clamp(13px, 1.3vw, 16px); margin-left: 10px; transform: translateY(-0.2em); }
.tile .zh-tag, .choice-card .zh-tag, .side-view .zh-tag { justify-self: start; align-self: flex-start; background: rgba(255, 255, 255, 0.55); }
.zh-line { margin: 14px 0 0; font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; letter-spacing: 0.12em; text-align: center; color: var(--purple); }
.zh-center { text-align: center; color: var(--yellow); margin: -12px 0 clamp(20px, 3vw, 32px); }
.foot-panel .zh-line { text-align: left; margin-top: -12px; }
.zh-sub { margin: 8px auto 0; text-align: center; color: var(--muted); font-size: 15px; max-width: 40ch; }
.zh-inline { margin-left: 8px; opacity: 0.75; }
.zh-btn { margin-left: 2px; font-weight: 600; opacity: 0.85; font-size: 0.9em; }
.eyebrow .zh-inline { letter-spacing: 0.2em; }

/* ------------------------------------------------------------------------------------------------------------ */
/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--pill);
  border: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary, .btn-purple { background: var(--purple); color: #fff; }
.btn-primary:hover, .btn-purple:hover { background: var(--purple-d); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------------------------------------------------ */
/* header */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  background: rgba(23, 20, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 12px; border-radius: var(--pill); text-decoration: none; color: var(--on-dark); font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current='page'] { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); color: #fff; align-items: center; justify-content: center; }
.nav-burger svg { width: 20px; height: 20px; }
.wallet-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.nav-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-x:hover { background: rgba(255, 255, 255, 0.16); }
.nav-x svg, .foot-x svg { width: 18px; height: 18px; }
.btn .soon { margin-left: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 999px; background: rgba(23, 20, 32, 0.14); }
.btn[aria-disabled='true'] { cursor: default; opacity: 0.85; }
.btn[aria-disabled='true']:hover, .btn[disabled]:hover { transform: none; }
.menu-coin { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 0 4px; }
.menu-coin .btn { border-bottom: 0; padding: 0 18px; font-size: 16px; }
.foot-coin { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 24px; border-top: 2px solid var(--line); }
.foot-ticker { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 26px; margin-right: 6px; }
.foot-x { gap: 8px; }

.menu-sheet {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 49;
  background: var(--ink);
  padding: 8px var(--gutter) 24px;
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--ink-3);
}
.menu-sheet a { padding: 14px 6px; font-weight: 600; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--ink-3); }

/* ------------------------------------------------------------------------------------------------------------ */
/* panels */

.panel {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  background: var(--paper);
  color: var(--text);
  border-radius: var(--r-xl);
  padding: clamp(24px, 5vw, 64px);
}
.section { padding: clamp(36px, 6vw, 72px) var(--gutter); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 32px); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34ch; margin: 18px 0 0; }

/* hero */
.hero { position: relative; padding: clamp(20px, 4vw, 48px) var(--gutter) clamp(36px, 6vw, 72px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .cube { position: absolute; width: var(--s, 120px); animation: float var(--d, 9s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35)); }
@keyframes float { from { transform: translateY(-10px) rotate(var(--rot, 0deg)); } to { transform: translateY(14px) rotate(calc(var(--rot, 0deg) + 6deg)); } }
.hero-panel { z-index: 1; padding-bottom: clamp(28px, 5vw, 64px); }
.hero-panel .display { text-align: center; margin-top: clamp(8px, 2vw, 24px); }
.hero-panel .lede { text-align: center; margin: 22px auto 0; max-width: 46ch; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: clamp(28px, 4vw, 44px) auto 0; }
.choice-card { border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.choice-card h2 { font-size: clamp(26px, 3vw, 36px); line-height: 0.95; margin: 0; }
.choice-card p { margin: 0; font-size: 17px; max-width: 28ch; }
.choice-card .row { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.c-green { background: var(--green); }
.c-blue { background: var(--blue); }
.mascot { position: absolute; right: clamp(-30px, -2vw, -10px); bottom: clamp(-70px, -5vw, -40px); width: clamp(150px, 18vw, 250px); aspect-ratio: 1; z-index: 2; cursor: pointer; }
.mascot canvas { width: 100%; height: 100%; }

/* stats band */
.stats { max-width: var(--wrap); margin: 0 auto; padding: clamp(36px, 5vw, 56px) var(--gutter) 8px; text-align: center; }
.stats .eyebrow { color: var(--on-dark-muted); }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.stat { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--r-md); padding: 18px 16px; text-align: left; }
.stat b { display: block; font-size: clamp(22px, 3vw, 34px); color: #fff; line-height: 1; min-height: 1em; }
.stat span { display: block; margin-top: 8px; color: var(--on-dark-muted); font-size: 14px; }
.stat-note { margin: 14px 0 0; color: var(--on-dark-muted); font-size: 14px; }

/* buy and burn */
.burn { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter) 0; }
.burn-card { border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); background: linear-gradient(150deg, #2a1c12, #1d1426 70%); border: 2px solid #ff9a3c; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 28px; align-items: start; }
.burn-card .eyebrow { color: #ffb347; margin: 0; }
.burn-card .h2 { color: #ffd08a; margin-top: 8px; }
.burn-text { color: var(--on-dark); margin: 12px 0 0; max-width: 52ch; }
.burn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.burn-stats div { background: rgba(255, 255, 255, 0.06); border-radius: var(--r-md); padding: 14px; }
.burn-stats b { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(20px, 2.4vw, 28px); color: #fff; }
.burn-stats span { font-size: 13px; color: var(--on-dark-muted); }
.burn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-column: 1 / -1; }
.burn-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; background: rgba(255, 255, 255, 0.05); border-radius: var(--r-sm); padding: 10px 14px; font-size: 14px; }
.burn-list b { color: #ffd08a; }
.burn-list a { font-family: var(--mono); color: var(--on-dark-muted); }
.burn-card .btn { justify-self: start; grid-column: 1 / -1; }
@media (max-width: 760px) { .burn-card { grid-template-columns: 1fr; } .burn-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the wall preview */
.wall-frame { position: relative; border-radius: var(--r-lg); background: radial-gradient(120% 90% at 30% 10%, #3a3160 0%, #1d1830 55%, #141120 100%); overflow: hidden; aspect-ratio: 16 / 10; }
.wall-mini { position: absolute; inset: 0; }
.wall-mini canvas, .wall-stage-canvas canvas { width: 100%; height: 100%; }
.wall3d-fallback { color: var(--on-dark); padding: 24px; }
.wall-status { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; align-items: center; background: rgba(23, 20, 32, 0.72); color: #fff; padding: 8px 14px; border-radius: var(--pill); font-size: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wall-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.wall-status.live .dot { background: var(--green); }
.wall-tip { position: absolute; z-index: 5; pointer-events: none; max-width: 260px; background: #fff; color: var(--ink); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); transform: translate(-50%, calc(-100% - 14px)); }
.wall-tip b { display: block; font-size: 15px; }
.wall-tip small { color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }

/* how it works */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { border-radius: var(--r-lg); padding: clamp(22px, 3vw, 30px); min-height: 300px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; position: relative; }
.tile .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.tile h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 0.95; margin: 0; max-width: 12ch; }
.tile p { margin: 0; max-width: 32ch; }
.tile .art { margin-top: auto; }
.t-purple { background: var(--pink); }
.t-yellow { background: var(--yellow); }
.t-orange { background: var(--orange); }
.t-green { background: var(--green); grid-column: span 3; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 24px; }
.t-green .copy { display: flex; flex-direction: column; gap: 12px; }
.t-green h3 { max-width: 16ch; }
.art-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; max-width: 280px; }
.art-grid i { aspect-ratio: 1; border-radius: 5px; background: rgba(23, 20, 32, 0.12); }
.art-grid i.on { background: var(--ink); }
.art-card { background: #fff; border-radius: var(--r-md); padding: 14px; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; box-shadow: 0 10px 24px rgba(23, 20, 32, 0.12); max-width: 300px; }
.art-card .pic { aspect-ratio: 1; border-radius: 10px; background: conic-gradient(from 45deg, var(--purple), var(--pink), var(--yellow), var(--green), var(--blue), var(--purple)); }
.art-card b { display: block; font-size: 15px; }
.art-card small { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.art-pay { display: flex; gap: 8px; flex-wrap: wrap; }
.art-pay span { background: rgba(255, 255, 255, 0.85); border-radius: var(--pill); padding: 8px 14px; font-weight: 700; font-size: 14px; }
.art-pay span.on { background: var(--ink); color: #fff; }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tl { background: rgba(255, 255, 255, 0.7); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.tl b { font-size: 14px; }
.tl small { color: #24433a; font-size: 13px; }
.tl .mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.tl .mini i { aspect-ratio: 1; border-radius: 3px; background: rgba(23, 20, 32, 0.14); }
.tl .mini i.a { background: var(--purple); }
.tl .mini i.b { background: var(--orange); }

/* the long way vs the pintara way */
.compare { max-width: var(--wrap); margin: 0 auto; }
.compare .h2 { color: #fff; text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.code-card { border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--ink-3); overflow: hidden; display: flex; flex-direction: column; }
.code-card header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--ink-3); font-weight: 700; }
.code-card header .pill { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: var(--pill); background: var(--ink-3); color: var(--on-dark-muted); }
.code-card.good header .pill { background: var(--green); color: var(--ink); }
.long-list { list-style: none; margin: 0; padding: 18px; display: grid; gap: 10px; counter-reset: step; }
.long-list li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ink); color: var(--on-dark); }
.long-list li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); color: var(--on-dark-muted); font-size: 13px; }
.long-list li small { color: var(--on-dark-muted); font-family: var(--mono); font-size: 12px; }
pre.code { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--on-dark); flex: 1; }
.code .k { color: var(--pink); }
.code .f { color: var(--blue); }
.code .s { color: var(--green); }
.code .n { color: var(--yellow); }
.code .c { color: #7d7696; }
.code-foot { padding: 14px 18px; border-top: 1px solid var(--ink-3); color: var(--on-dark-muted); font-size: 14px; }

/* build */
.build-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.build-card { border-radius: var(--r-lg); background: var(--lilac); padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.build-card p { margin: 0; color: var(--muted); }
.cmd { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 10px 10px 10px 16px; font-family: var(--mono); font-size: 14px; min-width: 0; }
.cmd code { flex: 1; overflow-x: auto; white-space: nowrap; min-width: 0; }
.cmd button { border: 0; border-radius: var(--pill); background: var(--ink-3); color: #fff; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.addr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; padding: 16px 18px; border-radius: var(--r-md); border: 2px dashed var(--line); }
.addr-row b { font-family: var(--mono); font-size: 14px; word-break: break-all; }
.addr-row .muted { color: var(--muted); }

/* pricing */
.price-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
.calc { border-radius: var(--r-lg); background: var(--purple); color: #fff; padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; }
.calc label { display: grid; gap: 8px; font-weight: 600; }
.calc label span { display: flex; justify-content: space-between; }
.calc output { font-family: var(--mono); }
input[type='range'] { width: 100%; accent-color: var(--yellow); height: 28px; }
.calc .total { background: rgba(255, 255, 255, 0.12); border-radius: var(--r-md); padding: 16px 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc .total b { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(26px, 3vw, 36px); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.fact { background: var(--mist); border-radius: var(--r-md); padding: 18px; }
.fact b { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 24px; }
.fact span { color: var(--muted); font-size: 14px; }

/* faq */
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: var(--r-md); background: var(--mist); padding: 0 20px; }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--display); font-size: 24px; line-height: 1; transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* footer */
.footer { padding: clamp(36px, 6vw, 72px) var(--gutter) 28px; }
.foot-panel { max-width: var(--wrap); margin: 0 auto; background: var(--paper); color: var(--ink); border-radius: var(--r-xl); padding: clamp(24px, 5vw, 56px); display: grid; gap: 32px; }
.foot-mark { font-size: clamp(40px, 9.4vw, 132px); line-height: 0.88; margin: 0; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.foot-cols h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.foot-cols a { display: block; padding: 4px 0; text-decoration: none; font-weight: 600; }
.foot-cols a:hover { color: var(--purple); }
.foot-base { max-width: var(--wrap); margin: 20px auto 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--on-dark-muted); font-size: 14px; }

/* ------------------------------------------------------------------------------------------------------------ */
/* dialogs and toasts */

dialog.sheet { border: 0; padding: 0; border-radius: var(--r-lg); background: #fff; color: var(--ink); width: min(420px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
dialog.sheet::backdrop { background: rgba(10, 8, 18, 0.6); backdrop-filter: blur(4px); }
.sheet-body { padding: 24px; display: grid; gap: 14px; }
.sheet-body h3 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 22px; }
.sheet-body p { margin: 0; color: var(--muted); }
.wallet-list { display: grid; gap: 8px; }
.wallet-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--r-md); background: #fff; font-weight: 700; text-align: left; min-height: 56px; }
.wallet-list button:hover { border-color: var(--purple); }
.wallet-list img { width: 28px; height: 28px; border-radius: 8px; }
.toasts { position: fixed; z-index: 80; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 14px 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); font-size: 15px; border-left: 6px solid var(--purple); }
.toast.bad { border-left-color: var(--red); }
.toast.good { border-left-color: var(--green); }
.toast a { font-weight: 700; }

/* ------------------------------------------------------------------------------------------------------------ */
/* the wall app (/wall) */

.page-wall { overflow: hidden; }
.wallapp { height: calc(100dvh - var(--nav-h)); display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 14px; padding: 0 14px 14px; }
.stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(120% 90% at 30% 10%, #3a3160 0%, #1d1830 55%, #141120 100%); min-height: 0; }
.wall-stage-canvas { position: absolute; inset: 0; }
.toolbar { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 4; }
.seg { display: inline-flex; background: rgba(23, 20, 32, 0.78); border-radius: var(--pill); padding: 4px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.seg button { border: 0; background: transparent; color: #fff; min-width: 40px; height: 36px; padding: 0 14px; border-radius: var(--pill); font-weight: 700; font-size: 14px; }
.seg button[aria-pressed='true'] { background: #fff; color: var(--ink); }
.stage-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; background: rgba(23, 20, 32, 0.78); color: #fff; padding: 9px 16px; border-radius: var(--pill); font-size: 14px; white-space: nowrap; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stage-badge { position: absolute; top: 14px; right: 14px; left: auto; bottom: auto; z-index: 4; }

.side { background: #fff; color: var(--ink); border-radius: var(--r-lg); overflow: auto; min-height: 0; display: flex; flex-direction: column; }
.side-view { padding: 24px; display: grid; gap: 16px; align-content: start; }
.side-view h2 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: 0.95; }
.side-view p { margin: 0; color: var(--muted); }
.side-close { justify-self: start; border: 0; background: var(--mist); border-radius: var(--pill); padding: 8px 14px; font-weight: 700; font-size: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 800; }
.steps li:nth-child(2)::before { background: var(--green); }
.steps li:nth-child(3)::before { background: var(--blue); }
.steps li:nth-child(4)::before { background: var(--pink); }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mini-stats div { background: var(--mist); border-radius: var(--r-sm); padding: 12px; }
.mini-stats b { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 22px; }
.mini-stats span { font-size: 13px; color: var(--muted); }
.burn-mini { margin: 0; background: #fff1e0; color: #7a3d00; border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; font-weight: 600; }

.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.field > span small { color: var(--muted); font-weight: 500; }
.field input[type='text'], .field input[type='url'], .field input[type='number'] { width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--r-sm); border: 2px solid var(--line); background: #fff; color: var(--ink); font-size: 16px; }
.field input:focus { outline: none; border-color: var(--purple); }
.field .err { color: #c0281d; font-size: 13px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.sizes button { border: 2px solid var(--line); background: #fff; border-radius: var(--pill); padding: 6px 12px; font-weight: 700; font-size: 14px; min-height: 36px; }
.sizes button:hover { border-color: var(--purple); }
.days-row { display: grid; grid-template-columns: 1fr 88px; gap: 12px; align-items: center; }
.days-row input[type='range'] { accent-color: var(--purple); }
.drop { position: relative; border: 2px dashed #cfc8e8; border-radius: var(--r-md); background: var(--lilac); min-height: 140px; display: grid; place-items: center; text-align: center; padding: 16px; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--purple); background: #ece8ff; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop canvas { max-height: 180px; width: auto; border-radius: 8px; box-shadow: 0 8px 20px rgba(23, 20, 32, 0.18); image-rendering: auto; }
.drop small { color: var(--muted); display: block; margin-top: 6px; }
.fitrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.sel-chip { display: inline-flex; gap: 8px; align-items: center; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--pill); font-weight: 700; font-size: 14px; justify-self: start; }
.sel-chip.bad { background: var(--red); }
.total-box { background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 16px 18px; display: grid; gap: 4px; }
.total-box b { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 30px; }
.total-box small { color: var(--on-dark-muted); }
.ad-pic { border-radius: var(--r-md); overflow: hidden; background: var(--lilac); display: grid; place-items: center; min-height: 120px; }
.ad-pic img { width: 100%; height: auto; image-rendering: auto; }
.notice { background: #fff7cc; border-radius: var(--r-md); padding: 14px 16px; font-size: 15px; color: #4b3f00; }
.notice.bad { background: #ffe3e0; color: #7a1a12; }
.notice.good { background: #dcfbef; color: #0d4a35; }
.notice a { font-weight: 700; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* comments */
.comments { display: grid; gap: 10px; padding-top: 16px; border-top: 2px solid var(--line); }
.c-title { margin: 0; font-family: var(--display); font-stretch: 112%; font-weight: 900; text-transform: uppercase; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.c-title .zh-tag { font-size: 12px; padding: 5px 9px; }
.c-form { display: grid; gap: 8px; }
.c-form textarea { width: 100%; resize: vertical; min-height: 64px; padding: 10px 12px; border-radius: var(--r-sm); border: 2px solid var(--line); font-size: 15px; color: var(--ink); background: #fff; }
.c-form textarea:focus { outline: none; border-color: var(--purple); }
.c-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c-row small { color: var(--muted); font-size: 12px; }
.c-form .err { margin: 0; color: #c0281d; font-size: 13px; }
.c-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 340px; overflow: auto; }
.c-list li { background: var(--mist); border-radius: var(--r-sm); padding: 10px 12px; }
.c-list .c-empty { color: var(--muted); font-size: 14px; background: transparent; padding: 4px 0; }
.c-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.c-head a { font-family: var(--mono); font-weight: 700; color: var(--purple); text-decoration: none; }
.c-head time { color: var(--muted); }
.c-list p { margin: 4px 0 0; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }

/* ------------------------------------------------------------------------------------------------------------ */
/* small screens */

@media (max-width: 1280px) {
  .btn-ca, .nav-cta .zh-btn { display: none; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-green { grid-column: span 2; grid-template-columns: 1fr; }
  .wallapp { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .side { max-height: 46dvh; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav-cta .btn-ghost, .nav-cta .btn-coin, .nav-x { display: none; }
  .nav-cta .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
  .zh-btn { display: none; }
  .brand span { font-size: 21px; }
  .choice, .compare-grid, .build-grid, .price-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 0; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: 1fr; }
  .t-green { grid-column: auto; }
  .tile { min-height: 0; }
  .timeline { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mascot { width: 120px; right: -8px; bottom: -48px; }
  .wall-frame { aspect-ratio: 4 / 3; }
  .hero-bg .cube { opacity: 0.85; }
  .long-list li { grid-template-columns: 30px 1fr; }
  .long-list li small { grid-column: 2; }
  .wallapp { padding: 0 8px 8px; gap: 8px; }
  .side { max-height: 52dvh; }
  .side-view { padding: 18px; }
  .stage-hint { font-size: 13px; }
  .stage-badge { top: 66px; left: 14px; right: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .nav-cta .btn-primary { padding: 0 12px; font-size: 14px; }
  .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg .cube { animation: none; }
  .btn { transition: none; }
}
