/* GENERATED FILE -- DO NOT HAND-EDIT. Produced by build/generate.py for app-30day-01 (Dr. Bill's 30-Day ASL Challenge). Edit the files in content\ and re-run python build\generate.py. Registered in V:\cw\DO-NOT-HAND-EDIT.md. Build 2026-09-12 v1.0.0. */
/* Dr. Bill's 30-Day ASL Challenge -- app stylesheet.
   Follows V:\cw\UI-STYLE-DIRECTIVE.md v1.0 (large-print mentality): 18px+
   base Arial, aggressive bold, 2-3px black borders, blue reserved for
   links, yellow desktop hover, :focus-visible ring, 44px touch targets,
   sign media maximized (edge-to-edge on phones; sticky + capped in
   quizzes). Lifeprint red #cc0000 accents; green #008a2e for correct.
   Mobile-first; primary target 360-390px portrait phones. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  color: #000;
  background: #fff;
  line-height: 1.45;
}
img { max-width: 100%; }
a { color: #0000cc; }
button { font-family: inherit; }

/* keyboard accessibility: strong ring on everything interactive */
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* desktop-only hover tracking; interactive elements look interactive
   without it (borders, bold, underline) because phones have no hover */
@media (hover: hover) and (pointer: fine) {
  a:hover, .btn:hover, .choice:hover, .stepnav .step:hover,
  .daytile:hover, .hdr a.gear:hover, .vidposter:hover {
    background: #ffff00; color: #000;
  }
  .vidposter:hover .playtri {
    border-color: transparent transparent transparent #000;
  }
}

#app { max-width: 640px; margin: 0 auto; padding: 0 12px 48px; }

/* ---------- header ---------- */
.hdr {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 0 8px; border-bottom: 2px solid #cc0000;
  margin-bottom: 12px;
}
.hdr .logolink { flex: 0 0 auto; line-height: 0; border-radius: 50%; }
.hdr img { width: 44px; height: 44px; border-radius: 50%; }
.hdr .t1 { font-size: 20px; font-weight: bold; line-height: 1.2; }
.hdr .t2 { font-size: 16px; color: #444; }
.hdr a.t2 { color: #0000cc; display: inline-block; }
.hdr .spacer { flex: 1; }
.hdr a.gear {
  text-decoration: none; font-size: 18px; font-weight: bold; color: #000;
  border: 2px solid #000; border-radius: 10px; padding: 8px 14px;
  background: #f8f8f8; white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center;
}

/* ---------- generic ---------- */
.card {
  border: 2px solid #000; border-radius: 14px; background: #fff;
  padding: 14px; margin: 10px 0;
}
.card h2, .card h3 { margin-top: 0; }
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  background: #444; color: #fff; border: none; border-radius: 10px;
  padding: 12px 22px; font-size: 18px; font-weight: bold; text-align: center;
  min-height: 44px;
}
.btn:active { background: #222; }
.btn.primary { background: #cc0000; }
.btn.primary:active { background: #990000; }
.btn.quiet { background: #f1f1f1; color: #000; border: 2px solid #000; }
.btn.big { display: block; width: 100%; padding: 14px 22px; font-size: 20px; }
.btn[disabled] { opacity: .45; cursor: default; }
.btnrow { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.btnrow .btn { flex: 1 1 auto; }
.center { text-align: center; }
.muted { color: #555; font-size: 16px; }
.small { font-size: 16px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-block; background: #f8f8f8; border: 2px solid #000;
  border-radius: 999px; padding: 5px 13px; font-size: 16px; color: #000;
  white-space: nowrap;
}
.pill b { color: #cc0000; }
.tag {
  display: inline-block; font-size: 13px; border-radius: 4px; padding: 2px 7px;
  background: #eee; color: #222; border: 1px solid #555; vertical-align: middle;
}
.tag.online { background: #f1f1f1; color: #222; border: 1px solid #555; }
hr.thin { border: none; border-top: 1px solid #ddd; margin: 12px 0; }

/* ---------- home ---------- */
.statsbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.daygrid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0;
}
.daytile {
  position: relative; border: 2px solid #000; border-radius: 10px;
  background: #fff; cursor: pointer; text-align: center;
  padding: 10px 2px 8px; text-decoration: none; color: #000;
  min-height: 58px; display: flex; flex-direction: column; justify-content: center;
}
.daytile .n { font-size: 19px; font-weight: bold; }
.daytile .s { font-size: 11px; color: #555; line-height: 1.15; }
.daytile.done { border-color: #008a2e; background: #f2fbf4; }
.daytile.done .n { color: #008a2e; }
.daytile.star { border-color: #cc9900; background: #fffbe8; }
.daytile.next { border-color: #cc0000; box-shadow: 0 0 0 2px rgba(204,0,0,.18); }
.daytile .mark { position: absolute; top: 2px; right: 5px; font-size: 11px; }
.noticelink { font-size: 20px; font-weight: bold; }
.noticecard p { font-size: 18px; line-height: 1.5; }
.badgestrip { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.badge {
  width: 84px; text-align: center; font-size: 13px; color: #333;
  border: 1px solid #555; border-radius: 10px; padding: 8px 4px; background: #fafafa;
}
.badge.earned { border-color: #cc9900; background: #fffbe8; color: #000; }
.badge.locked { opacity: .45; filter: grayscale(1); }
.badge svg { width: 34px; height: 34px; display: block; margin: 0 auto 4px; }
.donate {
  text-align: center; font-size: 16px; color: #333; margin: 16px 0;
  border-top: 1px solid #ddd; padding-top: 12px;
}

/* ---------- day flow ---------- */
.stepnav {
  display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap;
  padding-bottom: 2px;
}
.stepnav .step {
  flex: 1 0 auto; text-align: center; font-size: 18px; font-weight: bold;
  color: #000; border: 2px solid #000; border-radius: 10px; padding: 10px 12px;
  background: #f8f8f8; cursor: pointer; white-space: nowrap; min-height: 44px;
}
.stepnav .step.cur { border-color: #cc0000; color: #cc0000; background: #fff; }
.stepnav .step.done { border-color: #008a2e; color: #008a2e; background: #f2fbf4; }
.objectives { padding-left: 8px; list-style: none; }
.objectives li { margin: 12px 0; font-size: 18px; line-height: 1.4; }
.objectives .done { color: #008a2e; }
.objglyph { font-size: 20px; }
.objectives a.objlink { color: #0000cc; }
.objectives .done a.objlink { color: #008a2e; }
.orientlabel {
  text-align: center; font-weight: bold; font-size: 20px; margin: 8px 0 4px;
}
.note.numnote { max-width: 460px; margin: 10px auto; }
.bignav { margin-top: 14px; }
.bignav .btn { flex: 1 1 40%; }

/* ---------- sign cards ---------- */
.signstage { text-align: center; }
.signstage img.sign {
  width: min(100%, 400px); height: auto; aspect-ratio: 1 / 1;
  border: 2px solid #000; border-radius: 10px; background: #fff; object-fit: contain;
}
.signstage .gloss { font-size: 26px; font-weight: bold; margin: 8px 0 2px; }
.signstage .eng { font-size: 18px; color: #333; }
.signstage .note, .note {
  font-size: 17px; color: #222; background: #f8f8f8; border-radius: 8px;
  padding: 10px 12px; margin: 10px auto 0; max-width: 460px; text-align: left;
  line-height: 1.45;
}
.cardcount { font-size: 16px; color: #444; text-align: center; margin: 6px 0; }

/* ---------- quiz ---------- */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.choices.one-col { grid-template-columns: 1fr; }
.choice {
  border: 2px solid #000; border-radius: 12px; background: #fff; cursor: pointer;
  padding: 14px 8px; font-size: 20px; font-weight: bold; text-align: center;
  min-height: 56px; word-break: break-word;
}
.choice img { width: 100%; max-width: 200px; height: auto; border-radius: 6px; }
.choice:active { background: #ffff00; }
.choice.right { border-color: #008a2e; background: #f2fbf4; }
.choice.wrong { border-color: #cc0000; background: #fdf0f0; }
.choice.reveal { border-color: #008a2e; border-style: dashed; }
.choice[disabled] { cursor: default; }
/* color is never the only signal: state also shows as a symbol */
.choice.right::after { content: " \2713"; color: #008a2e; font-weight: bold; }
.choice.wrong::after { content: " \2717"; color: #cc0000; font-weight: bold; }
.choice.reveal::after { content: " \2713"; color: #008a2e; font-weight: bold; }
.qprompt { text-align: center; font-size: 20px; font-weight: bold; margin: 10px 0 4px; }
.qprompt .target { font-size: 26px; font-weight: bold; color: #cc0000; }
.feedback { text-align: center; font-size: 18px; margin: 4px 0; }
.feedback:empty { display: none; margin: 0; }
.feedback.good { color: #008a2e; font-weight: bold; }
.feedback.bad { color: #cc0000; font-weight: bold; }
.feedback.good::before { content: "\2713 "; }
.feedback.bad::before { content: "\2717 "; }
.progressbar {
  height: 8px; border-radius: 4px; background: #eee; overflow: hidden; margin: 8px 0;
}
.progressbar > div { height: 100%; background: #cc0000; border-radius: 4px; transition: width .3s; }

/* ---------- fingerspelling / numbers stage ---------- */
.fsstage { text-align: center; }
.fsstage img.frame {
  width: min(100%, 400px); height: auto; aspect-ratio: 1 / 1;
  border-radius: 10px; border: 2px solid #000; background: #000; object-fit: contain;
}
.fsstage .ctrl { margin: 10px 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.speedpill { font-size: 16px; }
.lettergrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.lettergrid img { width: 100%; border-radius: 8px; border: 2px solid #000; background: #000; }
.lettergrid .cell { text-align: center; font-size: 16px; font-weight: bold; }

/* sticky quiz media: the sign stays in view while choices scroll,
   capped so the choices are never crowded out (UI directive) */
.stick { position: sticky; top: 0; background: #fff; z-index: 5; padding: 2px 0; }
.stick img.frame, .stick img.sign {
  /* explicit size (not natural-size dependent -- the blank frame is tiny) */
  width: min(48vh, 100%, 400px); height: auto;
}

/* ---------- facts ---------- */
.fact h3 { margin: 4px 0 8px; font-size: 22px; }
.fact p { font-size: 18px; line-height: 1.5; }
.fact .src { font-size: 14px; color: #666; margin-top: 8px; }

/* ---------- sentences ---------- */
.sentence { cursor: pointer; }
.sentence .gloss { font-size: 20px; font-weight: bold; font-family: Arial, Helvetica, sans-serif; }
.sentence .eng { color: #111; margin-top: 6px; display: none; font-size: 18px; }
.sentence.open .eng { display: block; }
.sentence .hint { font-size: 15px; color: #555; margin-top: 4px; }

/* ---------- sentence videos ---------- */
.vidwrap { margin-top: 10px; }
.vidposter {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 2px solid #000; border-radius: 10px; background: #111; color: #fff;
  padding: 13px 16px; cursor: pointer; font-size: 20px; font-weight: bold;
  text-align: left; min-height: 44px;
}
.vidposter:active { background: #333; }
.playtri {
  width: 0; height: 0; border-style: solid; border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff; flex: 0 0 auto;
}
.vidlabel .tag.online { margin-left: 6px; }
.vidframe, video.vidmedia {
  width: 100%; max-width: 560px; aspect-ratio: 16 / 9; height: auto;
  border: 0; border-radius: 10px; background: #000; display: block; margin: 0 auto;
}

/* ---------- wrap-up ---------- */
.scorebox { text-align: center; padding: 10px 0; }
.scorebox .big { font-size: 42px; font-weight: bold; color: #cc0000; }
.encourage {
  background: #fffbe8; border: 1px solid #e8d88a; border-radius: 10px;
  padding: 12px; margin: 10px 0; font-size: 17px; text-align: center;
}
.godeeper li { margin: 8px 0; }

/* ---------- settings / forms ---------- */
input[type=text], input[type=file] {
  font-size: 18px; padding: 10px; border: 2px solid #000; border-radius: 8px;
  width: 100%;
}
.settings .card h3 { margin-bottom: 6px; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #111; color: #fff; border-radius: 10px; padding: 10px 18px;
  font-size: 17px; opacity: 0; pointer-events: none; transition: opacity .3s;
  max-width: 90vw; text-align: center; z-index: 50;
}
#toast.show { opacity: .95; }

/* ---------- phones ---------- */
@media (max-width: 480px) {
  /* accessibility: media displays run margin-to-margin on phones */
  #app { padding: 0 6px 48px; }
  .card { padding: 10px 8px; }
  /* edge-to-edge sign media: flush with the screen, radius dropped,
     so the signer's hands are as large as physically possible */
  .signstage img.sign, .fsstage img.frame {
    width: calc(100% + 32px); max-width: none;
    margin-left: -16px; margin-right: -16px;
    border-left: none; border-right: none; border-radius: 0;
  }
  /* ...except sticky quiz stages, which stay centered and height-capped
     so the answer choices remain reachable */
  .stick img.frame, .stick img.sign {
    width: min(48vh, 100%, 400px); max-width: none;
    margin-left: 0; margin-right: 0;
    border: 2px solid #000; border-radius: 10px;
  }
}

/* ---------- desktop ---------- */
@media (min-width: 700px) {
  .daygrid { grid-template-columns: repeat(6, 1fr); }
  .hdr .t1 { font-size: 21px; }
  .lettergrid { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- card sequences (Directive 10) ---------- */
.cardtop .gloss { margin-top: 4px; }
.expander { margin: 10px 0; }
.xbtn { text-align: left; }
.xbody { margin-top: 8px; }
.xbody .note { margin-top: 0; }
.choice.corrected { border-color: #008a2e; background: #f2fbf4; }
.choice.corrected::after { content: " \2713 corrected"; color: #008a2e; font-weight: bold; }
/* feedback form */
.fblabel { display: block; font-weight: bold; margin: 10px 0 4px; }
.fblabel select, .fblabel textarea, .fblabel input {
  display: block; width: 100%; font-size: 18px; font-family: inherit;
  padding: 10px; border: 2px solid #000; border-radius: 8px; margin-top: 4px;
  background: #fff; color: #000; min-height: 44px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fbbtn { width: 100%; }
/* Previous/Next pinned to the bottom of the viewport on phones */
@media (max-width: 700px) {
  .cardnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    margin: 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 2px solid #000;
  }
  #app.padnav { padding-bottom: 110px; }
}
