:root {
  --paper: #f7efd8;
  --paper-deep: #eadfbf;
  --ink: #17130f;
  --ink-soft: rgba(23, 19, 15, 0.72);
  --ink-faint: rgba(23, 19, 15, 0.12);
  --line: rgba(23, 19, 15, 0.18);
  --cream-line: rgba(255, 252, 236, 0.52);
  --acid: #b6ff4f;
  --mint: #67df9b;
  --sky: #71c8ff;
  --coral: #ff6f61;
  --violet: #9b7cff;
  --gold: #ffcc4d;
  --white: #fff8e8;
  --shadow: 8px 8px 0 rgba(23, 19, 15, 0.9);
  --soft-shadow: 0 24px 70px rgba(55, 40, 17, 0.18);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Heiti SC", "Noto Sans CJK SC", Arial, sans-serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(23, 19, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 19, 15, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html,
body {
  max-width: 100%;
}

body,
button,
input {
  letter-spacing: 0;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand-word,
.section-kicker,
.btn,
.contract-chip,
.nav-links,
.mine-grid button,
.ticker-track,
.wallet-option span {
  font-family: var(--font-sans);
}

.container {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  position: relative;
}

.grain,
.pixel-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: 80;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(23, 19, 15, 0.15) 2px 3px),
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(255, 255, 255, 0.32) 2px 3px);
  mix-blend-mode: multiply;
}

.pixel-sky {
  z-index: -1;
  background:
    radial-gradient(circle at 14% 10%, rgba(182, 255, 79, 0.28), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(113, 200, 255, 0.3), transparent 25%),
    radial-gradient(circle at 48% 72%, rgba(255, 111, 97, 0.2), transparent 32%);
}

.wallet-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: min(420px, calc(100vw - 48px));
  padding: 14px 16px;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--acid);
  box-shadow: var(--shadow);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wallet-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100vw;
  z-index: 70;
  background: rgba(247, 239, 216, 0.78);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-nav {
  width: min(calc(var(--max) + 64px), 100%);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--acid);
}

.brand-mark i {
  display: block;
  background: var(--coral);
}

.brand-mark i:nth-child(2),
.brand-mark i:nth-child(3) {
  background: var(--sky);
}

.brand-word {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 900;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.contract-chip,
.nav-cta,
.btn {
  border-radius: 0;
  border: 2px solid var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.contract-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--white);
}

.contract-chip span {
  color: var(--coral);
}

.contract-chip.copied {
  background: var(--acid);
}

.nav-cta {
  min-height: 42px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--acid);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 3px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  padding: 138px 0 90px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  border-bottom: 2px solid var(--line);
}

.hero-canvas,
.hero-ui {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.58;
}

.hero-ui {
  z-index: 1;
  pointer-events: none;
}

.wing {
  position: absolute;
  width: min(34vw, 440px);
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, transparent 48%, rgba(23, 19, 15, 0.14) 48% 52%, transparent 52%),
    linear-gradient(var(--cream-line) 2px, transparent 2px),
    linear-gradient(90deg, var(--cream-line) 2px, transparent 2px),
    linear-gradient(135deg, rgba(182, 255, 79, 0.55), rgba(113, 200, 255, 0.34), rgba(255, 111, 97, 0.42));
  background-size: auto, 24px 24px, 24px 24px, auto;
  border: 2px solid rgba(23, 19, 15, 0.22);
  image-rendering: pixelated;
  opacity: 0.8;
  filter: drop-shadow(12px 18px 0 rgba(23, 19, 15, 0.08));
}

.wing-left {
  left: -8vw;
  top: 18vh;
  clip-path: polygon(4% 18%, 88% 0, 100% 50%, 86% 100%, 8% 84%, 38% 50%);
}

.wing-right {
  right: -8vw;
  top: 12vh;
  clip-path: polygon(96% 18%, 12% 0, 0 50%, 14% 100%, 92% 84%, 62% 50%);
}

.hero-console {
  position: absolute;
  right: max(28px, calc((100vw - var(--max)) / 2));
  bottom: 62px;
  width: min(430px, 36vw);
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  pointer-events: auto;
}

.console-bar {
  min-height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 800;
}

.console-bar span {
  width: 11px;
  height: 11px;
  display: block;
  background: var(--coral);
  border: 1px solid var(--white);
}

.console-bar span:nth-child(2) {
  background: var(--gold);
}

.console-bar span:nth-child(3) {
  background: var(--acid);
}

.console-bar strong {
  margin-left: auto;
  font-size: 0.95rem;
}

.mini-mine-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(var(--mine-columns, 5), 1fr);
  gap: 7px;
}

.mini-mine-grid button {
  aspect-ratio: 1;
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(23, 19, 15, 0.18);
  cursor: pointer;
  padding: 0;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.mini-mine-grid button.hot {
  background: var(--acid);
}

.mini-mine-grid button.warm {
  background: var(--coral);
}

.mini-mine-grid button:hover,
.mini-mine-grid button.active {
  transform: translate(-2px, -2px);
  background: var(--acid);
  box-shadow: 5px 5px 0 var(--ink);
}

.console-readout {
  margin: 0 18px 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-weight: 800;
}

.console-readout span {
  color: var(--ink-soft);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 900;
}

.eyebrow span {
  width: 12px;
  height: 12px;
  background: var(--acid);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 26px;
  font-size: clamp(4rem, 9.2vw, 8.4rem);
  line-height: 0.9;
  font-weight: 900;
}

.hero h1 em {
  display: inline-block;
  color: var(--coral);
  font-style: normal;
  text-shadow: 4px 4px 0 rgba(23, 19, 15, 0.16);
}

.hero-sub {
  width: min(660px, 100%);
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 1.07rem;
  font-weight: 700;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.hero-actions,
.wallet-actions,
.mine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-size: 0.98rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn-primary {
  background: var(--acid);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-primary:hover {
  box-shadow: 8px 8px 0 var(--ink);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--sky);
}

.btn-ghost {
  background: var(--ink);
  color: var(--white);
  box-shadow: 5px 5px 0 var(--coral);
}

.wallet-connect.is-connected {
  background: var(--mint);
  color: var(--ink);
}

.hero-metrics {
  width: min(760px, 100%);
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink);
  background: rgba(255, 248, 232, 0.78);
  box-shadow: var(--soft-shadow);
}

.hero-metrics div {
  padding: 18px;
  border-right: 2px solid var(--ink);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics span,
.mine-stats span,
.panel-foot span,
.wallet-status span,
.roadmap-line span,
.rules-grid span {
  display: block;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-metrics strong,
.mine-stats strong,
.panel-foot strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 1.26rem;
  font-weight: 900;
  line-height: 1;
}

.ticker {
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 38px;
  padding: 15px 0;
  animation: ticker 24s linear infinite;
  font-weight: 700;
  text-transform: uppercase;
}

.ticker-track span:nth-child(3n) {
  color: var(--acid);
}

.ticker-track span:nth-child(3n + 1) {
  color: var(--sky);
}

.section {
  padding: 96px 0;
}

.section-head {
  margin-bottom: 36px;
}

.section-head.center {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2,
.section-copy h2,
.mine-copy h2,
.wallet-copy h2,
.faq h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.86;
}

.intro {
  background: var(--white);
  border-bottom: 2px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: end;
}

.intro-grid > p,
.mine-copy > p,
.wallet-copy > p,
.flow-grid p,
.rules-grid p,
.roadmap-line p,
.faq details p,
.footer p {
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.72;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.flow-grid article,
.rules-grid article,
.roadmap-line article,
.wallet-card,
.mine-panel {
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.flow-grid article {
  min-height: 330px;
  padding: 24px;
  position: relative;
}

.flow-grid article:nth-child(1) {
  box-shadow: 8px 8px 0 var(--acid);
}

.flow-grid article:nth-child(2) {
  box-shadow: 8px 8px 0 var(--sky);
}

.flow-grid article:nth-child(3) {
  box-shadow: 8px 8px 0 var(--coral);
}

.flow-grid article > span {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 8px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 900;
}

.flow-grid h3,
.rules-grid h3,
.roadmap-line h3 {
  margin-bottom: 12px;
  font-size: 2rem;
  line-height: 0.98;
}

.pixel-icon {
  width: 92px;
  height: 92px;
  margin-bottom: 26px;
  border: 2px solid var(--ink);
  background-color: var(--paper);
  box-shadow: inset 0 0 0 8px rgba(23, 19, 15, 0.06);
  image-rendering: pixelated;
}

.icon-wallet {
  background-image:
    linear-gradient(var(--coral) 0 0),
    linear-gradient(var(--gold) 0 0),
    linear-gradient(var(--ink) 0 0);
  background-size: 56px 38px, 18px 18px, 72px 8px;
  background-position: 17px 30px, 55px 40px, 10px 66px;
  background-repeat: no-repeat;
}

.icon-vault {
  background-image:
    linear-gradient(var(--sky) 0 0),
    linear-gradient(var(--acid) 0 0),
    linear-gradient(var(--ink) 0 0),
    linear-gradient(var(--ink) 0 0);
  background-size: 52px 46px, 26px 22px, 66px 8px, 8px 58px;
  background-position: 20px 30px, 33px 42px, 13px 72px, 42px 18px;
  background-repeat: no-repeat;
}

.icon-loop {
  background-image:
    linear-gradient(var(--acid) 0 0),
    linear-gradient(var(--acid) 0 0),
    linear-gradient(var(--coral) 0 0),
    linear-gradient(var(--coral) 0 0);
  background-size: 52px 12px, 12px 52px, 52px 12px, 12px 52px;
  background-position: 20px 26px, 60px 26px, 20px 56px, 20px 26px;
  background-repeat: no-repeat;
}

.mine {
  background:
    linear-gradient(rgba(23, 19, 15, 0.055) 2px, transparent 2px),
    linear-gradient(90deg, rgba(23, 19, 15, 0.055) 2px, transparent 2px),
    #ecdfbd;
  background-size: 42px 42px;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.mine-layout,
.wallet-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 44px;
  align-items: center;
}

.mine-copy h2,
.wallet-copy h2 {
  margin-bottom: 22px;
}

.mine-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--ink);
  background: var(--white);
}

.mine-stats div {
  padding: 16px;
  border-right: 2px solid var(--ink);
}

.mine-stats div:last-child {
  border-right: 0;
}

.mine-panel {
  padding: 18px;
  box-shadow: 10px 10px 0 var(--ink);
}

.panel-head,
.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-head {
  padding: 4px 2px 16px;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-sans);
  font-weight: 900;
}

.panel-head div,
.wallet-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  background: var(--acid);
  border: 2px solid var(--ink);
  animation: blink 1.3s step-end infinite;
}

.panel-head small {
  color: var(--ink-soft);
  font-weight: 800;
}

.mine-grid {
  padding: 18px 0;
  display: grid;
  grid-template-columns: repeat(var(--mine-columns, 5), minmax(0, 1fr));
  gap: 9px;
}

.mine-grid button {
  min-width: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 6px;
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(23, 19, 15, 0.2);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.mine-grid button small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.mine-grid button:hover,
.mine-grid button.active {
  transform: translate(-2px, -2px);
  background: var(--acid);
  box-shadow: 6px 6px 0 var(--ink);
}

.mine-grid button.hot {
  background: var(--coral);
}

.mine-grid button.warm {
  background: var(--gold);
}

.mine-grid button.active {
  background: var(--acid);
}

.panel-foot {
  padding: 16px 0 18px;
  border-top: 2px solid var(--line);
}

.panel-foot > div {
  min-width: 0;
}

.mine-actions {
  padding-top: 2px;
}

.claim-tools {
  margin-top: 16px;
  padding-top: 16px;
  display: grid;
  gap: 14px;
  border-top: 2px solid var(--line);
}

.claim-tools strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.claim-tools small {
  display: block;
  color: var(--ink-soft);
  font-weight: 750;
  line-height: 1.55;
}

.claim-form {
  display: grid;
  grid-template-columns: auto minmax(82px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.claim-form label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 900;
}

.claim-form input {
  width: 100%;
  min-width: 0;
  padding: 13px 12px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  outline: none;
}

.claim-form input:focus {
  box-shadow: 0 0 0 3px var(--acid);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rules-grid article {
  min-height: 260px;
  padding: 24px;
}

.rules-grid article:nth-child(2n) {
  background: #f8f4e7;
}

.rules-grid span {
  margin-bottom: 22px;
  color: var(--coral);
}

.rule-params {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.rule-params div {
  min-width: 0;
  padding: 18px;
  border-right: 2px solid var(--ink);
}

.rule-params div:last-child {
  border-right: 0;
}

.rule-params span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.rule-params strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.15;
}

.roadmap {
  padding-top: 20px;
}

.roadmap-wrap {
  padding: 76px 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.roadmap-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.roadmap-line article {
  padding: 24px;
  position: relative;
}

.roadmap-line article::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: -11px;
  height: 8px;
  background: var(--line);
}

.roadmap-line article.active::before {
  background: var(--acid);
  border: 2px solid var(--ink);
}

.roadmap-line span {
  margin-bottom: 18px;
}

.wallet-section {
  background: var(--ink);
  color: var(--white);
}

.wallet-section .section-kicker,
.wallet-copy > p,
.wallet-status small,
.wallet-option small {
  color: rgba(255, 248, 232, 0.72);
}

.wallet-card {
  padding: 18px;
  background: #221b15;
  color: var(--white);
  border-color: var(--cream-line);
  box-shadow: 10px 10px 0 var(--acid);
}

.wallet-card-head {
  padding: 6px 4px 18px;
  border-bottom: 2px solid rgba(255, 248, 232, 0.18);
  font-family: var(--font-sans);
  font-weight: 900;
}

.wallet-option {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 20px 6px;
  color: inherit;
  text-align: left;
  border: 0;
  border-bottom: 2px solid rgba(255, 248, 232, 0.14);
  background: transparent;
  cursor: pointer;
}

.wallet-option:hover {
  color: var(--acid);
}

.wallet-option span {
  font-size: 1.45rem;
}

.wallet-status {
  display: grid;
  gap: 7px;
  padding: 20px 6px 6px;
  font-family: var(--font-sans);
}

.wallet-status span {
  color: var(--acid);
}

.faq {
  background: var(--white);
}

.faq-wrap {
  max-width: 980px;
}

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq details {
  border-bottom: 2px solid var(--ink);
  padding: 0 8px;
}

.faq summary {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 900;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary span {
  color: var(--coral);
}

.faq details p {
  max-width: 760px;
  margin: 0 0 26px 48px;
}

.footer {
  padding: 52px 0 70px;
  background: var(--ink);
  color: var(--white);
  border-top: 2px solid rgba(255, 248, 232, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 34px;
}

.footer .brand-mark {
  box-shadow: 4px 4px 0 var(--coral);
}

.footer h3 {
  margin: 0 0 15px;
  color: var(--acid);
  font-family: var(--font-sans);
  font-weight: 900;
}

.footer a {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  color: rgba(255, 248, 232, 0.76);
}

.footer a:hover {
  color: var(--acid);
}

.footer p {
  margin: 0;
  color: rgba(255, 248, 232, 0.72);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

@media (max-width: 1040px) {
  .hero-console {
    width: min(380px, calc(100vw - 56px));
    opacity: 0.72;
  }

  .intro-grid,
  .mine-layout,
  .wallet-layout {
    grid-template-columns: 1fr;
  }

  .rules-grid,
  .flow-grid,
  .roadmap-line,
  .rule-params,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .site-nav {
    width: 100vw;
    min-height: 68px;
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
    position: fixed;
    top: 12px;
    right: 20px;
    z-index: 120;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--paper);
    transform: translateY(-100%);
    transition: transform 0.24s ease;
  }

  .nav-links[data-open="true"] {
    display: flex;
    transform: translateY(0);
  }

  .hero {
    min-height: 880px;
    padding-top: 116px;
    align-items: start;
  }

  .hero-console {
    right: 28px;
    bottom: 34px;
    transform: rotate(0);
  }

  .wing {
    width: 58vw;
  }

  .hero-metrics,
  .mine-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-metrics div:nth-child(2),
  .mine-stats div:nth-child(2) {
    border-right: 0;
  }

  .hero-metrics div:nth-child(-n + 2),
  .mine-stats div:nth-child(-n + 2) {
    border-bottom: 2px solid var(--ink);
  }

  .section {
    padding: 74px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 36px), 354px);
    margin-left: 18px;
    margin-right: 18px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 58px;
  }

  .hero-content,
  .hero-actions,
  .hero-metrics,
  .hero-sub {
    max-width: 100%;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 11vw, 3.35rem);
    overflow-wrap: anywhere;
  }

  .hero h1 em {
    max-width: 100%;
    font-size: 0.88em;
  }

  .hero h1 em {
    text-shadow: 4px 4px 0 var(--ink);
    -webkit-text-stroke-width: 1px;
  }

  .hero-sub {
    font-size: 0.94rem;
    line-height: 1.68;
  }

  .hero-actions .btn,
  .wallet-actions .btn,
  .mine-actions .btn,
  .claim-form .btn {
    width: 100%;
  }

  .claim-form {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .mine-stats,
  .rules-grid,
  .flow-grid,
  .roadmap-line,
  .rule-params,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rule-params div {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .rule-params div:last-child {
    border-bottom: 0;
  }

  .hero-metrics div,
  .mine-stats div {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .hero-metrics div:last-child,
  .mine-stats div:last-child {
    border-bottom: 0;
  }

  .hero-console {
    display: none;
  }

  .mini-mine-grid {
    gap: 5px;
    padding: 14px;
  }

  .section-head h2,
  .section-copy h2,
  .mine-copy h2,
  .wallet-copy h2,
  .faq h2 {
    font-size: 2.85rem;
  }

  .mine-grid {
    gap: 6px;
  }

  .mine-grid button {
    padding: 4px;
    font-size: 0.82rem;
  }

  .mine-grid button small {
    font-size: 0.62rem;
  }

  .panel-foot {
    display: grid;
    gap: 14px;
  }

  .faq summary {
    font-size: 1.15rem;
    line-height: 1.2;
  }

  .faq details p {
    margin-left: 0;
  }

  .wallet-toast {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
