@import url("https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&display=swap");

:root {
  --bg: #020b24;
  --bg-glow: #0a2f24;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.14);
  --blue: #0065ff;
  --red: #fc1410;
  --amber: #ffaa01;
  --green: #30bc01;
  --max: 28rem;
  --max-doc: 42rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Teko", "Segoe UI", sans-serif;
  font-weight: 500;
  color: var(--ink);
  /* App menu navy — no warm/brown tones */
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 50% -10%, rgba(0, 101, 255, 0.2) 0%, transparent 58%),
    radial-gradient(700px 480px at 85% 100%, rgba(0, 80, 180, 0.12) 0%, transparent 55%);
  background-attachment: fixed;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

a {
  color: var(--amber);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.wrap--doc {
  width: min(100% - 2rem, var(--max-doc));
}

/* —— Home hero —— */
.home {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}

.home-logo {
  width: min(88vw, 22rem);
  height: auto;
  aspect-ratio: 1024 / 576;
  object-fit: contain;
  display: block;
  margin: 0 auto 1.1rem;
}

.home-blurb {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 3.8vw, 1.45rem);
  font-weight: 500;
  color: var(--muted);
  max-width: 22rem;
}

.home-rules {
  display: inline-block;
  margin: 0 0 1.75rem;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 101, 255, 0.45);
  padding-bottom: 0.1rem;
}

.home-rules:hover {
  color: #4d8fff;
  border-bottom-color: #4d8fff;
}

.home-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.35rem;
  text-decoration: none;
  color: inherit;
  cursor: default;
  opacity: 0.92;
}

.home-play img {
  width: min(72vw, 11.5rem);
  height: auto;
  aspect-ratio: 646 / 250;
  object-fit: contain;
  display: block;
  filter: grayscale(0.15);
}

.home-play-note {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-version {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--faint);
}

.home-enjoy {
  margin: 0 0 2.5rem;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(0, 101, 255, 0.35);
}

/* —— Doc pages —— */
.doc-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.doc-head a:has(.home-logo) {
  display: inline-block;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  margin: 0;
}

.doc-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--muted);
}

.doc-nav a:hover,
.doc-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: 0.05em;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1.6rem 0 0.45rem;
  color: var(--amber);
}

p,
li {
  color: var(--ink);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  letter-spacing: normal;
  line-height: 1.55;
  font-size: 0.98rem;
}

ul {
  padding-left: 1.2rem;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  letter-spacing: normal;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.95rem;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  letter-spacing: normal;
}

th,
td {
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

code {
  font-size: 0.9em;
  color: var(--amber);
}

/* —— Footer —— */
.footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.95rem;
  width: 100%;
  text-align: center;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 0.45rem;
}

.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-sep {
  color: var(--line);
  margin: 0 0.15rem;
}

.home .footer {
  margin-top: 0;
  max-width: var(--max);
}
