/* Shared by the landing page and the two link pages. The background matches the app's own
   (expo.backgroundColor in app.json) so arriving from a shared link doesn't feel like leaving. */
:root {
  --bg: #0b0f1f;
  --panel: #151b33;
  --line: #243054;
  --text: #f2f5ff;
  --dim: #9aa6c8;
  --gold: #ffc857;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
}

main {
  width: 100%;
  max-width: 420px;
}

.mark {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin: 0 0 28px;
}

h1 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 8px;
  /* A username or squad name is arbitrary text and can be long with no spaces in it. */
  overflow-wrap: anywhere;
}

.sub {
  color: var(--dim);
  margin: 0 0 28px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  margin-bottom: 24px;
}

.handle {
  font-size: 22px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

a.btn {
  display: block;
  padding: 15px 18px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  color: var(--text);
}

a.btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #241a00;
}

footer {
  color: var(--dim);
  font-size: 13px;
  margin-top: 26px;
}

footer a {
  color: var(--dim);
}

/* Long-form pages (the privacy policy) read top to bottom, so they drop the centred card layout. */
body:has(main.doc) {
  display: block;
  text-align: left;
}

main.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 0 48px;
}

main.doc .mark a {
  color: inherit;
  text-decoration: none;
}

main.doc h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 36px 0 8px;
}

main.doc h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 22px 0 4px;
}

main.doc p,
main.doc li {
  color: var(--dim);
}

main.doc li {
  margin-bottom: 6px;
}

main.doc strong {
  color: var(--text);
}

main.doc a {
  color: var(--gold);
}

@media (prefers-color-scheme: light) {
  /* The app is dark-only (userInterfaceStyle), so the page stays dark to match it rather than
     inventing a light theme the app has no counterpart for. */
}
