:root {
  --font-display-family: "Doto", "Doto Fallback", ui-monospace, monospace;
  --font-mono-family: "Roboto Mono", ui-monospace, Menlo, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --font-mono: var(--font-mono-family), ui-monospace, Menlo, monospace;
  --font-display: var(--font-display-family), var(--font-mono), monospace;
  --ground: #ffffff;
  --ink: #00c805;
  --ink-2: #5b616e;
  --ink-3: #b1b7c3;
  --ink-faint: #dee1e7;
  --ink-depth: #8aff8a;
  --neon: #ccff00;
  --on-neon: #110e08;
  --good: #00c805;
  --warn: #ffd12f;
  --warn-ink: #110e08;
  --bad: #fc401f;
  --rond: 40;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ground);
}

.flex-1 {
  flex: 1;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--ink);
  color: var(--ground);
}

:focus-visible {
  outline: 1px dashed var(--ink);
  outline-offset: 2px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--ink) var(--ground);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.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;
}

.wrap {
  margin-inline: auto;
  max-width: 128ch;
  padding-inline: 3ch;
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 2ch;
  }
}

.display {
  font-family: var(--font-display);
  font-variation-settings: "ROND" var(--rond);
  text-transform: uppercase;
  letter-spacing: 0;
}

.display.keep-case {
  text-transform: none;
}

.t-xl {
  font-size: max(44px, min(7.5vw, 96px));
  font-weight: 700;
  line-height: 0.92;
}

.t-l {
  font-size: 36px;
  font-weight: 700;
  line-height: 0.95;
}

.t-page {
  font-size: 43px;
  font-weight: 700;
  line-height: 0.95;
}

.t-m {
  font-size: 32px;
  font-weight: 800;
  line-height: 32px;
}

.t-s,
.t-stat {
  font-size: 20px;
  font-weight: 800;
  line-height: 24px;
}

@media (min-width: 640px) {
  .t-stat {
    font-size: 32px;
    line-height: 32px;
  }
}

.t-hero {
  font-size: 36px;
  font-weight: 700;
  line-height: 0.95;
}

@media (min-width: 768px) {
  .t-hero {
    font-size: max(29px, min(4.36vw - 3.7px, 43px));
  }
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.body-l {
  font-size: 16px;
  line-height: 24px;
}

.ink-2 {
  color: var(--ink-2);
}

.ink-3 {
  color: var(--ink-3);
}

.glyph-ground {
  background: var(--ground);
}

.rule {
  border-top: 1px solid var(--ink-3);
}

.rule-ink {
  border-top: 1px solid var(--ink);
}

.box {
  border: 1px solid var(--ink);
}

.box-3 {
  border: 1px solid var(--ink-3);
}

.frame {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.frame > .corner {
  width: 1ch;
  height: 20px;
  color: var(--ink-3);
  pointer-events: none;
  user-select: none;
  line-height: 20px;
  position: absolute;
}

.frame > .corner.tl {
  top: -10px;
  left: -0.5ch;
}

.frame > .corner.tr {
  top: -10px;
  right: -0.5ch;
}

.frame > .corner.bl {
  bottom: -10px;
  left: -0.5ch;
}

.frame > .corner.br {
  bottom: -10px;
  right: -0.5ch;
}

.bracket {
  border: 1px solid var(--ink);
  min-height: 44px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  justify-content: center;
  align-items: center;
  gap: 1ch;
  padding: 0 1.5ch;
  font-weight: 500;
  transition: background-color 0.12s cubic-bezier(0.4, 0, 0.2, 1), color 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
}

.bracket::before {
  content: "[";
  color: var(--ink-3);
}

.bracket::after {
  content: "]";
  color: var(--ink-3);
}

.bracket:hover {
  text-underline-offset: 4px;
  text-decoration: underline;
}

.bracket:active,
.bracket[aria-pressed="true"],
.bracket.is-on {
  background: var(--ink);
  color: var(--ground);
  text-decoration: none;
}

.bracket:active::before,
.bracket:active::after,
.bracket.is-on::before,
.bracket.is-on::after,
.bracket[aria-pressed="true"]::before,
.bracket[aria-pressed="true"]::after {
  color: var(--ground);
}

.bracket:disabled {
  color: var(--ink-faint);
  border-color: var(--ink-faint);
  cursor: not-allowed;
  text-decoration: line-through;
}

.bracket-primary {
  background: var(--neon);
  color: var(--on-neon);
  font-family: var(--font-display);
  font-variation-settings: "ROND" var(--rond);
  letter-spacing: 0.02em;
  min-height: 48px;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.bracket-primary::before,
.bracket-primary::after {
  color: var(--on-neon);
}

.bracket-primary:hover {
  background: var(--ink);
  color: var(--ground);
  text-decoration: none;
}

.bracket-primary:hover::before,
.bracket-primary:hover::after {
  color: var(--ground);
}

.bracket-primary:active {
  color: var(--ink);
  background: transparent;
}

.bracket-primary:active::before,
.bracket-primary:active::after {
  color: var(--ink-3);
}

.pick {
  border: 1px solid var(--ink);
  min-height: 64px;
  color: var(--ink);
  font-family: var(--font-display);
  font-variation-settings: "ROND" var(--rond);
  cursor: pointer;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  transition: background-color 0.12s cubic-bezier(0.4, 0, 0.2, 1), color 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
}

.pick.is-on {
  background: var(--neon);
  color: var(--on-neon);
}

.pick-lg {
  min-height: max(44px, min(9vw, 56px));
  font-size: max(20px, min(6vw, 34px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ground);
}

.site-header-inner {
  margin-inline: auto;
  display: flex;
  height: 60px;
  max-width: 128ch;
  align-items: center;
  justify-content: space-between;
  padding-inline: 3ch;
}

@media (max-width: 640px) {
  .site-header-inner {
    padding-inline: 2ch;
  }
}

.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1ch;
  white-space: nowrap;
}

.brand img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .brand img {
    width: 14px;
    height: 14px;
  }
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 2ch;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2ch;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1ch;
  position: relative;
}

.menu-btn {
  display: none;
  min-width: 44px;
  padding: 0 1ch;
}

@media (max-width: 767px) {
  .menu-btn {
    display: inline-flex;
  }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--ink);
  background: var(--ground);
  padding: 2ch 3ch 3ch;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 1.25ch 0;
  border-bottom: 1px solid var(--ink-faint);
}

.hero {
  margin-inline: auto;
  display: grid;
  max-width: 128ch;
  align-items: center;
  gap: 4ch;
  padding: 32px 3ch 40px;
}

@media (max-width: 640px) {
  .hero {
    padding-inline: 2ch;
  }
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 45fr 55fr;
    padding-top: 40px;
  }
}

.hero-visual {
  margin-inline: auto;
  width: 100%;
  max-width: 520px;
}

@media (min-width: 768px) {
  .hero-visual {
    justify-self: start;
  }
}

.hero-visual img,
.hero-visual canvas {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
}

.hero h1 {
  margin: 12px 0 0;
}

.hero .lead {
  margin: 20px 0 0;
  max-width: 56ch;
}

.hero .lead a {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--ink);
}

.mint {
  margin-top: 24px;
  max-width: 64ch;
}

.mint-box {
  padding: 2ch;
}

.mint-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.qty-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1ch;
}

.mint-row {
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1ch;
}

.mint-custom {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1ch;
}

.mint-custom input {
  min-height: 40px;
  width: 6ch;
  font-size: 20px;
  text-align: center;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: var(--font-display);
  font-variation-settings: "ROND" var(--rond);
  font-weight: 800;
}

.mint-pay {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.75ch;
}

.mint-actions {
  margin-top: 16px;
  display: grid;
  gap: 1ch;
}

.mint-actions .bracket,
.mint-actions .bracket-primary {
  width: 100%;
  min-height: 48px;
}

.result-card {
  text-align: center;
}

.result-card .t-xl {
  color: var(--neon);
  line-height: 1;
}

.result-actions {
  display: grid;
  gap: 1ch;
  margin-top: 20px;
}

.result-actions .bracket,
.result-actions .bracket-primary {
  width: 100%;
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
  padding-block: 8px;
}

.marquee {
  width: max-content;
  display: flex;
  animation: marquee var(--marquee-duration, 28s) linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

.marquee span {
  padding-right: 4ch;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.stats {
  padding-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2ch;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: 10px 2ch;
}

.stat .label {
  color: var(--ink-2);
}

.stat .value {
  margin-top: 4px;
}

.section {
  padding-top: 64px;
  scroll-margin-top: 80px;
}

.section h2 {
  margin: 0;
}

.section > p,
.prose {
  color: var(--ink-2);
  margin: 8px 0 24px;
  max-width: 72ch;
}

.steps {
  display: grid;
  gap: 3ch;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 14px 2ch;
  list-style: none;
}

.step h3 {
  margin: 0;
}

.step p {
  color: var(--ink-2);
  margin: 8px 0 0;
}

.stock-grid {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2ch;
  list-style: none;
}

@media (min-width: 640px) {
  .stock-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .stock-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.stock-card {
  display: block;
  padding: 12px 2ch;
  border-radius: 14px;
}

.stock-card:hover {
  opacity: 0.8;
}

.stock-card .name {
  color: var(--ink-2);
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
}

.stock-card .price {
  margin-top: 4px;
}

.note {
  color: var(--ink-2);
  margin-top: 16px;
  font-size: 13px;
  line-height: 20px;
  max-width: 70ch;
}

.note a {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--ink);
}

.odds-stats {
  display: grid;
  gap: 2ch;
}

@media (min-width: 640px) {
  .odds-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

table.data {
  width: 100%;
  min-width: 80ch;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

table.data th,
table.data td {
  text-align: left;
  font-weight: 500;
  padding: 8px 2ch;
  border-top: 1px solid var(--ink-3);
  vertical-align: middle;
}

table.data th:first-child,
table.data td:first-child {
  padding-left: 0;
}

table.data th:last-child,
table.data td:last-child {
  padding-right: 0;
}

table.data th.right,
table.data td.right {
  text-align: right;
}

table.data .prize {
  font-size: 24px;
}

.bar {
  color: var(--ink-3);
  letter-spacing: 0;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.site-footer {
  margin-top: 64px;
}

.footer-grid {
  margin-inline: auto;
  display: grid;
  max-width: 128ch;
  gap: 4ch;
  padding: 40px 3ch;
}

@media (max-width: 640px) {
  .footer-grid {
    padding-inline: 2ch;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 3fr;
  }
}

.footer-brand p {
  color: var(--ink-2);
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 20px;
  max-width: 44ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3ch;
}

@media (min-width: 640px) {
  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-nav h3 {
  margin: 0;
}

.footer-nav ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer-nav li {
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal {
  margin-inline: auto;
  display: flex;
  min-height: 48px;
  max-width: 128ch;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 3ch;
  padding: 12px 3ch;
}

@media (max-width: 640px) {
  .legal {
    padding-inline: 2ch;
  }
}

.legal p {
  color: var(--ink-2);
  margin: 0;
  font-size: 12px;
  line-height: 16px;
}

@media (min-width: 768px) {
  .legal p {
    max-width: 70ch;
  }
}

.built {
  display: flex;
  align-items: center;
  gap: 1ch;
}

.built-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--neon);
  border-radius: 5%;
}

.page-head {
  margin-inline: auto;
  max-width: 128ch;
  padding: 40px 3ch 0;
}

@media (max-width: 640px) {
  .page-head {
    padding-inline: 2ch;
  }
}

.page-head h1 {
  margin: 0;
}

.page-head .lede {
  color: var(--ink-2);
  margin: 12px 0 0;
  max-width: 72ch;
}

.page-body {
  margin-inline: auto;
  max-width: 128ch;
  padding: 32px 3ch 0;
}

@media (max-width: 640px) {
  .page-body {
    padding-inline: 2ch;
  }
}

.faq h2 {
  margin: 40px 0 16px;
  font-size: 20px;
}

.faq h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
}

.faq p,
.faq li {
  color: var(--ink-2);
  max-width: 72ch;
}

.faq a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose h2 {
  margin: 40px 0 12px;
  color: var(--ink);
}

.prose h3 {
  margin: 24px 0 8px;
  color: var(--ink);
}

.prose ul,
.prose ol {
  color: var(--ink-2);
  max-width: 72ch;
}

.status {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.status-pay {
  color: var(--ink);
}

.status-off {
  color: var(--ink-3);
}

.campaign-list {
  display: grid;
  gap: 2ch;
  margin: 24px 0 0;
}

.campaign-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2ch;
  border: 1px solid var(--ink-3);
  padding: 2ch;
}

@media (max-width: 640px) {
  .campaign-card {
    grid-template-columns: 1fr;
  }
}

.campaign-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--neon);
}

.campaign-meta {
  color: var(--ink-2);
  font-size: 12px;
  margin-top: 8px;
}

.tabs {
  display: flex;
  gap: 1ch;
  margin-top: 24px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 14, 8, 0.45);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3ch;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  background: var(--ground);
  border: 1px solid var(--ink);
  max-width: 42ch;
  width: 100%;
  padding: 3ch;
}

.modal h2 {
  margin: 0 0 8px;
}

.wallet-list {
  display: grid;
  gap: 1ch;
  margin-top: 16px;
}

.wallet-list button {
  width: 100%;
  justify-content: space-between;
}

.toast {
  position: fixed;
  right: 2ch;
  bottom: 2ch;
  z-index: 70;
  background: var(--neon);
  color: var(--on-neon);
  border: 1px solid var(--on-neon);
  padding: 1.5ch 2ch;
  display: none;
  max-width: 42ch;
}

.toast.is-on {
  display: block;
}

.profile-tabs {
  display: flex;
  gap: 1ch;
  margin: 24px 0;
  flex-wrap: wrap;
}

.panel {
  display: none;
}

.panel.is-on {
  display: block;
}

.box-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2ch;
  padding: 12px 0;
  border-top: 1px solid var(--ink-3);
}

.empty {
  color: var(--ink-2);
  padding: 24px 0;
}

.back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--ink-2);
}

.back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.actions {
  display: flex;
  gap: 1ch;
  flex-wrap: wrap;
  margin-top: 16px;
}

.show-sm {
  display: none;
}

@media (max-width: 640px) {
  .hide-sm {
    display: none !important;
  }
  .show-sm {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
  }
  .bracket,
  .pick,
  body {
    transition: none;
  }
}
