:root {
  --acc: #8be28b;
  --glow: rgba(139, 226, 139, .35);
  --bg: #0a0c0b;
  --text: #d8ddd6;
  --text-bright: #eef1ec;
  --muted: #7d877f;
  --muted2: #a9b2a9;
  --path: #9ab8d8;
  --border: #2a312c;
  --border-soft: #232a25;
  --shadow-banner: #2f3832;
  --shadow-thanks: #232a25;
  --thanks-color: #56605a;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--acc);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--bg);
  background: var(--acc);
  text-decoration: none;
}
main a:hover {
  outline: 2px solid var(--acc);
}

::selection { background: var(--acc); color: var(--bg); }

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

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background: repeating-linear-gradient(
    rgba(255, 255, 255, 0.024) 0px,
    rgba(255, 255, 255, 0.024) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ---------- top status bar ---------- */
.termbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--acc);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
}
.termbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 4px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.termtabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.termtag {
  padding: 0 8px;
  background: var(--bg);
  color: var(--acc);
}
.termtabs a {
  color: var(--bg);
  text-decoration: none;
  padding: 0 8px;
}
.termtabs a:hover {
  background: rgba(10, 12, 11, .15);
  color: var(--bg);
  outline: none;
}
.clock {
  padding: 0 8px;
  font-variant-numeric: tabular-nums;
}

/* ---------- layout ---------- */
main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--acc); }

/* ---------- prompt lines ---------- */
.promptline { color: var(--text); }
.puser { color: var(--acc); }
.pcolon { color: var(--muted); }
.ppath { color: var(--path); }
.pdollar { color: var(--muted); }

/* ---------- pixel banners ---------- */
.banner-wrap {
  overflow: auto hidden;
  padding: 8px 0;
}
.pixel-banner {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: clamp(8px, 1.9vw, 17px);
}
.pixel-row { display: flex; }
.pixel-cell {
  flex: 0 0 auto;
  width: 1ch;
  height: 1em;
}

/* ---------- motd quote ---------- */
.termquote {
  border-left: 2px solid var(--acc);
  padding: 4px 0 4px 20px;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.termquote .lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-bright);
}
.termquote p { margin: 0; color: var(--muted2); }

/* ---------- stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 4px 32px;
  max-width: 860px;
}
.stat { display: flex; gap: 12px; }
.stat-key { color: var(--muted); min-width: 13ch; }
.stat-val.accent { font-weight: 600; }

/* ---------- markdown-style heads ---------- */
.md-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.md-h1 {
  color: var(--acc);
  font-weight: 600;
  font-size: 17px;
}
.md-head-spaced { margin-top: 8px; }

/* ---------- criteria ---------- */
.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
}
.criteria-item {
  display: grid;
  grid-template-columns: 5ch minmax(0, 1fr);
  gap: 8px;
}
.criteria-body {
  display: flex;
  flex-direction: column;
}
.criteria-title {
  color: var(--text-bright);
  font-weight: 600;
}

/* ---------- hall of fame table ---------- */
.hof-table { border: 1px solid var(--border); }
.hof-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.hof-col-head {
  display: grid;
  grid-template-columns: 4ch minmax(0, 1fr) auto;
  gap: 16px;
  padding: 10px 16px 6px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hof-col-datename { display: flex; flex-wrap: wrap; column-gap: 24px; }
.hof-col-date { width: 11ch; }
.hof-divider { margin: 0 16px; border-top: 1px solid var(--border); }
.hof-rows { padding: 6px 0 10px; }
.hof-row {
  display: grid;
  grid-template-columns: 4ch minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 9px 16px;
}
.hof-row:hover { background: rgba(255, 255, 255, .025); }
.hof-no { color: var(--muted); }
.hof-datewrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 24px;
  align-items: baseline;
  min-width: 0;
}
.hof-date { width: 11ch; color: var(--path); }
.hof-namewrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
}
.hof-name { color: var(--text-bright); font-weight: 600; font-size: 16px; }
.hof-badge {
  color: var(--bg);
  background: var(--acc);
  font-size: 12px;
  padding: 0 6px;
  font-weight: 600;
}
.hof-profile { font-size: 14px; white-space: nowrap; }

.fine-print { font-size: 13px; margin: 0; }

/* ---------- disclose ---------- */
.sectxt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}
.spacer { height: 10px; }
.kv { display: flex; flex-wrap: wrap; column-gap: 12px; }
.kv .k { color: var(--path); min-width: 12ch; }
.accent-link { color: var(--acc); }

.guideline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 820px;
  margin-top: -4px;
}
.guideline-item {
  display: grid;
  grid-template-columns: 5ch minmax(0, 1fr);
  gap: 8px;
}

.mailline {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.maillink {
  color: var(--text-bright);
  text-decoration: none;
  border-bottom: 1px dashed var(--acc);
}
.maillink:hover {
  color: var(--bg);
  background: var(--acc);
  border-bottom-color: transparent;
}
.cursor { margin-left: 4px; display: inline-flex; }
.cursor::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  background: var(--acc);
  animation: blink 1.1s step-end infinite;
  vertical-align: text-bottom;
}

/* ---------- footer ---------- */
.footer-section { gap: 12px; }
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted2); }

@media (prefers-reduced-motion: reduce) {
  .cursor::before { animation: none; }
}

@media (max-width: 560px) {
  .hof-col-head,
  .hof-row {
    grid-template-columns: 3ch minmax(0, 1fr);
  }
  .hof-col-head span:last-child { display: none; }
  .hof-profile {
    grid-column: 2 / -1;
    margin-top: 2px;
  }
  .hof-col-date, .hof-date { width: auto; }
}
