/* The website's own pages (/testing, /about, /privacy). Not used by any game screen.
   Same brand colours as style.css: Jet Black, Card Cream, Jackpot Gold, Lucky Red, Felt Green, Chip Silver. */
:root {
  --bg: #121317;
  --panel: #1b1d22;
  --panel-2: #24272e;
  --line: #34373f;
  --input: #0b0c0f;
  --text: #fff8ec;
  --muted: #aeb4be;
  --silver: #c9ced6;
  --gold: #f5c542;
  --red: #d7263d;
  --green: #1e9e5a;
  --danger: #ff6b6b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.6 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 110% 420px at 50% 0%, rgba(215, 38, 61, 0.28), transparent 75%),
    var(--bg);
  display: flex;
  flex-direction: column;
}
a { color: var(--gold); }
a:hover { color: #ffd966; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Top bar: the brand (back to the home page) and the three pages */
.site-top {
  width: 100%; max-width: 880px; margin: 0 auto; padding: 16px 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.site-brand img { width: 36px; height: 36px; border-radius: 22%; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); }
.site-brand b { font-size: 20px; font-weight: 900; letter-spacing: -0.4px; }
.site-brand b span { color: var(--gold); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--silver); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 6px 10px; border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.site-nav a[aria-current="page"] { color: var(--bg); background: var(--gold); }

main { width: 100%; max-width: 880px; margin: 0 auto; padding: 28px 16px 48px; flex: 1; }
.narrow { max-width: 720px; }

.hero { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; font-weight: 900; letter-spacing: -0.8px; margin: 0; text-wrap: balance; }
h1 em { font-style: normal; color: var(--gold); }
h2 { font-size: 22px; line-height: 1.25; font-weight: 800; margin: 0 0 10px; text-wrap: balance; }
h3 { font-size: 17px; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.lede { font-size: 18px; color: var(--silver); max-width: 60ch; margin: 0; }
.muted { color: var(--muted); }
small, .small { font-size: 14px; }

section { margin-top: 36px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  min-width: 0;
}
.card .icon { font-size: 26px; line-height: 1; display: block; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before {
  content: counter(step); flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, #e8323f, #b81d30);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.steps li div { padding-top: 3px; min-width: 0; }
.steps li p { margin: 0; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: '♦'; position: absolute; left: 4px; color: var(--red); }

/* Forms */
.form-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 700; font-size: 15px; }
.field .hint { color: var(--muted); font-size: 14px; font-weight: 400; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--input);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choices label {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 6px; min-height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--input);
  cursor: pointer; font-weight: 600; font-size: 15px; text-align: center;
}
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label:has(input:checked) { border-color: var(--gold); background: rgba(245, 197, 66, 0.12); color: var(--gold); }
.choices label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.tick { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.tick input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note-inline {
  border-left: 3px solid var(--gold); background: rgba(245, 197, 66, 0.08); border-radius: 0 10px 10px 0;
  padding: 10px 12px; font-size: 15px; color: var(--silver);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
  font: 800 18px/1 'Segoe UI', system-ui, sans-serif; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #e8323f, #b81d30); box-shadow: 0 6px 18px rgba(215, 38, 61, 0.3);
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn.ghost { background: var(--panel-2); box-shadow: none; border: 1px solid var(--line); color: var(--text); }
.form-error { color: var(--danger); font-weight: 600; min-height: 1.4em; margin: 0; }
.done { text-align: center; padding: 12px 4px; }
.done .big { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.preview-tag {
  display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--panel-2); color: var(--muted);
}

/* Long text (the privacy policy) */
.prose h2 { margin-top: 32px; }
.prose ul { padding-left: 22px; margin: 0 0 12px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; }
.table-wrap { overflow-x: auto; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; margin-top: 8px; }

.site-foot {
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.site-foot div {
  max-width: 880px; margin: 0 auto; padding: 18px 16px 28px;
  display: flex; gap: 8px 18px; flex-wrap: wrap; justify-content: space-between;
}
.site-foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-foot a { color: var(--silver); }
