/* Smart Deck Poker: the app's felt, its green and its type (Futura, with close relatives where it isn't installed). */
:root {
  --felt: #2e5e45;
  --felt-dark: #214733;
  --night: #0f1f17;
  --green: #5cdb7a;
  --text: #ffffff;
  --soft: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.68);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--felt-dark) url("assets/felt.jpg") center / cover;
  color: var(--text);
  font-family: Futura, "Futura PT", "Century Gothic", "Trebuchet MS", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

main {
  flex: 1;
}

/* The logo is the app's, a template whose colour the app sets; on the felt it's white. */
.logo {
  display: block;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Home: the logo, and coming soon. */
.home {
  display: grid;
  place-items: center;
  padding: 48px 20px;
  text-align: center;
}

.home h1 {
  margin: 0;
}

.home .logo {
  width: min(320px, 72vw);
}

.coming-soon {
  margin: 32px 0 0;
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(92, 219, 122, 0.55);
}

/* Privacy policy and terms: a dark panel on the felt, easy to read. */
.doc-header {
  display: flex;
  justify-content: center;
  padding: 24px 20px 16px;
}

.doc-header .logo {
  width: 120px;
}

.doc {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(15, 31, 23, 0.88);
}

.doc h1 {
  margin: 0 0 4px;
  font-size: 1.9rem;
  line-height: 1.2;
}

.doc .updated {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc h2 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
}

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

.doc ul {
  padding-left: 1.2em;
}

.doc li + li {
  margin-top: 6px;
}

footer {
  padding: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

footer nav a {
  margin: 0 10px;
  color: var(--muted);
  text-decoration: none;
}

footer nav a:hover,
footer nav a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

footer p {
  margin: 8px 0 0;
}

@media (max-width: 480px) {
  .doc {
    margin: 0 12px 32px;
    padding: 24px 18px;
  }

  .doc h1 {
    font-size: 1.6rem;
  }
}
