/* Colours match the game's title menu. */
:root {
  --ink: #0a0a12;
  --cyan: #16b4d8;
  --soft: rgba(10, 10, 18, 0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #fafafc;
  color: var(--ink);
  font: 600 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 420px;
  margin: 0 auto;
  padding: max(48px, env(safe-area-inset-top)) 24px 48px;
  text-align: center;
}

h1 { margin: 0; font-size: 44px; font-weight: 800; letter-spacing: 0.5px; }
.sub { margin: 4px 0 0; font-weight: 700; }
h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
p { margin: 0 0 24px; color: var(--soft); }

.rule { position: relative; height: 2px; margin: 22px auto 30px; width: 70%; background: rgba(10, 10, 18, 0.2); }
.rule span {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px;
  background: #b9e8f3; border: 2.5px solid var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 22px rgba(22, 180, 216, 0.55);
}

.pill {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 56px; margin: 0 0 14px;
  border: 3px solid var(--ink); border-radius: 28px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 19px; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: transform 0.08s;
}
.pill:active { transform: scale(0.97); }
.pill:disabled { opacity: 0.5; }
.pill svg { width: 22px; height: 22px; flex: none; }
.pill.apple { background: #000; color: #fff; border-color: #000; }

body.danger h2 { color: #c0392b; }

.spinner {
  width: 44px; height: 44px; margin: 12px auto 18px;
  border: 4px solid rgba(10, 10, 18, 0.15); border-top-color: var(--cyan);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Legal and support pages. */
main.doc { max-width: 640px; }
.doc h2 { margin: 32px 0 8px; text-align: left; font-size: 22px; }
.doc h3 { margin: 18px 0 4px; text-align: left; font-size: 18px; font-weight: 800; }
.doc p { margin: 0 0 14px; text-align: left; font-weight: 500; }
.doc .date { text-align: center; font-weight: 600; }
.doc .sub { margin: 4px 0 0; text-align: center; font-weight: 700; color: var(--ink); }
.doc .contact .pill { width: auto; padding: 0 28px; display: inline-flex; }
.doc .contact { text-align: center; }
.doc a { color: var(--ink); }

.legal { margin: 22px 0 0; font-size: 14px; }
.doc .back { margin-top: 32px; }
.legal a { color: var(--soft); }
