/* The look of the game's web pages: the same sunset and the same chunky
   type as the game. Colours match app/lib/config/theme.dart. */
:root {
  --ink: #1b1b2f;
  --paper: #fff8f0;
  --accent: #ffd166;
  --safe: #06d6a0;
  --danger: #ef476f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: var(--paper);
  background: linear-gradient(180deg, #3a1c71 0%, #d76d77 55%, #ffaf7b 100%)
    fixed;
}

main {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

h1 {
  margin: 0 0 8px;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow:
    -3px -3px 0 var(--ink),
    3px -3px 0 var(--ink),
    -3px 3px 0 var(--ink),
    3px 3px 0 var(--ink),
    0 5px 0 var(--ink);
}

h1 span {
  display: block;
  color: var(--accent);
}

.tagline {
  margin: 0 0 24px;
  font-size: 17px;
}

.panel {
  margin: 0 0 16px;
  padding: 20px;
  border: 2px solid rgba(255, 248, 240, 0.25);
  border-radius: 24px;
  background: rgba(27, 27, 47, 0.72);
}

.panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.panel p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 248, 240, 0.8);
}

.panel p:last-child {
  margin-bottom: 0;
}

.code {
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 248, 240, 0.12);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.button {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--accent);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
}

.button.safe {
  background: var(--safe);
}

.button + .button {
  margin-top: 10px;
}

.small {
  font-size: 13px;
  color: rgba(255, 248, 240, 0.85);
}

.small a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* Pages of text: the privacy policy and support. */
main.page {
  max-width: 640px;
}

body:has(main.page) {
  align-items: flex-start;
}

.panel.text {
  text-align: left;
}

.panel.text h3 {
  margin: 20px 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
}

.panel.text ul {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 248, 240, 0.8);
}

.panel.text li + li {
  margin-top: 6px;
}

.panel a,
.footer a {
  color: var(--accent);
}

.note {
  font-size: 13px;
}

.footer {
  font-size: 14px;
}
