/* Load after style.css. Screen-only theme preserves the existing A5 print rules. */
@media screen {
  :root {
    --blue: #202f60;
    --muted: #68758f;
    --yellow: #efa929;
    --line: #e4e9f2;
    --pale: #e5f5fc;
    --purple: #8357b8;
  }
  body { background: #f7f9fc; color: var(--blue); line-height: 1.9; }
  a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
  a:focus-visible, button:focus-visible, input:focus-visible,
  select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--purple); outline-offset: 4px;
  }
  .brand-strip {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; padding: 9px max(24px, calc((100vw - 1040px)/2));
    background: var(--blue); color: #fff; border-radius: 0 0 24px 24px;
    font-size: 12px;
  }
  .header {
    max-width: 1100px; margin: auto; padding: 24px 30px;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
  }
  .brand { gap: 12px; font-size: 22px; }
  .brand-logo { display: block; flex-shrink: 0; width: 58px; height: 66px; }
  .brand small { font-size: 12px; font-weight: normal; color: var(--muted); }
  .header-home { color: var(--blue); font-size: 13px; text-decoration: none; white-space: nowrap; }
  .header-home:hover { text-decoration: underline; }
  .container { max-width: 1100px; padding: 0 30px; }
  .hero {
    max-width: none; display: grid; grid-template-columns: 1.4fr 1fr;
    align-items: center; gap: 28px; text-align: right;
    margin: 14px 0 28px; padding: 48px;
    border: 1px solid #e0eaf3; border-radius: 32px;
    background: linear-gradient(115deg, #e0f2fc 0%, #f3faff 45%, #fff 100%);
  }
  h1 { color: var(--blue); letter-spacing: 0; }
  .hero h1 { font-size: clamp(30px, 3.6vw, 43px); margin: 20px 0; line-height: 1.65; }
  .hero .intro { margin: 0 0 24px; color: #53627e; font-size: 17px; }
  .badge { color: #704810; background: #fff2d5; padding: 5px 14px; font-size: 12px; }
  .button {
    background: var(--blue); color: #fff; border-radius: 28px;
    min-height: 56px; gap: 26px; box-shadow: 0 8px 20px #202f6014;
  }
  .button:hover { background: #334778; }
  .hero-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; isolation: isolate; }
  .hero-art img { position: relative; width: 190px; height: 220px; }
  .sun-halo { position: absolute; top: 8px; width: 255px; height: 255px; border: 1px solid #fff; border-radius: 50%; background: #ffffff70; z-index: -1; box-shadow: 0 0 0 22px #ffffff25; }
  .art-caption { margin-top: 20px; font-size: 13px; color: #52648e; }
  .features { gap: 18px; }
  .features article, .card { border-radius: 24px; box-shadow: 0 8px 30px #202f6006; }
  .features article { padding: 25px; }
  .number { background: var(--pale); color: var(--blue); border-radius: 50%; width: 40px; height: 40px; font-weight: bold; }
  .features p { color: #61718b; }
  .note { background: #fff; border-right: 3px solid var(--yellow); border-radius: 12px; color: #57657e; }
  .hint, .question-hint { color: #606d83; }
  .site-footer { margin-top: 44px; padding: 24px; border-radius: 32px 32px 0 0; background: var(--pale); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; color: var(--blue); font-size: 12px; }
  .site-footer strong { font-size: 15px; }
  .site-footer img { display: block; }
  .question-wrap { max-width: 720px; }
  .question-card { border-radius: 24px; box-shadow: 0 8px 25px #202f6005; }
  .question-card legend { background: #f7f9fc; }
  .choice { border-radius: 16px; background: #fff; }
  .choice:hover { border-color: #9baacf; }
  .choice:has(input:checked) { background: #edf4ff; border-color: var(--blue); }
  .choice input { accent-color: var(--blue); }
  .secondary { color: var(--blue); border-color: #c5cfdf; border-radius: 24px; background: #fff; }
  .secondary:hover { background: #edf4ff; }
  .admin-input { display: block; width: 100%; margin: 8px 0 18px; padding: 12px 14px; min-height: 48px; font: inherit; font-size: 15px; color: var(--blue); background: #fff; border: 1px solid #b9c7da; border-radius: 12px; }
  textarea.admin-input { resize: vertical; }
  .admin-age-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .admin-rule-section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 12px; }
  .question-wrap .card { text-align: right; max-width: none; }
  .result-card { border-radius: 20px; box-shadow: 0 5px 18px #202f6005; }
  .result-reasons { margin-block: 12px; padding: 12px 16px; border-radius: 12px; background: #f4f6fb; font-size: 14px; color: #364661; }
  .result-reasons ul { margin: 6px 0 0; padding-inline-start: 20px; }
  .result-note { background: #fff4dc; color: #725015; }
  .routine { border-right-color: #218477; }
  .referral { border-right-color: #c87930; }
  .step-error, .errors { color: #9c3035; }
  details { color: #56647e; }
  summary { font-size: 14px; padding-block: 8px; }
  @media (max-width: 680px) {
    .brand-strip { padding: 8px 18px; font-size: 10px; border-radius: 0 0 18px 18px; }
    .header { padding: 18px; gap: 10px; }
    .brand { font-size: 18px; gap: 8px; }
    .brand-logo { width: 44px; height: 52px; }
    .brand small { font-size: 10px; }
    .header-home { font-size: 11px; }
    .container { padding: 0 18px; }
    .hero { grid-template-columns: 1fr; text-align: center; padding: 30px 22px; gap: 0; border-radius: 24px; margin-top: 6px; }
    .hero-art { display: none; }
    .hero h1 { font-size: 30px; }
    .hero .intro { font-size: 16px; }
    .features { grid-template-columns: 1fr; gap: 12px; }
    .features article { padding: 20px; }
    .site-footer { margin-top: 30px; padding: 20px 16px; gap: 8px; }
    .site-footer span { flex-basis: 100%; }
    .question-card { padding: 22px 16px; }
    .question-card legend { font-size: 19px; }
    .admin-age-grid { gap: 12px; }
  }
}
@media print { .brand-strip, .header-home { display: none !important; } }

@media screen {
  .screening-intro-note {
    margin: 28px 0;
    padding: 24px 28px;
    border-right: 4px solid var(--yellow);
    border-radius: 18px;
    background: #fff;
    text-align: right;
    line-height: 2;
  }

  .screening-intro-note strong {
    display: block;
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 21px;
  }

  .screening-intro-note p {
    color: #53627e;
    font-size: 18px;
  }

  @media (max-width: 680px) {
    .screening-intro-note {
      padding: 20px;
    }

    .screening-intro-note strong {
      font-size: 19px;
    }

    .screening-intro-note p {
      font-size: 17px;
    }
  }
}
.developer-credit {
  flex-basis: 100%;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}