:root {
  --bg: #f6f1e7;
  --surface: #fffcf5;
  --ink: #17201a;
  --ink-2: #3a453d;
  --line: #d3cbb8;
  --field: #7a705c;
  --go: #0d4f2b;
  --go-ink: #ffffff;
  --go-press: #093b20;
  --accent: #0d4f2b;
  --soft: #e4efe5;
  --need: #4a2a00;
  --need-bg: #fbecd2;
  --sos: #8a1414;
  --focus: #0b3a8c;
  --shadow: 0 2px 4px rgba(30, 30, 10, .08), 0 10px 30px rgba(30, 30, 10, .10);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101511; --surface: #18201a; --ink: #f0f4ef; --ink-2: #c9d3ca; --line: #34423a; --field: #8a9a8e;
    --go: #8fe0a8; --go-ink: #06210f; --go-press: #b3ecc3; --accent: #9fe6b4; --soft: #1d2d22;
    --need: #ffd99a; --need-bg: #2e2412; --sos: #ffb3a8; --focus: #b9cbff;
    --shadow: 0 2px 4px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101511; --surface: #18201a; --ink: #f0f4ef; --ink-2: #c9d3ca; --line: #34423a; --field: #8a9a8e;
  --go: #8fe0a8; --go-ink: #06210f; --go-press: #b3ecc3; --accent: #9fe6b4; --soft: #1d2d22;
  --need: #ffd99a; --need-bg: #2e2412; --sos: #ffb3a8; --focus: #b9cbff;
  --shadow: 0 2px 4px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Pe iPhone, mărimea textului din Setări (Dynamic Type) ajunge în pagină prin -apple-system-body. Totul de mai jos e în rem. */
html { -webkit-text-size-adjust: 100%; font-size: 100%; }
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.25rem; line-height: 1.5;
  overflow-wrap: anywhere;
}
[hidden] { display: none !important; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 .8em; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

main { max-width: 40rem; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 1rem; }

/* ---------- Părintele ---------- */
#parent { display: flex; flex-direction: column; min-height: 100svh; padding-bottom: 1.5rem; }
.hello { font-family: var(--serif); font-size: 1.75rem; line-height: 1.2; margin: .5rem 0 .1rem; font-weight: 600; }
.today { font-size: 1.5rem; color: var(--ink-2); margin: 0 0 1rem; }

.big {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  min-height: 50svh; padding: 1.5rem 16px; border-radius: 28px;
  background: var(--go); color: var(--go-ink); text-decoration: none; text-align: center;
  box-shadow: var(--shadow); touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .08s ease, background-color .15s ease;
}
.big:active { transform: scale(.985); background: var(--go-press); }
.big svg { width: min(clamp(4rem, 22vw, 7rem), 30vw); height: auto; }
/* Cu textul mărit de trei ori, mărimea se oprește la lățimea ecranului; „Sunt bine” se rupe doar între cuvinte. */
.big-word { font-family: var(--serif); font-weight: 700; font-size: min(clamp(3rem, 2rem + 6vw, 5rem), 21vw); line-height: 1.05; overflow-wrap: normal; word-break: normal; }
.big-to { font-size: 1.4rem; }
.big.done .big-word::after { content: ""; }

.status { font-size: 1.5rem; font-weight: 600; margin: 1rem 0 .25rem; text-align: center; }
.how { font-size: 1.15rem; color: var(--ink-2); text-align: center; margin: 0 0 1.25rem; }

.need {
  display: block; text-align: center; padding: 1rem; border-radius: 18px; font-size: 1.4rem; font-weight: 600;
  background: var(--need-bg); color: var(--need); border: 2px solid currentColor; text-decoration: none;
  touch-action: manipulation;
}
.sos { text-align: center; font-size: 1.15rem; margin: 1.25rem 0; }
.sos a { color: var(--sos); font-weight: 700; display: inline-block; min-height: 3rem; padding: .6rem 0; }

.prep { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 1rem; margin: .5rem 0 1rem; }
.prep h2 { font-size: 1.5rem; }
.prep ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.prep li { margin-bottom: 1rem; }
.prep li .btn { display: block; margin-top: .5rem; width: 100%; }

.about { margin-top: auto; padding-top: 1rem; font-size: 1.1rem; color: var(--ink-2); }
.about summary { cursor: pointer; padding: .5rem 0; color: var(--ink); }
.about div { margin-top: .5rem; }

/* ---------- Copilul ---------- */
.intro { padding: 1.5rem 0 1rem; }
.kicker { color: var(--ink-2); font-size: 1.05rem; margin: 0 0 .25rem; }
.intro h1 { font-size: clamp(2.75rem, 2rem + 4vw, 4rem); }
.lead { font-size: 1.3rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem; margin: 0 0 1rem; box-shadow: var(--shadow); }
.card h2 { font-size: 1.6rem; }
.card h3 { font-size: 1.25rem; margin-top: 1rem; }
.card ul, .card ol { padding-left: 1.3rem; margin: 0; }
.card li { margin-bottom: .5rem; }
.honest { background: var(--soft); }

.field { display: block; margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { display: block; font-weight: 600; margin-bottom: .3rem; }
.field small { display: block; color: var(--ink-2); font-size: 1rem; margin-top: .25rem; }
input:not([type=radio]), textarea {
  display: block; width: 100%; padding: .7rem .8rem; border-radius: 12px; min-height: 3rem;
  border: 2px solid var(--field); background: var(--bg);
}
::placeholder { color: var(--ink-2); opacity: 1; font-style: italic; }
input:focus, textarea:focus { border-color: var(--accent); }
.radio { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; }
.radio input { width: 1.4rem; height: 1.4rem; accent-color: var(--accent); }
.err { color: var(--sos); font-weight: 600; min-height: 0; }

.btn {
  display: inline-block; padding: .8rem 1.1rem; border-radius: 14px; border: 2px solid var(--go);
  background: var(--go); color: var(--go-ink); font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
  min-height: 3rem; touch-action: manipulation;
}
.btn.quiet { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn.block { display: block; width: 100%; }
.linkish { background: none; border: 0; padding: .4rem 0; color: var(--accent); text-decoration: underline; cursor: pointer; text-align: left; min-height: 2.75rem; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1rem; }
.linkbox output { display: block; padding: .7rem; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line); font-family: ui-monospace, Menlo, monospace; font-size: .95rem; word-break: break-all; }
.qr { background: #ffffff; padding: 16px; border-radius: 12px; width: fit-content; max-width: 100%; margin: 0 auto 1rem; }
.qr img, .qr svg, .qr canvas { display: block; width: min(16rem, 70vw); height: auto; image-rendering: pixelated; }
.fine { font-size: 1rem; color: var(--ink-2); }
.privacy p { font-size: 1.1rem; }

.foot { text-align: center; font-size: 1rem; color: var(--ink-2); padding: 1rem 16px 2rem; }
.foot a { color: var(--accent); }

.toast .btn { margin-left: .5rem; padding: .3rem .8rem; min-height: 2.75rem; color: var(--bg); border-color: var(--bg); }
.toast { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: 36rem; margin: 0 auto;
  background: var(--ink); color: var(--bg); padding: 1rem 1.1rem; border-radius: 14px; font-size: 1.15rem; box-shadow: var(--shadow); z-index: 10; }
.noscript { padding: 16px; font-size: 1.3rem; }

@media (prefers-reduced-motion: reduce) { .big { transition: none; } .big:active { transform: none; } }
@media print { .big { box-shadow: none; } }
