:root {
  --bg: #10130f;
  --bg-2: #171b14;
  --paper: #f4efe4;
  --paper-2: #fffdf8;
  --ink: #17180f;
  --cream: #f6f1e6;
  --text: #ddd6c8;
  --muted: #b7b0a2;
  --faint: #6d675d;
  --gold: #e2b657;
  --gold-2: #f0d48a;
  --gold-deep: #8d6416;
  --on-gold: #17180f;
  --line: rgba(246, 241, 230, 0.14);
  --line-strong: rgba(246, 241, 230, 0.28);
  --sans: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; scroll-padding-top: 110px; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;
  background-attachment: fixed;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(226, 182, 87, 0.16), transparent 60%),
    radial-gradient(700px 360px at 0% 30%, rgba(120, 138, 104, 0.08), transparent 55%),
    var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}
.page { overflow-x: hidden; width: 100%; flex: 1; }
a { color: inherit; text-decoration: none; }
button, a { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 40; padding: 8px 12px; background: var(--gold); color: var(--on-gold); border-radius: 999px; }
.skip:focus { top: 12px; }
h1, h2, h3 { margin: 0; font-weight: 560; letter-spacing: 0; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--on-gold); }

.nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(var(--max), calc(100% - 28px));
  min-height: 68px;
  margin: 14px auto 0;
  padding: 0 14px 0 18px;
  background: rgba(16, 19, 15, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 560; }
.brand img { display: block; }
.nav-links { display: flex; gap: 4px; color: var(--muted); font-size: 14px; }
.nav-links a { position: relative; padding: 7px 12px; border-radius: 999px; transition: color 0.25s var(--ease), background 0.25s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transform: scaleX(0.4); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.nav-links a:hover { color: var(--cream); background: rgba(246, 241, 230, 0.07); }
.nav-links a:hover::after { opacity: 0.45; transform: scaleX(0.7); }
.wallet { position: relative; display: flex; align-items: center; gap: 10px; margin-left: auto; }
.status { display: inline-grid; place-items: center; min-width: 42px; min-height: 36px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; padding: 0 10px; color: var(--gold-2); font-size: 14px; }
body.light { --bg: #f7f3ea; --bg-2: #fffdf8; --paper: #171b14; --paper-2: #23281d; --ink: #f6f1e6; --cream: #17180f; --text: #3c4034; --muted: #5f6554; --faint: #d9d0bd; --gold-2: #7d5813; --line: rgba(23, 24, 15, 0.12); --line-strong: rgba(23, 24, 15, 0.24); background: #f7f3ea; }
body.light .nav { background: rgba(255, 252, 247, 0.72); border-color: rgba(23, 24, 15, 0.1); box-shadow: 0 10px 30px rgba(80, 60, 20, 0.08); backdrop-filter: blur(18px) saturate(1.4); }
.wallet-button, .wallet-menu button, .button, .x-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  white-space: nowrap;
}
.wallet-button, .wallet-menu button {
  border: 1px solid transparent;
  background: var(--gold);
  color: var(--on-gold);
  padding: 0 16px;
  font-weight: 560;
}
.wallet-button[aria-expanded="true"] { background: transparent; color: var(--gold-2); border-color: var(--line-strong); }
.wallet-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: none;
  gap: 8px;
  width: 230px;
  padding: 12px;
  background: #191d15;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
}
.wallet-menu.is-open { display: grid; }
.wallet-menu button { background: transparent; color: var(--cream); border-color: var(--line); }
.wallet-menu button:hover, .button.ghost:hover, .x-link:hover { border-color: var(--gold); color: var(--gold-2); }
.wallet-note { position: fixed; left: 50%; bottom: 18px; z-index: 30; width: min(440px, calc(100% - 32px)); transform: translateX(-50%); padding: 12px 14px; background: var(--paper); color: var(--ink); border-radius: 14px; }
.nav-toggle { display: none; margin-left: auto; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--cream); padding: 0 12px; }

.account { display: none; width: min(var(--max), calc(100% - var(--pad) * 2)); margin: 56px auto 80px; }
body.account-open .account { display: block; }
body.account-open .page, body.account-open .footer { display: none; }
body.account-open .account { flex: 1; }
.account-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 28px; }
.account-head h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.12; }
#account-close, #profile-form button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--cream); }
#profile-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
#profile-form input { width: min(220px, 100%); min-height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--cream); padding: 0 12px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.account-grid article { padding: 24px; background: rgba(246, 241, 230, 0.035); border: 1px solid var(--line); border-radius: 24px; }
.account-grid .wide { grid-column: 1 / -1; }
.account-grid h3 { margin-bottom: 12px; font-size: 22px; }
.account-grid p + p { margin-top: 8px; }
.account-summary p { display: grid; gap: 4px; margin-top: 12px; }
.account-summary p span { color: var(--muted); font-size: 13px; }
#account-address, #profile-display { overflow-wrap: anywhere; color: var(--cream); font-size: 20px; font-weight: 560; }
#account-address { color: var(--gold-2); }
.account-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 28px; align-items: center; }
.account dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.balance-panel h3 { margin-bottom: 12px; }
.balances { display: grid !important; grid-template-columns: 1fr !important; gap: 12px; margin: 0; }
.balances div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; min-height: 76px; padding: 16px 20px; background: rgba(246, 241, 230, 0.045); border-radius: 16px; }
.balances dd { margin: 0 !important; color: var(--cream); font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; text-align: right; }
.account dt { color: var(--muted); font-size: 13px; }
.account dd { margin: 4px 0 0; }
.console { background: #0d100d; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-screen[hidden], .review-screen[hidden] { display: none; }
.login-card { width: min(440px, 100%); padding: 36px; background: #171b14; border: 1px solid var(--line); border-radius: 28px; }
.login-card p { margin: 16px 0 8px; color: var(--gold-2); }
.login-card h1 { font-size: 36px; line-height: 1.2; }
.login-card form { display: grid; gap: 14px; margin-top: 24px; }
.login-card label { display: grid; gap: 6px; color: var(--muted); }
.login-card input, .login-card button { width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--line-strong); background: #10140f; color: var(--cream); padding: 0 14px; }
.login-card button { display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--on-gold); font-weight: 560; }
#login-error { min-height: 22px; color: #e8b4a2; }
.review-screen { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 48px; }
.console-bar, .console-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.console-bar nav { display: flex; align-items: center; gap: 8px; }
.console-bar nav a { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid transparent; }
.console-bar nav a[aria-current="page"] { border-color: var(--gold); color: var(--gold-2); }
.console-bar div { display: flex; align-items: center; gap: 10px; }
.console-bar button { min-height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--cream); padding: 0 14px; }
.console-summary { margin: 28px 0; }
.console-summary button { flex: 1; padding: 18px; border: 1px solid transparent; background: #171b14; border-radius: 18px; color: var(--cream); text-align: left; }
.console-summary button[aria-pressed="true"] { border-color: var(--gold); }
.console-summary b { display: block; color: var(--gold-2); font-size: 32px; }
.admin-list, #account-applications, .proposal-board { display: grid; gap: 12px; }
.admin-list article, #account-applications article, .proposal-board article { display: grid; gap: 16px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 18px; }
#account-applications article, .proposal-board article { position: relative; grid-template-columns: 1fr; }
.board-columns, .proposal-board .record-head { display: grid; grid-template-columns: 72px 104px minmax(180px, 1fr) 110px 150px; align-items: center; column-gap: 24px; }
.board-columns { margin: 0 18px 10px; padding-right: 62px; color: var(--muted); font-size: 13px; }
.board-columns span:nth-child(4), .proposal-board .record-head p { text-align: right; }
.board-columns span:nth-child(5), .proposal-board time { text-align: center; }
.proposal-board .record-head { padding-right: 62px; }
.proposal-board .record-toggle { position: absolute; right: 18px; }
.record-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.record-head img { width: 52px; height: 52px; object-fit: cover; border-radius: 14px; }
.rank { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--cream); font-style: normal; font-weight: 700; }
.rank-1 .rank { background: var(--gold); color: var(--on-gold); border-color: transparent; }
.rank-2 .rank { background: rgba(226, 182, 87, 0.42); color: var(--on-gold); border-color: transparent; }
.rank-3 .rank { background: transparent; color: var(--gold-2); border-color: rgba(226, 182, 87, 0.55); }
.record-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--cream); }
.record-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.2s; }
.record.is-open .record-toggle svg { transform: rotate(180deg); }
.record-body { display: none; }
.record.is-open .record-body { display: block; }
.record-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.record-actions button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--cream); }
.record-actions [data-action="remove"] { color: #d45b4c; border-color: rgba(212, 91, 76, 0.45); }
.token-icon-cell img, .proposal-board dd img { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; }

.user-panel { margin-bottom: 28px; }
.user-panel h2 { margin: 0 0 14px; font-size: 28px; }
.user-list { display: grid; gap: 8px; }
.user-search { margin: 24px 0 16px; }
.user-search input { width: min(460px, 100%); min-height: 48px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #171b14; color: var(--cream); }
.user-columns, .user-list article { display: grid; grid-template-columns: 140px minmax(220px, 1fr) 64px 64px 170px 170px; gap: 14px; align-items: center; }
.user-columns { color: var(--muted); font-size: 13px; padding: 0 14px; }
.user-list article { min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; }
.user-list code { overflow-wrap: anywhere; }
.admin-list article { grid-template-columns: 1fr; }
.admin-list .record-head { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 44px; align-items: center; column-gap: 18px; }
.review-state { min-width: 74px; min-height: 34px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid rgba(226, 182, 87, 0.45); border-radius: 999px; color: var(--gold-2); font-weight: 560; }
.admin-list img { width: 72px; height: 72px; object-fit: cover; border-radius: 16px; }
.admin-list dl, #account-applications dl, .proposal-board dl { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.admin-list dl div, #account-applications dl div, .proposal-board dl div { display: grid; gap: 4px; min-height: 72px; padding: 10px 12px; background: rgba(246, 241, 230, 0.035); border-radius: 12px; }
.admin-list dt, #account-applications dt, .proposal-board dt { color: var(--muted); }
.admin-list dd, #account-applications dd { margin: 0; text-align: left; overflow-wrap: anywhere; }
.admin-list form, .schedule { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-list input, .admin-list button, .schedule input, .schedule button { min-height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: inherit; padding: 0 12px; }
.hero, .panel, .band, .footer, .marquee { width: min(var(--max), calc(100% - var(--pad) * 2)); margin-inline: auto; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 56px; align-items: end; padding: 84px 0 48px; }
.hero-river { position: absolute; z-index: -1; inset: -40px -8% -20px; width: 116%; height: calc(100% + 60px); pointer-events: none; }
.hero > *, .split > *, .cards > *, .band > *, .footer > *, .rules > * { min-width: 0; }
.kicker { margin: 0 0 18px; color: var(--gold-2); font-size: 13px; letter-spacing: 0.14em; }
.hero-stack { display: grid; width: fit-content; max-width: 100%; }
.pair { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 28px; }
.river-bed, .river-flow, .river-ripple { fill: none; stroke-linecap: round; }
.river-bed { stroke: rgba(226, 182, 87, 0.045); stroke-width: 14; }
.river-bed.wide { stroke-width: 20; }
.river-bed.fine { stroke-width: 8; }
.river-flow { stroke: rgba(226, 182, 87, 0.28); stroke-width: 1; stroke-dasharray: 10 70; filter: none; }
.river-ripple { stroke: rgba(246, 241, 230, 0.08); stroke-width: 1; }
html.motion .river-flow { animation: river-current 11s linear infinite; }
html.motion .river-flow.slow { animation-duration: 16s; }
html.motion .river-flow.fast { animation-duration: 7.5s; animation-direction: reverse; }
@keyframes river-current { to { stroke-dashoffset: -210; } }
.pair p { position: relative; z-index: 1; max-width: none; flex: 1; padding: 0 16px; border-inline: 0; color: var(--cream); font-size: clamp(15px, 1.3vw, 17px); font-weight: 560; line-height: 1.85; letter-spacing: 0.1em; text-align: center; text-shadow: 0 1px 0 #10130f, 0 0 18px rgba(16, 19, 15, 0.9); }
.pair p span { display: block; }
.pair p span + span { color: var(--gold-2); }
body.light .river-bed { stroke: rgba(125, 88, 19, 0.06); }
body.light .river-flow { stroke: rgba(125, 88, 19, 0.28); }
body.light .river-ripple { stroke: rgba(125, 88, 19, 0.1); }
body.light .pair p { text-shadow: 0 1px 0 #f7f3ea, 0 0 12px rgba(247, 243, 234, 0.95); }
.logo { display: grid; justify-items: center; gap: 6px; margin: 0; }
.logo svg { width: 64px; height: 64px; padding: 14px; border-radius: 50%; }
.logo figcaption { font-size: 12px; letter-spacing: 0.12em; }
.logo.bnb svg { background: #f3ba2f; fill: #17180f; }
.logo.bnb figcaption { color: #f3ba2f; }
.logo.zec svg { background: #231f1a; fill: #f4b728; box-shadow: inset 0 0 0 1.5px #f4b728; }
.logo.zec figcaption { color: #f4b728; }
h1 { max-width: 640px; color: var(--cream); font-size: clamp(3rem, 5vw, 4.8rem); font-weight: 560; line-height: 1.12; text-wrap: balance; }
.lede { display: grid; gap: 8px; max-width: 640px; margin-top: 28px; color: var(--text); font-size: 18px; }
html.motion .scrub span { opacity: 0.35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; margin-top: 32px; }
.contract { display: grid; gap: 4px; width: 100%; max-width: 760px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(226, 182, 87, 0.06); color: var(--cream); text-align: left; }
.contract span { color: var(--gold-2); font-size: 12px; letter-spacing: 0.08em; }
.contract b { font-weight: 500; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.contract:hover { border-color: var(--gold); }
.section-head .contract { margin-top: 22px; }
.button { padding: 0 18px; border: 1px solid transparent; background: transparent; font-weight: 560; transition: transform 0.25s var(--ease), border-color 0.25s; }
.button.primary { background: var(--gold); color: var(--on-gold); }
.button.ghost { border-color: var(--line-strong); color: var(--cream); }
.button.accent { border-color: rgba(226, 182, 87, 0.55); background: rgba(226, 182, 87, 0.1); color: var(--gold-2); }
.button.accent:hover { border-color: var(--gold-2); background: rgba(226, 182, 87, 0.2); }
body.light .button.accent { border-color: rgba(125, 88, 19, 0.5); background: rgba(125, 88, 19, 0.08); }
body.light .button.accent:hover { border-color: var(--gold-2); background: rgba(125, 88, 19, 0.16); }
.button:hover { transform: translateY(-2px); }
.fine { max-width: 620px; margin-top: 22px; color: var(--muted); font-size: 13px; }

.statement { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 28px 24px 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28); }
.statement-tab { display: inline-flex; margin-bottom: 14px; background: #f3e2b4; color: #6f4c0d; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 560; }
.statement-source { margin: -6px 0 14px; color: var(--faint); font-size: 13px; }
.statement header { display: flex; align-items: baseline; border-bottom: 1px solid rgba(23, 24, 15, 0.12); padding-bottom: 12px; }
.statement header p { color: var(--ink); font-size: 24px; font-weight: 700; }
.statement header strong { margin-left: auto; font-size: 34px; }
.statement ol { list-style: none; margin: 8px 0; padding: 0; }
.statement li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 36px; gap: 12px; align-items: center; min-height: 44px; border-bottom: 1px solid rgba(23, 24, 15, 0.08); }
.statement b { text-align: right; font-size: 20px; font-variant-numeric: tabular-nums; }
.share, .meter { height: 6px; border-radius: 999px; background: rgba(23, 24, 15, 0.1); overflow: hidden; }
.share i, .meter span { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--gold-deep); }
.share i { background: #3fa36a; }
.meter { background: rgba(246, 241, 230, 0.12); }
.meter span { background: #3fa36a; }
body.light .meter { background: rgba(23, 24, 15, 0.12); }
body.light .share { background: rgba(246, 241, 230, 0.16); }
.share i, .meter span { transition: width 0.7s var(--ease); }
.statement footer { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; color: var(--faint); font-size: 12px; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; }
.marquee-track { display: flex; gap: 42px; width: max-content; animation: ticker 28s linear infinite; }
.marquee span { color: var(--gold-2); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hold-path { grid-template-columns: repeat(3, 1fr); }
.steps.hold-path { margin-bottom: 56px; }
.panel.page-section { padding-top: 56px; }
.page-section { padding: 72px 0 0; }
.launch-form, .preview { margin-top: 28px; }
.page-section:has(.launch-form) { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr); gap: 18px; align-items: start; }
.page-section:has(.launch-form) .section-head { grid-column: 1 / -1; }
.launch-form { display: grid; gap: 14px; }
.launch-form fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 20px; }
.launch-form legend { padding: 0 6px; color: var(--gold-2); }
.launch-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.launch-form label > span { display: flex; align-items: center; gap: 4px; }
.req, .icon-label i { color: #d45b4c; font-style: normal; font-weight: 700; }
.launch-form input, .launch-form select, .field { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-2); color: var(--cream); }
body.light .launch-form input, body.light .launch-form select, body.light .field { background: #fffdf8; color: #17180f; border-color: rgba(23, 24, 15, 0.2); }
body.light .launch-form input::placeholder { color: #6d675d; }
.launch-form input, .launch-form select { padding: 0 12px; }
.launch-form input::placeholder { color: var(--muted); }
.field { display: flex; align-items: center; }
.field input { min-width: 0; border: 0; background: transparent; }
.field b { padding-right: 12px; color: var(--gold-2); font-weight: 560; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.preview { position: sticky; top: 110px; padding: 22px; background: var(--paper); color: var(--ink); border-radius: 24px; }
.preview p { color: var(--faint); }
.preview h3 { margin: 8px 0 16px; font-size: 28px; }
.preview dl { display: grid; gap: 10px; }
.preview div { display: flex; justify-content: space-between; gap: 12px; }
.preview dt { color: var(--faint); }
.preview dd { margin: 0; text-align: right; }
.icon-upload { display: grid; justify-items: center; gap: 8px; margin-top: 18px; padding: 14px; border: 2px dashed rgba(23, 24, 15, 0.55); border-radius: 16px; color: var(--faint); cursor: pointer; }
.icon-label i { margin-right: 4px; }
body.light .icon-upload { border-color: rgba(246, 241, 230, 0.45); }
.icon-upload input { display: none; }
.icon-upload img { width: 96px; height: 96px; object-fit: cover; border-radius: 18px; }
.crop-dialog { width: min(420px, calc(100% - 32px)); border: 0; border-radius: 24px; padding: 22px; background: var(--paper); color: var(--ink); }
.crop-dialog::backdrop { background: rgba(0, 0, 0, 0.62); }
.crop-dialog h3 { margin-bottom: 14px; font-size: 24px; }
.crop-stage { position: relative; width: 280px; height: 280px; max-width: 100%; margin: 0 auto 16px; overflow: hidden; border-radius: 28px; background: #d9d3c6; touch-action: none; cursor: grab; }
.crop-stage.dragging { cursor: grabbing; }
.crop-stage img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: center; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crop-dialog label { display: grid; gap: 8px; margin-bottom: 16px; color: var(--faint); }
.crop-dialog .button.ghost { color: var(--ink); border-color: rgba(23, 24, 15, 0.28); }
.page-section:first-child { padding-top: 48px; }
.nav-links a[aria-current="page"] { color: var(--gold-2); background: rgba(226, 182, 87, 0.14); box-shadow: inset 0 0 0 1px rgba(226, 182, 87, 0.32); }
.nav-links a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); box-shadow: 0 0 10px rgba(226, 182, 87, 0.7); }
.nav-links a[aria-current="page"]:hover { background: rgba(226, 182, 87, 0.2); }
body.light .nav-links a:hover { background: rgba(23, 24, 15, 0.06); }
body.light .nav-links a[aria-current="page"] { background: rgba(125, 88, 19, 0.12); box-shadow: inset 0 0 0 1px rgba(125, 88, 19, 0.3); }
body.light .nav-links a[aria-current="page"]::after { background: linear-gradient(90deg, transparent, var(--gold-2), transparent); box-shadow: none; }
.panel { padding: 128px 0 0; }
.section-head { max-width: 860px; margin-bottom: 36px; }
.section-head h2, .lock h2, .rules-pin h2 { font-size: clamp(2.2rem, 4vw, 4.4rem); line-height: 1.16; text-wrap: balance; }
.sub, .band p, .cards p, .steps p, .split p, .lock .copy, .lock-cols p, .footer p { color: var(--muted); }
.sub { margin-top: 14px; }

.band { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 72px 0 0; }
.band article, .cards article, .split article, .steps li, .books article, .book-list article {
  background: rgba(246, 241, 230, 0.035);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.band article { min-height: 220px; padding: 28px; }
.band article:hover, .cards article:hover, .split article:hover, .steps li:hover, .book-list article:hover { border-color: rgba(226, 182, 87, 0.45); transform: translateY(-3px); }
.band h2, .cards h3, .steps h3, .split h3, .book-top h3 { margin-bottom: 10px; font-size: 24px; }

.split, .cards { display: grid; gap: 14px; }
.split { grid-template-columns: 1fr 1fr; }
.cards { grid-template-columns: repeat(3, 1fr); }
.split article, .cards article { padding: 28px; }
.ink { background: var(--paper) !important; color: var(--ink); }
.ink p, .ink li { color: #5e584e; }
.split ul, .return ul { margin: 18px 0 0; padding: 0; list-style: none; }
.split li, .return li { position: relative; padding: 7px 0 7px 16px; }
.split li::before, .return li::before { content: ""; position: absolute; left: 0; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.books, .book-list { display: grid; gap: 12px; }
.book-list { width: min(var(--max), calc(100% - var(--pad) * 2)); margin: 0 auto; }
.books article, .book-list article { display: grid; grid-template-columns: 170px 110px minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px 22px; background: var(--bg-2); }
.book-top b { display: block; color: var(--gold-2); font-size: 36px; line-height: 1; }
.books em, .book-list em { display: block; margin-top: 4px; color: var(--text); font-style: normal; }
.book-text { min-width: 0; }
.book-text em { white-space: nowrap; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.launch-path { grid-template-columns: repeat(3, 1fr); }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 22px; }
.steps.hold-path li, .page-section .cards article { display: flex; flex-direction: column; align-items: flex-start; min-height: 220px; padding: 28px; }
.steps.hold-path span { margin: 0 0 12px; }
.steps.hold-path h3, .page-section .cards h3 { margin: 0 0 10px; }
.steps span { color: var(--gold); font-size: 14px; }

.lock { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: center; width: min(var(--max), calc(100% - var(--pad) * 2)); margin: 128px auto 0; padding: 40px; background: var(--paper); color: var(--ink); border-radius: 32px; }
.lock h2 { color: var(--ink); }
.lock .copy { margin-top: 16px; color: #615b50; }
.lock-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lock-cols article { padding: 22px; background: var(--paper-2); border-radius: 20px; }
.lock-cols h3 { margin-bottom: 10px; font-size: 26px; }
.lock-cols p + p { margin-top: 6px; }
.boundary { padding-top: 128px; }
.votes { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.proposal-board header { justify-content: space-between; }
.proposal-board b { color: var(--gold-2); font-size: 24px; }
.proposal-board h3 { font-size: 22px; }
.proposal-board em { color: var(--gold-2); font-style: normal; }
.proposal-board dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; }
.proposal-board dl div { min-width: 0; }
.proposal-board dt { color: var(--muted); font-size: 12px; }
.proposal-board dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.votes { flex-wrap: wrap; }
.votes button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--cream); }
.votes button.is-selected, .votes button.is-mine { border-color: var(--gold); color: var(--gold-2); background: rgba(226, 182, 87, 0.12); }
.votes [data-confirm] { background: var(--gold); color: var(--on-gold); border-color: transparent; }
.votes button:disabled { opacity: 0.55; }
.board-launcher { position: fixed; z-index: 25; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px 0 12px; border: 1px solid rgba(226, 182, 87, 0.45); border-radius: 999px; background: #171b14; color: var(--cream); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28); touch-action: none; }
.board-launcher img { width: 28px; height: 28px; }
.board-launcher b { font-size: 15px; font-weight: 560; }
.board-launcher span { display: none; color: var(--gold-2); font-size: 13px; }
.board-launcher.is-armed b { display: none; }
.board-launcher.is-armed span { display: inline; }
.footer { display: grid; justify-items: center; position: relative; margin-top: 128px; padding: 36px 180px 56px; border-top: 1px solid var(--line); text-align: center; }
.footer strong { font-size: 28px; }
.footer .x-link { position: absolute; right: 0; bottom: 56px; }
.footer p { max-width: 560px; font-size: 13px; }
.x-link { gap: 8px; margin-top: 16px; padding: 0 14px; border: 1px solid var(--line-strong); color: var(--cream); }
.x-link svg { width: 15px; height: 15px; fill: currentColor; }

@media (max-width: 980px) {
  .hero, .split, .cards, .rules, .lock, .lock-cols, .footer, .books article, .book-list article, .account-grid, .account dl { grid-template-columns: 1fr; }
  .account-grid .wide { grid-column: auto; }
  .band { grid-template-columns: 1fr; }
  .launch-path, .hold-path, .page-section:has(.launch-form), .launch-form fieldset { grid-template-columns: 1fr; }
  .preview { position: static; }
  .panel, .boundary, .lock { padding-top: 88px; margin-top: 0; }
  .lock { margin-top: 88px; }
}
@media (max-width: 940px) {
  .nav { top: 8px; width: calc(100% - 16px); min-height: 62px; gap: 8px; border-radius: 22px; }
  .brand span { max-width: 116px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand { min-height: 44px; }
  .wallet { gap: 0; }
  .status { min-width: 44px; min-height: 44px; padding: 0 8px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-height: 0; padding: 0 12px; line-height: 1; align-self: center; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; padding: 8px 18px 14px; background: #151910; border: 1px solid var(--line); border-radius: 18px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; margin-top: 4px; border-radius: 12px; background: rgba(246, 241, 230, 0.04); }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { background: rgba(226, 182, 87, 0.14); }
  body.light .nav-links a { background: rgba(23, 24, 15, 0.05); }
  body.light .nav-links.open { background: rgba(255, 252, 247, 0.94); }
  body.light .nav-links a[aria-current="page"] { background: rgba(141, 100, 22, 0.13); }
}
@media (max-width: 680px) {
  .board-columns { display: none; }
  .board-columns, .proposal-board .record-head { grid-template-columns: 42px 52px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; padding-right: 52px; }
  .proposal-board .record-head p, .proposal-board time { grid-column: auto; text-align: left; }
  .proposal-board .record-head p { grid-column: 1 / -1; }
  .proposal-board time { grid-column: 1 / -1; margin-top: -4px; color: var(--muted); }
  .proposal-board .record-toggle { right: 12px; }
  body { overflow-x: hidden; }

  .statement li { grid-template-columns: minmax(0, 1fr) 72px 48px; gap: 8px; }
  .statement { padding: 22px 16px 14px; }
  .votes { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.proposal-board header { justify-content: space-between; }
.proposal-board b { color: var(--gold-2); font-size: 24px; }
.proposal-board h3 { font-size: 22px; }
.proposal-board em { color: var(--gold-2); font-style: normal; }
.proposal-board dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; }
.proposal-board dl div { min-width: 0; }
.proposal-board dt { color: var(--muted); font-size: 12px; }
.proposal-board dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.votes { flex-wrap: wrap; }
.votes button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--cream); }
.votes button.is-selected, .votes button.is-mine { border-color: var(--gold); color: var(--gold-2); background: rgba(226, 182, 87, 0.12); }
.votes [data-confirm] { background: var(--gold); color: var(--on-gold); border-color: transparent; }
  .votes button:disabled { opacity: 0.55; }
  .board-launcher { right: 14px; bottom: 14px; }
  .footer { margin-top: 72px; padding: 28px 0 92px; }
  .footer .x-link { right: 0; bottom: 24px; }
  .pair { flex-wrap: nowrap; width: min(100%, 320px); }
  .pair p { max-width: none; }
  .logo svg { width: 56px; height: 56px; padding: 12px; }
  .hero { padding-top: 36px; }
  h1, .account-head h2, .section-head h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .account { margin: 28px auto 48px; }
  .account-head { align-items: flex-start; }
  .account-summary, .admin-list dl, #account-applications dl, .console-summary { grid-template-columns: 1fr; display: grid; }
  .console-summary { flex-direction: column; }
  .review-screen, .login-screen { width: calc(100% - 20px); }
  .login-card { padding: 24px 18px; }
  .admin-list article, #account-applications article, .record-head { grid-template-columns: 1fr; }
  .record-head { align-items: flex-start; }
  .admin-list form, .schedule, #profile-form { display: grid; }
  #profile-form input, #profile-form button, .schedule input, .schedule button, .admin-list input, .admin-list button { width: 100%; }
  .book-list article, .books article { grid-template-columns: 1fr; gap: 8px; padding: 16px 14px; }
  .proposal-board dl { grid-template-columns: 1fr; }
  .book-text em { white-space: normal; font-size: 13px; }
  .crop-stage { width: min(280px, calc(100vw - 88px)); height: min(280px, calc(100vw - 88px)); }
  .crop-dialog { padding: 18px; }
  .panel, .page-section, .lock { padding-left: 0; padding-right: 0; }
}
@media (max-width: 440px) {
  .brand span { display: none; }
}
@media (max-width: 360px) {
  .nav { padding: 0 10px; }
  .nav-toggle { padding: 0 8px; }
  .status { min-width: 34px; padding: 0 6px; }
  .wallet-button { padding: 0 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .button, .band article, .cards article, .split article, .steps li, .book-list article, .share i, .meter span, .river-flow { animation: none; transition: none; }
  .button:hover, .band article:hover, .cards article:hover, .split article:hover, .steps li:hover, .book-list article:hover { transform: none; }
  .scrub span, .share i, .meter span { opacity: 1; width: var(--w); }
}
