/* SEO phase 1: the stylesheet of the static site pages (deploy/site/*.html, served by deploy/server.js). The colours and
   fonts are the app's (engine/Play-/js/play_browser/src/App.css and index.css); kept generic: phase 2 writes the content
   pages on it (headings, paragraphs, lists, a table, code, a button-like link). */
:root {
  --background: #04060d;
  --bg1: #0a1230;
  --surface: #0a1128;
  --surface-2: #111b3a;
  --border: rgba(128, 170, 255, 0.2);
  --border-strong: rgba(140, 180, 255, 0.48);
  --text: #e3e9ff;
  --muted: rgba(227, 233, 255, 0.6);
  --accent: #4f7dff;
  --accent-strong: #2f58d8;
  --on-accent: #ffffff;
  --triangle: #4fd1a5;
  --circle: #ff6b7a;
  --cross: #8fb3ff;
  --square: #ff8fd8;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", Menlo, "Courier New", monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --focus: 0 0 0 3px rgba(79, 125, 255, 0.6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 80% 40% at 50% -10%, rgba(40, 60, 160, 0.25), transparent 60%), linear-gradient(180deg, var(--bg1), var(--background) 480px);
  background-color: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* header and footer */
.site-header { border-bottom: 1px solid rgba(128, 170, 255, 0.1); background: rgba(3, 4, 10, 0.55); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; border-radius: var(--r-sm); padding: 4px 2px; }
.logo { display: inline-flex; gap: 0.12em; font-weight: 600; line-height: 1; font-size: 15px; }
.triangle { color: var(--triangle); } .circle { color: var(--circle); } .cross { color: var(--cross); } .square { color: var(--square); }
.brand-name { font-size: 14px; font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
main { flex: 1; padding: 32px 0 48px; }
.site-footer { border-top: 1px solid rgba(128, 170, 255, 0.1); color: var(--muted); font-size: 13px; padding: 16px 0 24px; }
.site-footer p { margin: 0; }
/* SEO phase 2: the shared nav (wraps under the name on a narrow screen; the current page has aria-current) and the
   footer's links */
.site-nav { display: flex; flex-wrap: wrap; gap: 2px 4px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 4px 6px; border-radius: var(--r-sm); }
.site-nav a:hover { color: var(--text); background: rgba(128, 170, 255, 0.08); }
.site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.site-footer .footer-links { margin-top: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* text */
h1, h2, h3 { line-height: 1.25; margin: 1.6em 0 0.5em; font-weight: 600; }
h1 { font-size: 30px; margin-top: 0; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p, ul, ol, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin: 0.25em 0; }
a { color: var(--cross); text-underline-offset: 2px; }
a:hover { color: var(--text); }
a:focus-visible { outline: none; box-shadow: var(--focus); }
.muted { color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
img, video, iframe { max-width: 100%; }

/* a table (wide ones scroll inside their box, never the page) */
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wrap table { margin: 0; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }

/* SEO phase 2: keys in a table, the questions and answers, the rights notice, the closing "Play now" */
kbd { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0.05em 0.45em; white-space: nowrap; }
td kbd { white-space: normal; }
.faq h2, .faq h3 { font-size: 18px; margin: 1.4em 0 0.35em; }
.faq h2:first-child, .faq h3:first-child { margin-top: 0.8em; }
.faq p { margin: 0 0 0.8em; color: rgba(227, 233, 255, 0.85); }
.notice { margin-top: 2em; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--muted); font-size: 14px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--border); }
.cta .muted { font-size: 14px; }
main ol > li { margin: 0.5em 0; }

/* a button-like link */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
  padding: 10px 18px; border-radius: var(--r-md); border: 1px solid rgba(140, 180, 255, 0.6);
  color: var(--on-accent); background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}
.btn:hover { color: var(--on-accent); background: linear-gradient(180deg, #6690ff, #3765e6); }
.btn.secondary { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.btn.secondary:hover { background: #18244a; border-color: var(--accent); }

@media (max-width: 520px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .brand-name { font-size: 12px; letter-spacing: 0.16em; }
  .site-nav { margin: 0 -6px; font-size: 13px; }
  th, td { padding: 7px 8px; }
  main { padding: 24px 0 36px; }
}
