/* Public web pages (legal, help, account). Same palette as the app, with a light theme when the system prefers it. */
:root { --bg: #0a0e1a; --card: #151d3a; --fg: #eef1f8; --muted: #b5bdd3; --line: #27304d; --accent: #ffb547; --danger: #ff7a7a; --good: #4fe0a0; color-scheme: dark; }
@media (prefers-color-scheme: light) { :root { --bg: #f6f7fb; --card: #fff; --fg: #141a2e; --muted: #4a5470; --line: #d9deea; --accent: #9a5b00; --danger: #b3261e; --good: #0a7a4a; color-scheme: light; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header, main, footer { max-width: 760px; margin: 0 auto; padding: 16px; }
header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
header nav { display: flex; gap: 14px; flex-wrap: wrap; }
a { color: var(--accent); }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--fg); }
h1 { font-size: 30px; line-height: 1.2; margin: 24px 0 8px; }
h2 { font-size: 21px; margin: 28px 0 8px; }
.meta { color: var(--muted); font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 8px; min-width: 140px; }
mark { background: #ffcc4d; color: #1a1205; padding: 0 4px; border-radius: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 20px 0; display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); min-height: 48px; }
input[type=checkbox] { min-height: 0; width: 22px; height: 22px; }
button { font: inherit; font-weight: 700; padding: 14px 20px; border-radius: 12px; border: 0; background: var(--accent); color: #1a1205; min-height: 48px; cursor: pointer; }
button.danger { background: var(--danger); color: #fff; }
button:disabled { opacity: .6; cursor: default; }
.msg:empty { display: none; }
.msg.ok { color: var(--good); }
.msg.err { color: var(--danger); }
.hint { color: var(--muted); margin: 0; }
footer { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 32px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Sign-in link page */
#link .match { display: inline-block; font-size: 28px; font-weight: 800; letter-spacing: 2px; padding: 4px 14px; border-radius: 10px; background: var(--accent); color: #1a1205; vertical-align: middle; }
#link .ask p { margin: 0 0 14px; }

/* Shared score page */
.share { text-align: center; }
.share .kicker { color: var(--accent); font-weight: 700; margin: 0 0 6px; }
.share h1 { margin: 0 0 6px; line-height: 1.2; }
.share .big { display: block; font-size: 64px; letter-spacing: -.03em; color: var(--accent); }
.share .stats { opacity: .8; margin: 0 0 18px; }
.share .rounds { list-style: none; padding: 0; margin: 0 auto 18px; max-width: 460px; text-align: left; }
.share .rounds li { display: flex; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid rgba(128,128,128,.25); }
.share .rounds .mark { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; flex: none; }
.share .rounds .hit .mark { background: rgba(79,224,160,.18); color: #2fbf80; }
.share .rounds .miss .mark { background: rgba(255,122,122,.18); color: #e05a5a; }
.share .rounds .what { flex: 1; font-weight: 600; }
.share .rounds .off { opacity: .7; font-size: 14px; }
.share .invite { max-width: 460px; margin: 0 auto 16px; }
.share .cta { display: inline-block; padding: 14px 28px; border-radius: 14px; background: var(--accent); color: #1a1205; font-weight: 800; font-size: 18px; text-decoration: none; }
