:root {
  --ink: #535353;
  --bg: #f7f7f7;
  --line: #222;
  --muted: #6d6d6d;
  --rh: #00c805;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pixel: "Press Start 2P", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.45;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  padding: 8px 10px;
  background: var(--line);
  color: var(--bg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 clamp(14px, 3vw, 28px);
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  width: 36px;
  height: 36px;
  background: url("assets/dino.png") center / contain no-repeat;
  image-rendering: pixelated;
}

.brand__name {
  display: block;
  font-family: var(--pixel);
  font-size: 12px;
}

.brand__sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.nav__links {
  display: flex;
  gap: 16px;
  margin-left: 12px;
  font-size: 0.92rem;
}

.nav__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav__actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}

.claim {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.claim div {
  padding: 16px;
  border: 2px solid var(--ink);
  background: #fff;
}

.claim span {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.claim b {
  font-family: var(--pixel);
  font-size: 12px;
  word-break: break-all;
}

.claim-addr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 8px 8px 12px;
  border: 2px solid var(--ink);
  background: #fff;
}

.claim-addr label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.claim-addr input {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: inherit;
  outline: none;
}

.claim-status {
  margin-top: 12px;
  max-width: 52ch;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.nav__icon {
  display: grid;
  place-items: center;
  width: auto;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid var(--line);
  background: var(--rh);
  color: #041;
  font-weight: 700;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn--ghost {
  background: var(--bg);
  color: var(--ink);
}

.btn--lg {
  min-height: 48px;
  padding: 0 18px;
}

.stage {
  padding: 18px clamp(14px, 3vw, 28px) 28px;
}

.hud {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.7;
}

.hud span {
  display: inline-block;
  margin-right: 14px;
}

.hud b {
  font-weight: 400;
}

.frame {
  position: relative;
  border: 2px solid var(--ink);
  background: #fff;
}

#game {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  touch-action: none;
}

.hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--muted);
  pointer-events: none;
}

.hint.is-hidden {
  display: none;
}

.ca {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 8px 8px 12px;
  border: 2px solid var(--ink);
  background: #fff;
}

.ca span {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.ca code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.ca button {
  margin-left: auto;
  padding: 6px 10px;
  border: 2px solid var(--line);
  background: var(--rh);
  color: #041;
  font-size: 0.8rem;
  font-weight: 700;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px clamp(14px, 3vw, 28px);
}

.eyebrow {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.05;
  max-width: 22ch;
  margin-bottom: 16px;
}

.lead {
  max-width: 52ch;
  color: var(--muted);
  margin-bottom: 24px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.facts li,
.tok div,
.steps li,
.claim div {
  padding: 16px;
  border: 2px solid var(--ink);
  background: #fff;
}

.facts span {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.facts h3,
.steps h3 {
  margin-bottom: 6px;
}

.facts p,
.steps p {
  color: var(--muted);
}

.tok {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tok b {
  display: block;
  font-family: var(--pixel);
  font-size: 14px;
  margin-bottom: 8px;
}

.tok span {
  font-family: var(--mono);
  font-size: 0.75rem;
}

.steps {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.steps b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--line);
  font-family: var(--pixel);
  font-size: 12px;
}

.buy__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer {
  padding: 28px clamp(14px, 3vw, 28px) 40px;
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.footer p {
  margin-bottom: 10px;
}

.footer__disclaimer {
  max-width: 68ch;
  font-size: 0.85rem;
  color: #cfcfcf;
}

.footer__links {
  display: flex;
  gap: 14px;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 30;
  translate: -50% 12px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  background: #fff;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  translate: -50% 0;
}

.frame.is-night {
  background: #1d1d1d;
}

@media (max-width: 800px) {
  .nav__links {
    display: none;
  }

  .facts,
  .tok,
  .claim {
    grid-template-columns: 1fr;
  }

  .hud {
    font-size: 8px;
    flex-direction: column;
  }
}
