/* Floodlit styles shared by the static pages: rules, support, privacy, terms. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/fonts/space-grotesk-latin-wght-normal.woff2) format("woff2-variations");
}

:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --bg-raise: #10141c;
  --card: #131822;
  --line: rgba(154, 167, 189, 0.16);
  /* Referenced by the card hover border; was undefined and fell back to currentColor. */
  --line-strong: rgba(154, 167, 189, 0.3);
  --text: #eef2f7;
  --text-2: #c2cad7;
  --text-3: #9aa5b5;
  --accent: #c9f24b;
  --accent-ink: #161d06;
  --accent-soft: rgba(201, 242, 75, 0.12);
  --green: #4ade80;
  --red: #fb6f5f;
  --gold: #fbc63d;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(1100px 540px at 50% -180px, var(--accent-soft), transparent 64%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

.top,
main,
body > footer {
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  padding-inline: 18px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding-top: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand .mark {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(201, 242, 75, 0.25);
}

.brand-text {
  display: grid;
  line-height: 1.3;
}

.brand-text strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text small {
  color: var(--text-3);
  font-size: 0.74rem;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
}

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-3);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.top nav a:hover {
  color: var(--accent);
}

.top nav a.play {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
}

main {
  padding-top: 34px;
  padding-bottom: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 14px;
  padding: 1px 12px;
  border: 1px solid rgba(201, 242, 75, 0.35);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3 {
  margin: 18px 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
}

p,
li {
  color: var(--text-2);
}

strong {
  color: var(--text);
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.meta {
  margin-top: 0;
  color: var(--text-3);
  font-size: 0.9rem;
}

.lede {
  font-size: 1.07rem;
}

section {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 22px;
}

.tldr {
  border: 1px solid rgba(201, 242, 75, 0.4);
  border-radius: 14px;
  background: var(--accent-soft);
  padding: 16px 18px;
  margin: 20px 0 4px;
}

.tldr p {
  margin: 0;
}

.tldr strong {
  color: var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.94rem;
}

th,
td {
  text-align: left;
  padding: 9px 12px;
  border: 1px solid rgba(154, 167, 189, 0.2);
  color: var(--text-2);
}

th {
  color: var(--text);
  background: rgba(154, 167, 189, 0.08);
  font-family: var(--font-display);
  font-weight: 600;
}

.numbers {
  font-variant-numeric: tabular-nums;
}

.ok {
  color: var(--green);
  font-weight: 700;
}

.bust {
  color: var(--red);
  font-weight: 700;
}

.win {
  color: var(--gold);
  font-weight: 700;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(201, 242, 75, 0.25);
}

body > footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
  padding-bottom: 36px;
  font-size: 0.9rem;
}

body > footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-3);
  font-weight: 600;
  text-decoration: none;
}

body > footer a:hover {
  color: var(--accent);
}

.foot-note {
  color: var(--text-3);
}

/* Language picker: same design as the app topbar (flag + code trigger, panel
   with flags and native names), built on details/summary so it works without
   JavaScript; the inline script only adds outside-click and Escape closing. */
.langs {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}

.lang-select {
  position: relative;
}

.lang-select > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s, border-color 0.2s;
}

.lang-select > summary::-webkit-details-marker {
  display: none;
}

.lang-select > summary:hover,
.lang-select[open] > summary {
  color: var(--text);
  border-color: var(--line-strong);
}

.lang-select .chev {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.lang-select[open] .chev {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.lang-code {
  letter-spacing: 0.04em;
}

.lang-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 178px;
  display: grid;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg-raise);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.32), 0 18px 48px rgba(0, 0, 0, 0.36);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.lang-option:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.lang-option[data-active="true"] {
  color: var(--accent);
}

.lang-option .check {
  margin-left: auto;
}

.lang-select .flag {
  flex: none;
  border-radius: 2px;
}
