/* Release Masters — the public site's one stylesheet.
   Shared by the landing page (/) and the leaderboard (/rm/lb/).

   Design system is fixed, not chosen here: it is the app's, from
   native/.../ui/Common.kt — dark ink, one acid accent, coral strictly for
   urgency, Anton display + Space Grotesk body, and square-cut everything
   (no border-radius appears anywhere in this file, on purpose).

   Space Grotesk ships as a variable font (wght 300-700), so one file covers
   every weight — the three near-identical .ttf copies the admin panel loads
   are all the same variable font defaulting to Light. */

@font-face {
  font-family: Anton;
  src: url(fonts/anton.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url(fonts/spacegrotesk.ttf) format('truetype-variations');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --acid:     #C7F131;  /* actions, live states, links */
  --signal:   #F4553F;  /* the closing clock, errors — urgency only */
  --ink:      #131511;  /* page ground, tinted green */
  --panel:    #1D201A;  /* grouped surface, form fields */
  --hairline: #2A2E26;  /* row and section rules */
  --edge:     #3A3F34;  /* outlines on quiet controls */
  --dim:      #99A18B;  /* secondary text */
  --chalk:    #F2F4EC;  /* primary text */

  --display: Anton, 'Arial Narrow', sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;

  /* Type scale, 1.3-ish between steps. The hero sits far above the top step
     on purpose — the gap is the hierarchy. */
  --t-xs:   0.72rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-lg:   1.3rem;
  --t-xl:   1.75rem;
  --t-2xl:  2.6rem;
  --t-hero: clamp(2.5rem, 11.5vw, 7.5rem);

  /* Tight within a group, wide between sections. The ratio is the point. */
  --s1: 0.5rem;
  --s2: 1.25rem;
  --s3: 2.25rem;
  --s4: 4.5rem;
  --s5: 8rem;

  --measure: 64rem;
  --prose: 62ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font: 300 var(--t-base)/1.6 var(--body);
  overflow-x: hidden;
}

a { color: var(--acid); }

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 1px;
}

/* Small caps-tracked labels: nav, table heads, eyebrows, badges. The one
   repeated typographic device on the site. */
.mast nav a, .foot nav a, th, .eyebrow, .badge, .st, .crumb, .legend {
  text-transform: uppercase;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.11em;
}

/* ---------------------------------------------------------------- masthead */

.mast {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  flex-wrap: wrap;
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--s3) var(--s2) var(--s2);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  z-index: 1;
}

.wordmark {
  font-family: var(--display);
  font-size: var(--t-lg);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--chalk);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--acid); }
.wordmark.small { font-size: var(--t-base); }

/* min-width:0 matters: as a flex item the nav would otherwise claim its
   max-content width, push the masthead past the viewport, and drag every
   section on the page out with it. */
.mast nav { display: flex; gap: var(--s3); flex-wrap: wrap; min-width: 0; flex: 1 1 auto; }
.mast nav a {
  color: var(--dim);
  text-decoration: none;
  padding-bottom: 0.3em;
}
.mast nav a:hover { color: var(--chalk); }
.mast nav a.on { color: var(--acid); border-bottom: 2px solid var(--acid); }

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

.hero {
  position: relative;
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--s4) var(--s2) var(--s5);
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* The signature mark, straight out of the app's FlightPath(): one acid
   arrow-flight arc. Full-bleed, behind everything, drawn once on load. It is
   the only decoration on the page — the app decorates nothing else either. */
.flight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  /* The arrow leaves the bow once, left to right. A clip wipe does this
     without depending on path length — stroke dashes are measured in screen
     space under a non-uniform scale and break into segments. */
  clip-path: inset(0 100% 0 0);
  animation: loose 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
@keyframes loose { to { clip-path: inset(0 0 0 0); } }
/* The viewBox is a 0-100 percentage grid stretched onto the hero box
   (preserveAspectRatio="none"), so the flight always crosses the same part of
   the composition — under the headline, up through the call to action — at any
   viewport. non-scaling-stroke keeps the line an even weight despite that
   stretch; without it the scaled viewBox turns the stroke into a slab. */
.flight path {
  fill: none;
  stroke: var(--acid);
  stroke-opacity: 0.1;
  vector-effect: non-scaling-stroke;
  stroke-width: clamp(10px, 1.6vw, 24px);
  stroke-linecap: round;
}

.eyebrow {
  color: var(--acid);
  margin: 0 0 var(--s2);
}
.eyebrow.urgent { color: var(--signal); }
.eyebrow.quiet { color: var(--dim); }

h1.headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-hero);
  line-height: 0.92;  /* Anton's caps are tall — tighter than this collides */
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  max-width: 14ch;
}
/* The product tagline breaks where its <br> says, so it must not also wrap. */
h1.headline.pitch { max-width: none; }

.lede {
  color: var(--dim);
  font-size: var(--t-lg);
  max-width: var(--prose);
  margin: var(--s2) 0 0;
}

.also {
  color: var(--dim);
  font-size: var(--t-sm);
  margin: var(--s1) 0 0;
}
.also a { color: var(--dim); }
.also a:hover { color: var(--chalk); }

/* The single call to action. Nothing else on the page is a filled button. */
.cta-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: var(--s3) 0 0;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  background: var(--acid);
  border: 1.5px solid var(--chalk);
  color: var(--ink);
  font: 700 var(--t-sm) var(--body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 2em;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1),
              color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cta:hover { background: var(--chalk); color: var(--ink); }

/* Pre-launch: no Play listing yet, so the action is stated, not faked. */
.cta.pending {
  background: none;
  border: 1px solid var(--edge);
  color: var(--dim);
  cursor: default;
}
.cta.pending:hover { background: none; color: var(--dim); }

/* Where the arrow flight lands — the open target ring the arc ends in. */
.ring { flex: none; }
.ring circle { fill: none; stroke: var(--acid); stroke-opacity: 0.45; stroke-width: 5; }

.micro {
  color: var(--dim);
  font-size: var(--t-sm);
  margin: var(--s2) 0 0;
}

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

.band {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--s4) var(--s2);
  border-top: 1px solid var(--hairline);
}

h2.sec {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-xl);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 var(--s2);
}

.legend {
  color: var(--acid);
  margin: 0 0 var(--s1);
}

.note {
  color: var(--dim);
  font-size: var(--t-sm);
  max-width: var(--prose);
}

.more { display: inline-block; margin-top: var(--s2); font-size: var(--t-sm); }

/* ---------------------------------------------------------------- tables */

.wrap { overflow-x: auto; }

table {
  border-collapse: collapse;
  width: 100%;
  margin: var(--s1) 0 var(--s2);
}
td, th {
  border-bottom: 1px solid var(--hairline);
  padding: 0.55em 0.9em 0.55em 0;
  text-align: left;
  font-size: var(--t-sm);
  vertical-align: baseline;
}
th { color: var(--dim); }
td em { color: var(--dim); font-style: normal; }

td.rank {
  font-family: var(--display);
  font-size: var(--t-lg);
  color: var(--dim);
  width: 2em;
}
tr.top td.rank { color: var(--acid); }
td.score { font-weight: 700; white-space: nowrap; }
td.score em { font-weight: 300; }
td.num { white-space: nowrap; }
td.name { min-width: 12em; }

img.flag {
  height: 0.85em;
  vertical-align: -0.06em;
  border: 1px solid var(--hairline);
  margin-right: 0.45em;
}
span.tag { color: var(--dim); font-size: 0.72em; font-weight: 700; letter-spacing: 0.04em; }
span.sub { color: var(--dim); font-size: 0.82em; }

.badge {
  display: inline-block;
  border: 1px solid var(--edge);
  color: var(--dim);
  padding: 0.1em 0.6em;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.badge.ok { border-color: var(--acid); color: var(--acid); }
.badge.tier { border-color: var(--chalk); color: var(--chalk); }
.badge.x { border-color: var(--acid); color: var(--acid); }

.st { white-space: nowrap; letter-spacing: 0.09em; }
.st.open { color: var(--acid); }
.st.closed { color: var(--dim); }
.st.upcoming { color: var(--chalk); }

.done { color: var(--acid); font-weight: 700; }

/* ---------------------------------------------------------------- how it works

   A real sequence — the round happens in this order and the order matters, so
   it is numbered. The numeral borrows the leaderboard's rank type: Anton, dim,
   sitting in its own left column. */

.steps { display: grid; gap: var(--s3); margin-top: var(--s3); }
.step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--s2);
  align-items: baseline;
  border-top: 1px solid var(--hairline);
  padding-top: var(--s2);
}
.step .n {
  font-family: var(--display);
  font-size: var(--t-2xl);
  line-height: 0.8;
  color: var(--dim);
}
.step h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-lg);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.35em;
}
.step p { margin: 0; color: var(--dim); max-width: var(--prose); }

/* ---------------------------------------------------------------- prose */

.trust p {
  max-width: var(--prose);
  margin: 0 0 var(--s2);
}
.trust p.lead { color: var(--chalk); font-size: var(--t-lg); }
.trust p:not(.lead) { color: var(--dim); }

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

.foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--s4) var(--s2) var(--s5);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2) var(--s3);
}
.foot nav { display: flex; gap: var(--s3); flex-wrap: wrap; min-width: 0; }
.foot nav a { color: var(--dim); text-decoration: none; }
.foot nav a:hover { color: var(--chalk); }
.foot .note { flex-basis: 100%; margin: var(--s2) 0 0; }

/* ---------------------------------------------------------------- board page */

.crumb { margin: var(--s2) 0 0; }
.crumb a { color: var(--dim); text-decoration: none; }
.crumb a:hover { color: var(--chalk); }

.board { max-width: var(--measure); margin: 0 auto; padding: var(--s4) var(--s2) var(--s5); }

h1.ev {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--t-2xl);
  line-height: 1;
  letter-spacing: 0.015em;
  margin: 0 0 0.15em;
}
.board h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--t-xl);
  letter-spacing: 0.02em;
  margin: var(--s3) 0 var(--s1);
}
p.meta { color: var(--dim); margin: 0.2em 0 var(--s3); }
tr.unranked td { opacity: 0.55; }
tr.unranked td.hold { opacity: 1; }

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

@media (max-width: 40rem) {
  .mast { gap: var(--s2); padding-top: var(--s2); }
  .mast nav { gap: var(--s2); }
  .hero { padding-top: var(--s3); padding-bottom: var(--s4); min-height: 0; }
  .step { grid-template-columns: 2.5rem 1fr; gap: var(--s1) var(--s2); }
  .step .n { font-size: var(--t-xl); }
  .cta { width: 100%; text-align: center; }
  .ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .flight { animation: none; clip-path: none; }
  .cta { transition: none; }
}
