/* ==========================================================================
   LangX Token — token.langx.io
   Arcade direction: dark ground, scoreboard typography, no market imagery.
   ========================================================================== */

:root {
  --ink: #130900;
  --cream: #fffdf1;
  --yellow: #ffc409;
  --orange: #ff571a;
  --line: rgba(255, 253, 241, 0.22);
  --line-y: rgba(255, 196, 9, 0.2);
  --muted: rgba(255, 253, 241, 0.78);
  --faint: rgba(255, 253, 241, 0.5);
  --gutter: 52px;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--ink);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 253, 241, 0.035) 0 1px,
    transparent 1px 4px
  );
  color: var(--cream);
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.wordmark,
.price,
.bar-value,
.pool-figure strong,
.ratio strong,
.table-show {
  font-family: Bungee, "Trebuchet MS", sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
}

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

a:hover {
  color: var(--orange);
}

strong {
  color: var(--cream);
  font-weight: 700;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
}

.note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--faint);
}

/* --------------------------------------------------------------- header -- */

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  border-bottom: 2px solid rgba(255, 196, 9, 0.35);
}

.wordmark {
  font-size: 22px;
  color: var(--yellow);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-cta {
  border: 2px solid var(--yellow);
  padding: 8px 15px;
}

.nav-cta:hover {
  background: var(--yellow);
  color: var(--ink);
}

/* ----------------------------------------------------------------- hero -- */

#hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px var(--gutter) 44px;
  text-align: center;
}

#hero h1 {
  margin: 0 0 20px;
  font-size: 68px;
  line-height: 0.98;
  color: var(--yellow);
  text-shadow: 0 5px 0 var(--orange), 0 10px 0 rgba(255, 87, 26, 0.22);
}

#hero .lede {
  max-width: 560px;
  margin: 0 auto 14px;
  font-size: 17px;
  color: var(--muted);
}

#hero .footnote {
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: 14px;
  color: var(--faint);
}

.app-link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.app-link-buttons img {
  display: block;
  height: 52px;
  width: auto;
}

.app-link-buttons a {
  transition: transform 0.15s ease;
}

.app-link-buttons a:hover {
  transform: translateY(-3px);
}

/* ---------------------------------------------------------- leaderboard -- */

.token-leaderboard {
  margin-bottom: 46px;
}

.board {
  border: 2px solid var(--yellow);
}

.board-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 22px;
  background: var(--yellow);
  color: var(--ink);
}

.board-bar h1 {
  margin: 0;
  font-size: 19px;
  text-transform: uppercase;
}

.board-period {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.token-leaderboard-table .tr {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 140px;
  gap: 12px;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line-y);
}

.token-leaderboard-table .td code {
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 1px;
  color: rgba(255, 253, 241, 0.6);
}

.token-leaderboard-table .td:last-child {
  text-align: right;
}

/* Top three read as podium places. */
.always-show .tr:nth-child(-n + 3) .td code {
  font-family: Bungee, "Trebuchet MS", sans-serif;
  letter-spacing: 1px;
  color: var(--cream);
}

.always-show .tr:nth-child(-n + 3) .td:nth-child(2) code {
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 16px;
}

.always-show .tr:first-child .td code {
  color: var(--yellow);
}

.always-show .tr:first-child .td:first-child code,
.always-show .tr:first-child .td:last-child code {
  font-size: 24px;
}

.always-show .tr:nth-child(2) .td:first-child code,
.always-show .tr:nth-child(2) .td:last-child code,
.always-show .tr:nth-child(3) .td:first-child code,
.always-show .tr:nth-child(3) .td:last-child code {
  font-size: 21px;
}

.always-show .tr:nth-child(-n + 3) .td:nth-child(2) code {
  color: var(--cream);
}

.can-hide[aria-hidden="true"] {
  display: none;
}

.can-hide .tr:last-child {
  border-bottom: 0;
}

.table-show {
  padding: 13px;
  border-top: 2px solid var(--yellow);
  text-align: center;
  cursor: pointer;
  color: var(--yellow);
  font-size: 13px;
  text-transform: uppercase;
}

.table-show p {
  margin: 0;
  pointer-events: none;
}

.table-show:hover {
  background: var(--yellow);
  color: var(--ink);
}

/* ------------------------------------------------------------- sections -- */

.block {
  padding-top: 46px;
}

.block + .block {
  margin-top: 0;
}

.block h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.1;
  color: var(--yellow);
  text-transform: uppercase;
}

.block h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--yellow);
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  border-top: 2px solid rgba(255, 253, 241, 0.15);
  padding-top: 34px;
}

.prose p,
.prose-lede,
.panel p,
.pool-body p,
.negative p {
  margin: 0 0 14px;
  color: var(--muted);
}

.prose p:last-child,
.panel p:last-child,
.pool-body p:last-child,
.negative p:last-child {
  margin-bottom: 0;
}

.prose-lede {
  max-width: 660px;
  margin-bottom: 22px;
}

.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/*
 * The spend section outgrew the pair grid above. `auto-fit` rather than a hard
 * column count: the number of sinks has changed twice already, and at the
 * narrow end of the desktop range three of these are too cramped to read, so
 * this drops to two — and then to one at the breakpoint below, with the rest
 * of `.cols`.
 */
.cols.cols-flow {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.panel {
  border: 2px solid var(--line);
  padding: 22px 24px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.panel-head h3 {
  margin-bottom: 12px;
}

.price {
  font-size: 22px;
  color: var(--yellow);
}

/* Point values / cosmetics price lists */
.values {
  margin: 0;
}

.values > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 253, 241, 0.2);
}

.values > div:last-child {
  border-bottom: 0;
}

.values dt {
  font-size: 14px;
}

.values dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--yellow);
  white-space: nowrap;
}

/* Streak bonus chart */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 130px;
  margin-top: 18px;
}

.bar {
  flex: 1;
  text-align: center;
}

.bar-value {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--yellow);
}

.bar-fill {
  background: var(--orange);
}

.bar-fill.is-top {
  background: var(--yellow);
}

.bar-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 253, 241, 0.7);
}

/* Daily pool */
.pool {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  border: 2px solid var(--yellow);
  margin-top: 24px;
}

.pool-figure {
  padding: 30px 24px;
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pool-figure strong {
  display: block;
  font-size: 46px;
  line-height: 1;
  color: var(--ink);
}

.pool-figure span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.pool-body {
  padding: 26px 28px;
}

.pool-body p {
  font-size: 15px;
}

/* What this is not */
.negative {
  border: 2px solid var(--orange);
  padding: 26px 30px;
}

.negative h2 {
  margin-bottom: 18px;
  font-size: 17px;
  color: var(--orange);
}

.negative-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 253, 241, 0.85);
}

.negative p {
  border-top: 1px dashed rgba(255, 87, 26, 0.5);
  padding-top: 18px;
  font-size: 14px;
}

/* Returning members */
.ratio {
  margin-top: 18px;
  padding: 18px 20px;
  border: 2px solid var(--yellow);
  text-align: center;
}

.ratio strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: var(--yellow);
}

.ratio span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
}

/* ------------------------------------------------------------ legal -- */

/*
 * privacy.html only. It reuses the section classes above wholesale; these four
 * rules are the difference between a scoreboard and a page of prose — a page
 * title where the hero would be, and a list that reads like the rest of the
 * body copy instead of a browser default.
 */

.legal h1 {
  margin: 0 0 18px;
  font-size: 44px;
  line-height: 1.05;
  color: var(--yellow);
  text-transform: uppercase;
}

.legal .block:first-child {
  padding-top: 56px;
}

.legal .prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
}

.legal .prose li {
  margin-bottom: 8px;
}

/* --------------------------------------------------------------- footer -- */

footer {
  margin-top: 50px;
  border-top: 2px solid rgba(255, 196, 9, 0.35);
  padding: 26px 0 30px;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.copyright {
  margin: 0 0 10px;
  font-family: Bungee, "Trebuchet MS", sans-serif;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--yellow);
}

.disclaimer {
  max-width: 560px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--faint);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.social img {
  display: block;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.social:hover img {
  opacity: 1;
}

/* ----------------------------------------------------------- responsive -- */

@media screen and (max-width: 900px) {
  :root {
    --gutter: 28px;
  }

  #hero h1 {
    font-size: 52px;
  }

  .legal h1 {
    font-size: 34px;
  }

  .split,
  .cols,
  .pool {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .split {
    gap: 20px;
  }

  .pool {
    gap: 0;
  }

  .negative-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-content {
    flex-direction: column;
    gap: 22px;
  }
}

@media screen and (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  #header {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav {
    gap: 16px;
    font-size: 11px;
    letter-spacing: 1px;
  }

  #hero {
    padding-top: 30px;
    padding-bottom: 28px;
  }

  #hero h1 {
    font-size: 40px;
  }

  #hero .lede {
    font-size: 15px;
  }

  .app-link-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .app-link-buttons img {
    height: 46px;
    margin: 0 auto;
  }

  .block h2 {
    font-size: 24px;
  }

  .board-bar {
    padding: 12px 16px;
  }

  .board-bar h1 {
    font-size: 15px;
  }

  .token-leaderboard-table .tr {
    grid-template-columns: 52px minmax(0, 1fr) 82px;
    padding: 11px 16px;
    gap: 8px;
  }

  .token-leaderboard-table .td code {
    font-size: 13px;
  }

  .always-show .tr:first-child .td:first-child code,
  .always-show .tr:first-child .td:last-child code {
    font-size: 18px;
  }

  .always-show .tr:nth-child(2) .td:first-child code,
  .always-show .tr:nth-child(2) .td:last-child code,
  .always-show .tr:nth-child(3) .td:first-child code,
  .always-show .tr:nth-child(3) .td:last-child code {
    font-size: 16px;
  }

  .panel,
  .pool-body,
  .negative {
    padding: 18px;
  }

  .pool-figure strong {
    font-size: 32px;
  }

  .negative-list {
    gap: 10px 14px;
    font-size: 12px;
  }

  /* Stack label above price so long cosmetic names don't wrap awkwardly. */
  .values > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .values dt {
    font-size: 13px;
  }

  .values dd {
    font-size: 14px;
  }
}
