:root {
  color-scheme: dark;
  --ink: #15131b;
  --panel: #211e27;
  --panel-dark: #19171e;
  --line: #4b4357;
  --paper: #f3e9c9;
  --dim: #b8acc2;
  --gold: #e0ad1c;
  --gold-soft: #f4d978;
  --green: #76c982;
  --red: #e17b70;
  --shadow: #08070a;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(180deg, #17151d, #100f14 70%); color: var(--paper); font-family: var(--sans); }
body::before { position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 18px 18px; }
a { color: inherit; }
button, input { font: inherit; }
button { min-height: 42px; border: 2px solid #7a6320; border-radius: 5px; background: #3b301b; color: var(--gold-soft); font-family: var(--mono); font-size: 10px; font-weight: 900; letter-spacing: .04em; cursor: pointer; box-shadow: 3px 3px 0 var(--shadow); }
button:hover:not(:disabled) { border-color: var(--gold); background: #4a3b1d; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 9px 12px; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.topbar { min-height: 70px; display: flex; align-items: center; gap: 22px; padding: 10px max(18px, calc((100vw - 1160px) / 2)); border-bottom: 3px solid #342f3d; background: #121117; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-pick { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--gold); border-radius: 4px; background: #302719; font-size: 22px; box-shadow: 3px 3px 0 #000; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand b { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; }
.brand small { color: var(--gold); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.topbar nav { margin-left: auto; display: flex; gap: 14px; }
.topbar nav a { color: var(--dim); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.topbar nav a:hover { color: var(--paper); }
.connect-button { min-width: 142px; }
.wallet-strip { min-height: 66px; display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: center; gap: 20px; padding: 10px max(18px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid var(--line); background: #1c1922; color: var(--dim); font-family: var(--mono); font-size: 9px; }
.wallet-strip dl { display: flex; margin: 0; }
.wallet-strip dl div { min-width: 120px; padding: 0 16px; border-left: 1px solid var(--line); }
.wallet-strip dt { color: #8f8498; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.wallet-strip dd { margin: 4px 0 0; color: var(--paper); font-size: 10px; }
.refresh-button, .ghost { border-color: var(--line); background: #26222d; color: var(--paper); }
main { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 62px 0 36px; border-bottom: 1px solid #302b38; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-family: var(--mono); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.hero h1 { margin: 0; font-size: clamp(46px, 8vw, 86px); line-height: .88; letter-spacing: -.07em; text-transform: uppercase; }
.hero h1 span { color: var(--gold); }
.hero > p:last-child { max-width: 690px; margin: 22px 0 0; color: #c8bdcd; font-size: 15px; line-height: 1.6; }
.action-status { position: sticky; top: 8px; z-index: 20; min-height: 42px; display: flex; align-items: center; margin: 18px 0; padding: 10px 14px; border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 5px; background: rgba(25, 23, 30, .96); color: var(--dim); font-family: var(--mono); font-size: 9px; box-shadow: 3px 3px 0 rgba(0,0,0,.35); }
.action-status[data-tone="working"] { border-left-color: var(--gold); color: var(--gold-soft); }
.action-status[data-tone="complete"] { border-left-color: var(--green); color: var(--green); }
.action-status[data-tone="error"] { border-left-color: var(--red); color: var(--red); }
.swap-desk { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: center; gap: 18px 24px; margin: 22px 0; padding: 17px 19px; border: 2px solid #725f25; border-radius: 7px; background: linear-gradient(135deg, #2b251a, #1b1920 70%); box-shadow: 6px 6px 0 var(--shadow); }
.swap-desk h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; text-transform: uppercase; }
.swap-desk-copy > p:last-child { max-width: 580px; margin: 7px 0 0; color: var(--dim); font-size: 10px; line-height: 1.5; }
.swap-desk-actions { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 9px; }
.swap-desk-actions a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #7a6320; border-radius: 5px; background: #3b301b; padding: 9px 13px; color: var(--gold-soft); font-family: var(--mono); font-size: 9px; font-weight: 900; letter-spacing: .04em; text-align: center; text-decoration: none; box-shadow: 3px 3px 0 var(--shadow); }
.swap-desk-actions a:hover { border-color: var(--gold); background: #4a3b1d; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.swap-desk > small { grid-column: 1 / -1; color: #9f9272; font-family: var(--mono); font-size: 8px; }
.live-clocks { margin: 22px 0; border: 2px solid var(--line); border-radius: 7px; background: var(--panel-dark); box-shadow: 6px 6px 0 var(--shadow); overflow: hidden; }
.live-clocks > header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 17px; border-bottom: 1px solid var(--line); background: var(--panel); }
.live-clocks h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; text-transform: uppercase; }
.live-clocks > header > p { max-width: 420px; margin: 0; color: var(--dim); font-size: 10px; line-height: 1.5; text-align: right; }
.clock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clock-card { position: relative; min-height: 142px; display: flex; flex-direction: column; justify-content: center; padding: 17px 19px; border-right: 1px solid var(--line); background: #19171e; overflow: hidden; text-decoration: none; }
.clock-card:last-child { border-right: 0; }
.clock-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; content: ""; background: #6d6378; }
.clock-card[data-tone="working"]::before { background: var(--gold); }
.clock-card[data-tone="ready"]::before { background: var(--green); }
.clock-card[data-tone="paused"]::before { background: var(--red); }
.clock-card > span { color: #92879c; font-family: var(--mono); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.clock-card > b { margin-top: 9px; color: var(--gold-soft); font-family: var(--mono); font-size: clamp(18px, 2.4vw, 28px); font-variant-numeric: tabular-nums; letter-spacing: -.045em; line-height: 1.05; overflow-wrap: anywhere; }
.clock-card[data-tone="ready"] > b { color: var(--green); }
.clock-card[data-tone="paused"] > b { color: var(--red); }
.clock-card > small { margin-top: 12px; color: var(--dim); font-size: 9px; line-height: 1.45; }
.harvest-link-card::before { background: var(--green); }
.harvest-link-card > b { color: var(--green); }
.harvest-link-card:hover { background: #20231f; }
.task-card { margin: 22px 0; border: 2px solid var(--line); border-radius: 7px; background: var(--panel-dark); box-shadow: 6px 6px 0 var(--shadow); overflow: hidden; }
.task-head { min-height: 112px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px; border-bottom: 2px solid var(--line); background: var(--panel); }
.task-number { color: #73687d; font-family: var(--mono); font-size: 32px; font-weight: 900; }
.task-head h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; text-transform: uppercase; }
.task-head p:last-child { margin: 5px 0 0; color: var(--dim); font-size: 11px; }
.miner-list { display: grid; }
.miner-row { min-height: 78px; display: grid; grid-template-columns: 100px 130px minmax(230px, 1fr) 180px; align-items: center; gap: 14px; padding: 13px 17px; border-bottom: 1px solid #37313f; }
.miner-row:last-child { border-bottom: 0; }
.miner-row > div > span, .claim-list article > span { display: block; color: #8f8498; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.miner-row b { display: block; margin-top: 4px; color: var(--paper); font-family: var(--mono); font-size: 11px; }
.miner-id b { color: var(--gold-soft); font-size: 17px; }
.miner-state b { font-weight: 600; }
.miner-action { text-align: right; }
.miner-action button { width: 100%; }
.no-action { color: #7f7489; font-family: var(--mono); font-size: 8px; }
.fine-print { margin: 0; padding: 12px 17px; border-top: 1px dashed #403948; background: #15131a; color: #93889d; font-family: var(--mono); font-size: 8px; line-height: 1.55; }
.empty-row { min-height: 120px; display: grid; place-content: center; gap: 7px; padding: 24px; text-align: center; }
.empty-row b { font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.empty-row span { color: var(--dim); font-size: 10px; }
.epoch-claims { margin: 17px; border: 2px solid #4e7448; border-radius: 6px; background: #18231b; box-shadow: 4px 4px 0 var(--shadow); overflow: hidden; }
.epoch-claims-head { min-height: 104px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 17px; border-bottom: 1px solid #41613d; background: #1d2a20; }
.epoch-claims-head h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; text-transform: uppercase; }
.epoch-claims-head p:last-child { margin: 6px 0 0; color: #afc7b1; font-size: 10px; }
.epoch-claim-all { min-width: 300px; border-color: #6eae71; background: #244c2c; color: #d9f6ce; }
.epoch-claim-all:hover:not(:disabled) { border-color: #9fe29d; background: #2f6037; }
.epoch-claim-all:disabled { border-color: #405c40; background: #1d3021; color: #8ca38c; opacity: .75; }
.epoch-claim-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.epoch-claim-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border-right: 1px solid #344d35; border-bottom: 1px solid #344d35; }
.epoch-claim-row:nth-child(3n) { border-right: 0; }
.epoch-claim-row span { color: var(--green); font-family: var(--mono); font-size: 7px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.epoch-claim-row b { display: block; margin-top: 4px; color: var(--paper); font-family: var(--mono); font-size: 10px; }
.epoch-claim-row strong { color: #bfe8b7; font-family: var(--mono); font-size: 10px; text-align: right; }
.epoch-claim-empty { grid-column: 1 / -1; min-height: 76px; display: grid; place-content: center; gap: 6px; padding: 15px; text-align: center; }
.epoch-claim-empty b { color: #bfe8b7; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.epoch-claim-empty span { color: #91aa94; font-size: 9px; }
.claim-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 17px; }
.claim-buttons-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; }
.claim-buttons button { min-height: 58px; padding: 10px; }
.claim-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.claim-list article { min-height: 125px; padding: 17px; border-right: 1px solid var(--line); }
.claim-list article:last-child { border-right: 0; }
.claim-list b { display: block; margin-top: 12px; color: var(--gold-soft); font-family: var(--mono); font-size: 16px; }
.claim-list small { display: block; margin-top: 9px; color: var(--dim); font-size: 9px; line-height: 1.5; }
.vote-head { grid-template-columns: 64px minmax(0, 1fr) auto; }
.epoch-stamp { min-width: 94px; padding: 11px; border: 1px dashed #71627f; text-align: center; }
.epoch-stamp span { display: block; color: var(--dim); font-family: var(--mono); font-size: 7px; }
.epoch-stamp b { display: block; margin-top: 4px; color: var(--gold-soft); font-family: var(--mono); font-size: 22px; }
.vote-schedule { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 17px 17px 0; padding: 13px 15px; border: 1px solid #7a6320; border-left: 5px solid var(--gold); background: #2b2418; }
.vote-schedule span { color: var(--gold); font-family: var(--mono); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.vote-schedule b { color: var(--gold-soft); font-family: var(--mono); font-size: 11px; }
.vote-schedule small { max-width: 320px; color: #c0b48f; font-size: 9px; line-height: 1.4; text-align: right; }
.commodity-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 17px 17px 8px; }
.commodity-picks label { position: relative; min-height: 92px; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: 1fr 1fr; align-items: center; padding: 12px; border: 2px solid #484050; border-radius: 5px; background: #211e27; cursor: pointer; }
.commodity-picks label[data-live="false"] { opacity: .45; }
.commodity-picks label:has(input:checked) { border-color: var(--gold); background: #332a1a; box-shadow: 3px 3px 0 #08070a; }
.commodity-picks input { position: absolute; top: 8px; right: 8px; }
.commodity-picks label > span { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #756631; border-radius: 50%; color: var(--gold-soft); font-family: var(--mono); font-size: 10px; font-weight: 900; }
.commodity-picks b { align-self: end; font-size: 15px; }
.commodity-picks small { align-self: start; color: var(--dim); font-family: var(--mono); font-size: 8px; }
.vote-tally { margin: 0 17px; padding: 10px 12px; border: 1px dashed var(--line); color: var(--dim); font-family: var(--mono); font-size: 9px; text-align: center; }
.vote-tools { display: flex; gap: 9px; padding: 12px 17px; }
.vote-tools #castVoteButton { margin-left: auto; min-width: 220px; }
.vote-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 17px 17px; }
.vote-row { min-height: 70px; display: grid; grid-template-columns: 24px 1fr; grid-template-rows: auto auto; align-items: center; padding: 9px; border: 1px solid #403948; border-radius: 4px; background: #1d1a22; }
.vote-row[data-ready="true"] { border-color: #6b5a24; cursor: pointer; }
.vote-row:has(input:checked) { border-color: var(--gold); background: #302719; }
.vote-row input { grid-row: 1 / 3; }
.vote-row b { font-family: var(--mono); font-size: 11px; }
.vote-row span, .vote-row small { color: var(--dim); font-size: 8px; }
footer { width: min(1160px, calc(100% - 32px)); min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 50px auto 0; border-top: 2px solid var(--line); color: var(--dim); font-family: var(--mono); font-size: 9px; }
footer > div { display: grid; gap: 5px; }
footer b { color: var(--paper); }
footer nav { display: flex; gap: 14px; }
footer a { color: var(--gold-soft); }
.noscript { padding: 20px; background: var(--red); color: #fff; text-align: center; }
@media (max-width: 820px) {
  .topbar nav { display: none; }
  .wallet-strip { grid-template-columns: 1fr auto; }
  .wallet-strip dl { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line); padding-top: 9px; }
  .wallet-strip dl div:first-child { padding-left: 0; border-left: 0; }
  .task-head { grid-template-columns: 48px 1fr; }
  .task-head > button, .epoch-stamp { grid-column: 1 / -1; width: 100%; }
  .clock-grid { grid-template-columns: 1fr; }
  .swap-desk { grid-template-columns: 1fr; }
  .swap-desk > small { grid-column: auto; }
  .clock-card { min-height: 112px; border-right: 0; border-bottom: 1px solid var(--line); }
  .clock-card:last-child { border-bottom: 0; }
  .miner-row { grid-template-columns: 78px 1fr; }
  .miner-state { grid-column: 1 / -1; }
  .miner-action { grid-column: 1 / -1; }
  .epoch-claims-head { grid-template-columns: 1fr; }
  .epoch-claim-all { min-width: 0; width: 100%; }
  .epoch-claim-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .epoch-claim-row:nth-child(3n) { border-right: 1px solid #344d35; }
  .epoch-claim-row:nth-child(2n) { border-right: 0; }
  .claim-buttons, .claim-list { grid-template-columns: 1fr; }
  .claim-list article { border-right: 0; border-bottom: 1px solid var(--line); }
  .claim-list article:last-child { border-bottom: 0; }
  .vote-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .topbar { gap: 10px; padding-inline: 10px; }
  .brand-pick { width: 36px; height: 36px; }
  .brand b { font-size: 10px; }
  .brand small { display: none; }
  .connect-button { min-width: 0; margin-left: auto; padding-inline: 9px; }
  .wallet-strip { padding-inline: 12px; }
  .wallet-strip dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .wallet-strip dl div { min-width: 0; padding: 0; border: 0; }
  .wallet-strip dl div:last-child { grid-column: 1 / -1; }
  main { width: min(100% - 20px, 1160px); }
  .hero { padding-top: 42px; }
  .hero > p:last-child { font-size: 13px; }
  .live-clocks > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .live-clocks > header > p { text-align: left; }
  .swap-desk-actions { grid-template-columns: 1fr; }
  .task-head { padding: 13px; gap: 10px; }
  .task-number { font-size: 23px; }
  .task-head h2 { font-size: 27px; }
  .epoch-claims { margin: 10px; }
  .epoch-claim-list { grid-template-columns: 1fr; }
  .epoch-claim-row, .epoch-claim-row:nth-child(2n), .epoch-claim-row:nth-child(3n) { border-right: 0; }
  .vote-schedule { grid-template-columns: 1fr; margin: 10px 10px 0; }
  .vote-schedule small { max-width: none; text-align: left; }
  .commodity-picks { grid-template-columns: 1fr; }
  .vote-tools { display: grid; grid-template-columns: 1fr 1fr; }
  .vote-tools #castVoteButton { grid-column: 1 / -1; min-width: 0; margin-left: 0; }
  .vote-list { grid-template-columns: 1fr 1fr; padding-inline: 10px; }
  footer { align-items: flex-start; flex-direction: column; padding: 24px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
