@font-face {
  font-family: "Minecraft";
  src: url("./assets/Minecraft.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #dcd8d0;
  --desktop: #d4cfc6;
  --panel: #e8e4dc;
  --panel-2: #efebe3;
  --chrome: #ddd8cf;
  --ink: #000000;
  --ink-soft: #111111;
  --faint: #333333;
  --hi: #5fcb88;
  --hi-bright: #7fe0a4;
  --hi-dim: #3a8a5c;
  --on-hi: #000000;
  --down: #c62828;
  --line: #c4bfb5;
  --line-strong: #111111;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --pixel: "Minecraft", ui-monospace, monospace;
  --pad: clamp(16px, 3vw, 28px);
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 14px 36px rgba(40, 36, 28, 0.14);
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.desktop-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 12% 8%, rgba(95, 203, 136, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 85%, rgba(95, 203, 136, 0.07), transparent 50%),
    linear-gradient(180deg, #e4dfd6 0%, var(--bg) 42%, #d0cbc2 100%);
}

.desktop-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

a {
  color: var(--hi);
  text-decoration: none;
}

a:hover {
  color: #000;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: #000;
  background: rgba(95, 203, 136, 0.22);
  padding: 1px 5px;
}

strong {
  font-weight: 700;
  color: inherit;
}

/* TICKER */
.ticker {
  position: relative;
  z-index: 40;
  overflow: hidden;
  height: 32px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(232, 228, 220, 0.9);
}

.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding: 7px 0;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
  color: var(--hi);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* MENUBAR */
.menubar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px var(--pad);
  background: rgba(220, 216, 208, 0.94);
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  backdrop-filter: blur(12px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-link img {
  width: 26px;
  height: 26px;
  image-rendering: pixelated;
}

.word {
  font-family: var(--pixel);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: 8px;
}

.nav-links a {
  color: #000;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--hi);
}

.cmd-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.navlink,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #111;
  background: var(--panel-2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.navlink:hover,
.btn:hover {
  border-color: #111;
  color: var(--ink);
  background: #f0f0ec;
}

.navlink.solid,
.btn.solid {
  background: var(--hi);
  border-color: #111;
  color: var(--on-hi);
}

.navlink.solid:hover,
.btn.solid:hover {
  background: var(--hi-bright);
  border-color: #111;
  color: var(--on-hi);
}

.btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.btn.mega {
  min-height: 54px;
  padding: 0 28px;
  font-size: 16px;
}

/* DESKTOP LAYOUT */
.desktop,
.footer-win {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.desktop {
  display: grid;
  gap: 20px;
  padding: 24px 0 28px;
}

.footer-win {
  margin-bottom: 40px;
}

/* WINDOW SHELL */
.window {
  background: var(--panel);
  color: var(--ink);
  border: 2px solid var(--line-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.win-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--chrome);
  border-bottom: 2px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.win-dots {
  display: inline-flex;
  gap: 5px;
}

.win-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #111;
  display: block;
}

.win-dots i:nth-child(1) {
  background: #ff5f7a;
}
.win-dots i:nth-child(2) {
  background: #f8d008;
}
.win-dots i:nth-child(3) {
  background: var(--hi);
}

.win-title {
  color: var(--ink);
}

.win-meta {
  margin-left: auto;
  color: var(--faint);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.win-meta.live {
  color: var(--ink-soft);
}

.win-body {
  padding: 22px;
  background: var(--panel-2);
}

.win-body.tight {
  padding: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #999;
  display: inline-block;
}

.live-dot.on {
  background: var(--hi);
  box-shadow: 0 0 0 3px rgba(95, 203, 136, 0.25);
  animation: blink 1.4s steps(1) infinite;
}

/* HERO */
.hero-board {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 960px) {
  .hero-board {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1.05fr);
    min-height: min(72vh, 640px);
  }
}

.hero-intro {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero-intro .win-chrome {
  flex-shrink: 0;
}

.hero-intro .win-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  padding: 28px 26px 36px;
  scrollbar-width: thin;
  scrollbar-color: #bbb #f5f5f5;
}

.kicker {
  margin: 0 0 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.brand {
  margin: 0 0 14px;
  font-family: var(--pixel);
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  color: var(--ink);
  font-weight: 400;
}

.lede {
  margin: 0 0 26px;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.65;
}

.lede.tight {
  margin-bottom: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.token-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #e6e2da;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.token-copy:hover {
  background: #ddd8cf;
  border-color: #111;
}

.token-copy:focus-visible {
  outline: 2px solid var(--hi);
  outline-offset: 2px;
}

.token-copy-label {
  flex-shrink: 0;
  padding: 2px 7px;
  border: 1px solid #111;
  background: var(--hi);
  color: var(--on-hi);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.token-copy-addr {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  word-break: break-all;
}

.token-copy-hint {
  flex-shrink: 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
}

.token-copy.is-copied .token-copy-hint {
  color: var(--hi);
  font-weight: 700;
}

.hero-readme {
  margin: auto 0 0;
  padding-top: 22px;
  padding-bottom: 2px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
  flex-shrink: 0;
}

.hero-intro .btn {
  border-color: #111;
  color: var(--ink);
}

.hero-intro .btn:hover {
  background: #111;
  color: #fff;
}

.hero-intro .btn.solid {
  background: var(--hi);
  border-color: #111;
  color: var(--on-hi);
}

.hero-intro .btn.solid:hover {
  background: var(--hi-bright);
  color: var(--on-hi);
}

/* CALLOUTS WINDOW */
.hero-term {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.term-screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 14px !important;
  gap: 0;
}

.term-prompt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 10px;
}

.term-log {
  flex: 0 1 auto;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  max-height: 240px;
  scrollbar-width: thin;
  scrollbar-color: #bbb #f5f5f5;
}

.term-line {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  background: #e6e2da;
}

.term-line.dim {
  color: var(--faint);
  grid-template-columns: 1fr;
  border-style: dashed;
  font-family: var(--mono);
  font-size: 13px;
}

.term-line img.avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid #222;
  background: #eee;
}

.term-line .body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.term-line .meta {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.3;
}

.term-line .who {
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}

.term-line .when {
  color: var(--faint);
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

.term-line .thesis {
  color: #000;
  font-size: 13.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.term-line .mult {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--hi);
  white-space: nowrap;
  padding-top: 2px;
}

.term-line .mult.down {
  color: var(--down);
}

.term-more {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  width: 100%;
  display: inline-block;
  flex-shrink: 0;
}

.term-more:hover {
  color: var(--hi);
}

.term-allow {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.term-allow .term-prompt {
  margin-bottom: 8px;
  flex-shrink: 0;
}

.allow-log {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 140px;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #bbb #f5f5f5;
}

.allow-empty {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 10px;
  border: 1px dashed var(--line);
}

.allow-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #e6e2da;
  font-family: var(--mono);
  font-size: 12px;
}

.allow-row .addr {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.allow-row .who {
  color: var(--faint);
  white-space: nowrap;
}

/* MECHANISM */
.mech-row {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) and (max-width: 1099px) {
  .mech-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .mech-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.mech-cell {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  background: #e6e2da;
  min-height: 100%;
  height: 100%;
}

.mech-label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.mech-cell h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.mech-cell p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.mech-cell .chip {
  margin-top: auto;
  align-self: flex-start;
}

.mech-cell a {
  color: var(--hi);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mech-cell a:hover {
  color: #000;
}

.mech-cell a.chip {
  color: var(--on-hi);
  text-decoration: none;
}

.mech-cell a.chip:hover {
  color: var(--on-hi);
  background: var(--hi-bright);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid #111;
  color: var(--on-hi);
  background: var(--hi);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.chip.img {
  padding: 2px;
  background: var(--panel-2);
}

.chip.img img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* STATS */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

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

.stat {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  background: var(--panel-2);
}

@media (min-width: 860px) {
  .stat:nth-child(4n) {
    border-right: 0;
  }
}

.stat-k {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.stat-v {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

/* FULL FEED */
.panel-note {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.panel-note.center {
  text-align: center;
  margin: 0;
}

.error {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #7a1020;
  background: #ffe8ec;
  border: 1px solid #ffb3c0;
}

.callout-feed {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .callout-feed {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.callout-empty {
  grid-column: 1 / -1;
  padding: 36px 14px;
  text-align: center;
  color: var(--faint);
  border: 1px dashed var(--line);
}

.callout-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #e6e2da;
  transition: border-color 0.15s var(--ease);
}

.callout-card:hover {
  border-color: #111;
}

.callout-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.callout-top img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 1px solid #222;
  background: #eee;
}

.callout-top .who {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.callout-top .when {
  font-size: 12px;
  color: var(--faint);
  font-family: var(--mono);
}

.callout-thesis {
  margin: 0;
  flex: 1;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.token-box {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--panel-2);
  text-decoration: none;
}

.token-box:hover {
  border-color: #111;
  color: inherit;
}

.token-box img {
  width: 28px;
  height: 28px;
  object-fit: cover;
}

.token-box .name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.token-box .meta {
  font-size: 11px;
  color: var(--faint);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.token-box .mult {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--hi);
}

.token-box .mult.down {
  color: var(--down);
}

/* POOMPA */
.led-panel {
  text-align: center;
  padding: 28px 12px 24px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 1px 1px, rgba(17, 17, 17, 0.08) 1px, transparent 1.5px),
    #fafafa;
  background-size: 6px 6px, auto;
}

.led-line {
  margin: 0;
  font-family: var(--pixel);
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.25;
  color: var(--ink);
}

.led-sub {
  margin: 14px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

.char-grid figure {
  margin: 0;
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.char-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #111;
  display: block;
}

.char-grid figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 3px 8px;
  background: var(--hi);
  color: var(--on-hi);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  border-top: 1px solid #111;
  border-right: 1px solid #111;
}

/* TAX */
.tax-board {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 780px) {
  .tax-board {
    grid-template-columns: 1.35fr 0.85fr;
  }
}

.tax-board h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

.tax-meter {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px 16px;
  border: 2px solid #111;
  background: #e6e2da;
}

.tax-big {
  font-family: var(--pixel);
  font-size: clamp(36px, 6vw, 52px);
  color: var(--ink);
}

.tax-sub {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.tax-bar {
  width: 100%;
  height: 12px;
  margin-top: 10px;
  border: 1px solid #111;
  background: var(--panel-2);
  overflow: hidden;
}

.tax-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--hi);
}

/* BUY / FOOTER */
.buy-body {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 36px 22px !important;
  text-align: center;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--hi);
  font-weight: 600;
  font-size: 13px;
}

.footer-links a:hover {
  color: #000;
}

.readme-body {
  padding: 20px 22px 24px !important;
  background: #ebe7df;
}

.readme {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
}

.readme a {
  color: var(--hi);
  font-weight: 600;
  text-decoration: none;
}

.readme a:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.35;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .desktop {
    width: min(100% - 20px, var(--max));
    gap: 14px;
    padding-top: 16px;
  }

  .win-body {
    padding: 16px;
  }

  .hero-intro .win-body {
    min-height: 0;
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
