/* --link and --danger are text colours chosen to stay readable on the card (at least 4.5:1)
   in both themes; the brand teal itself is too light for small text on white. */
:root { --brand: #17AA9D; --ink: #1d2a33; --bg: #D2F2F8; --card: #ffffff; --link: #0b7268; --danger: #b3261e; }
@media (prefers-color-scheme: dark) { :root { --ink: #e8f4f6; --bg: #0f2a30; --card: #17363d; --link: #6fdcd0; --danger: #ff8a80; } }
* { box-sizing: border-box; }
/* The pages show and hide parts with the hidden attribute; without this, any rule that sets
   display (buttons, #manage) silently overrides it and hidden things stay visible. */
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 16px; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, sans-serif; padding: 16px; }
.card { background: var(--card); width: 100%; max-width: 420px; padding: 24px; border-radius: 16px; }
label { display: block; margin-bottom: 12px; }
input { display: block; width: 100%; padding: 10px; margin-top: 4px; font: inherit; border-radius: 8px; border: 1px solid #9bb; }
button, .play, a.secondary { display: block; width: 100%; margin-top: 10px; padding: 12px; font: inherit; border: 0; border-radius: 8px; background: var(--brand); color: #fff; text-align: center; text-decoration: none; cursor: pointer; }
a { color: var(--link); }
.secondary, a.secondary { background: transparent; color: var(--link); border: 2px solid var(--brand); }
.link { background: none; color: var(--link); text-decoration: underline; }
.play { font-size: 1.4rem; font-weight: 700; }
#message { min-height: 1.5em; margin-top: 12px; }

/* Account page (plan 3) */
.note { font-size: 0.9em; opacity: 0.8; margin-top: 4px; }
.danger { color: var(--danger); }
#manage { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 16px 0; }

/* Front door and info pages (plan 6) */
.lead { font-size: 1.25rem; font-weight: 600; margin-top: 0; }
.site-footer { max-width: 420px; text-align: center; font-size: 0.85em; opacity: 0.85; }
.page { max-width: 640px; }
/* The Play link is display:block above, which beats the hidden attribute; this makes hidden always win
   (consent card, 2026-11-10: Play must stay hidden until the family has agreed). */
[hidden] { display: none !important; }
/* Consent card (2026-11-10): the checkbox sits beside its sentence, not full width like text inputs. */
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { width: auto; margin-top: 4px; }
#consent h2 { font-size: 1.1em; margin: 12px 0 6px; }
#consent ul { padding-left: 20px; }
/* Move-over welcome (2026-11-12): set apart so a returning parent reads it before the consent card. */
.welcome { border-left: 4px solid var(--brand); padding: 8px 12px; margin: 12px 0; }
