/* (c) Britt Innovations Inc., Monsieur Britt.
   Bill, 2026-11-22: make the student hub pages more fun for kids. Used with fsl-kid-fun.js, which adds
   body.fsl-kid-fun and body.kf-<page>. Colour, rounded shapes and still pictures of the cast only: no layout
   rewrites, nothing moves on its own, screens only. Any high-contrast setting turns the whole skin off.
   Grade colours match the activity worlds: G5 sunshine, G6 sky, G7 lavender. */
@media screen {
  /* ---- Shared (the arcade keeps its own dark background) ---- */
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-arcade:not(.udl-contrast-high):not(.high-contrast) { --kf-ink: #1e1b4b; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:not(.kf-arcade):not(.udl-contrast-high):not(.high-contrast) {
    --kf-ink: #1e1b4b; --kf-sun: #fbbf24; --kf-sun-soft: #fef3c7; --kf-sky: #0ea5e9; --kf-sky-soft: #e0f2fe;
    --kf-lav: #8b5cf6; --kf-lav-soft: #ede9fe; --kf-mint: #10b981; --kf-mint-soft: #d1fae5; --kf-pink: #ec4899; --kf-pink-soft: #fce7f3;
    background-color: #fffdf7;
    background-image:
      radial-gradient(circle at 6% 4%, rgba(253, 230, 138, .55) 0, transparent 26%),
      radial-gradient(circle at 96% 10%, rgba(186, 230, 253, .6) 0, transparent 30%),
      radial-gradient(circle at 88% 92%, rgba(221, 214, 254, .55) 0, transparent 28%),
      radial-gradient(rgba(236, 72, 153, .16) 1.6px, transparent 1.8px),
      radial-gradient(rgba(14, 165, 233, .16) 1.6px, transparent 1.8px);
    background-size: auto, auto, auto, 46px 46px, 46px 46px;
    background-position: 0 0, 0 0, 0 0, 0 0, 23px 23px;
    background-attachment: fixed;
  }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:not(.udl-contrast-high):not(.high-contrast) .kf-mascot { display: flex; align-items: flex-end; gap: .6rem; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:not(.udl-contrast-high):not(.high-contrast) .kf-mascot-art { width: 92px; height: 92px; flex: 0 0 auto; filter: drop-shadow(0 4px 0 rgba(30, 27, 75, .12)); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:not(.udl-contrast-high):not(.high-contrast) .kf-bubble {
    position: relative; margin: 0 0 1.4rem; padding: .7rem 1rem; max-width: 26rem; background: #fff; color: var(--kf-ink);
    border: 3px solid var(--kf-ink); border-radius: 18px; font-weight: 700; line-height: 1.35; box-shadow: 0 4px 0 var(--kf-ink);
  }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:not(.udl-contrast-high):not(.high-contrast) .kf-bubble::before {
    content: ""; position: absolute; left: -14px; bottom: 14px; border: 8px solid transparent; border-right: 12px solid var(--kf-ink);
  }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:not(.udl-contrast-high):not(.high-contrast) .kf-has-art { position: relative; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:not(.udl-contrast-high):not(.high-contrast) .kf-card-art {
    position: absolute; right: 10px; top: 10px; width: 64px; height: 64px; pointer-events: none; filter: drop-shadow(0 3px 0 rgba(30, 27, 75, .12));
  }
  @media (max-width: 520px) {
    html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:not(.udl-contrast-high):not(.high-contrast) .kf-mascot-art { width: 64px; height: 64px; }
    html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:not(.udl-contrast-high):not(.high-contrast) .kf-card-art { width: 48px; height: 48px; }
  }

  /* ---- Home (index.html, french-pathways.css) ---- */
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .brandbar .mark {
    background: linear-gradient(135deg, var(--kf-pink), var(--kf-lav)); border-radius: 14px; box-shadow: 0 3px 0 #6d28d9;
  }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .brandbar nav a {
    display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: #fff; border: 2px solid #e9d5ff;
    text-decoration: none; font-weight: 700; color: var(--kf-ink); box-shadow: 0 3px 0 #e9d5ff;
  }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .brandbar nav a:hover { border-color: var(--kf-lav); box-shadow: 0 3px 0 var(--kf-lav); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; max-width: none; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .intro > .kf-mascot { flex: 0 1 25rem; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .path.kf-has-art h2 { padding-right: 64px; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .path .kf-card-art { top: 70px; right: 12px; width: 62px; height: 62px; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .intro .eyebrow { color: var(--kf-pink); letter-spacing: .18em; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .intro h1 {
    background: linear-gradient(90deg, #7c3aed, #db2777 55%, #ea580c); -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .path {
    border: 3px solid var(--kf-line); background: var(--kf-soft); border-radius: 26px; box-shadow: 0 6px 0 var(--kf-line);
    transition: transform .12s ease, box-shadow .12s ease;
  }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .path:hover,
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .path:focus-visible { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 10px 0 var(--kf-line); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .path:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--kf-line); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .path[href="grade5.html"] { --kf-soft: #fff7d6; --kf-line: #f59e0b; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .path[href="grade6.html"] { --kf-soft: #e3f4ff; --kf-line: #0ea5e9; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .path[href="grade7.html"] { --kf-soft: #f1ebff; --kf-line: #8b5cf6; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .path[href="tests_revision.html"] { --kf-soft: #e3fbef; --kf-line: #10b981; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .path .chip { background: #fff; border: 2px solid var(--kf-line); color: var(--kf-ink); border-radius: 999px; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .path h2 { font-size: 2rem; color: var(--kf-ink); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .path .destination {
    align-self: flex-start; display: inline-block; padding: .5rem .85rem; font-size: .95rem; border-radius: 999px; background: var(--kf-line); color: #fff;
    box-shadow: 0 4px 0 rgba(30, 27, 75, .25); border-top: 0;
  }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-home:not(.udl-contrast-high):not(.high-contrast) .bottom { border-radius: 22px; border: 3px dashed #f9a8d4; background: #fff; }

  /* ---- Les Phrases, Les Verbes (shared .card / .unit-card style pages) ---- */
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-phrases:not(.udl-contrast-high):not(.high-contrast) header,
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-verbes:not(.udl-contrast-high):not(.high-contrast) header {
    background: linear-gradient(90deg, #fef3c7, #fce7f3 50%, #e0f2fe); border-bottom: 3px solid #f9a8d4;
  }

  /* Tiles: each its own colour, chunky edge, lifts on hover, green with a check when finished. */
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.pick { border: 3px solid var(--kf-line, #c4b5fd); background: var(--kf-soft, #f5f3ff); border-radius: 22px; box-shadow: 0 5px 0 var(--kf-line, #c4b5fd); transition: transform .12s ease, box-shadow .12s ease; position: relative; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.pick:hover, html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.pick:focus-visible { transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 8px 0 var(--kf-line, #c4b5fd); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.pick:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--kf-line, #c4b5fd); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.pick:nth-child(5n+1) { --kf-soft: #fff7d6; --kf-line: #fbbf24; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.pick:nth-child(5n+2) { --kf-soft: #e3f4ff; --kf-line: #38bdf8; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.pick:nth-child(5n+3) { --kf-soft: #fde7f3; --kf-line: #f472b6; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.pick:nth-child(5n+4) { --kf-soft: #f1ebff; --kf-line: #a78bfa; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.pick:nth-child(5n+5) { --kf-soft: #e3fbef; --kf-line: #34d399; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.pick.done { --kf-soft: #dcfce7; --kf-line: #22c55e; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.pick.done::after { content: "✓"; position: absolute; top: -10px; right: -8px; width: 28px; height: 28px; border-radius: 50%; background: #16a34a; color: #fff; font-weight: 900; line-height: 28px; text-align: center; box-shadow: 0 3px 0 #14532d; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.pick .n { color: #6d28d9; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.pick .t { color: var(--kf-ink); font-size: 1.12em; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .levelhead { display: inline-block; padding: .35rem 1rem; border-radius: 999px; background: #fff; border: 3px solid #f9a8d4; box-shadow: 0 4px 0 #f9a8d4; color: var(--kf-ink); }
  /* Intro card with the grade character. */
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.kf-intro { border: 3px solid #fcd34d; border-radius: 24px; box-shadow: 0 6px 0 #fcd34d; background: #fffbeb; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.kf-intro .kf-mascot { margin-bottom: .6rem; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .card.kf-intro .kf-bubble { margin-bottom: .9rem; }
  /* Buttons: round and chunky, press down when clicked. */
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .btn { border-radius: 999px; box-shadow: 0 4px 0 rgba(30, 27, 75, .28); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(30, 27, 75, .28); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .btn.ghost { box-shadow: 0 4px 0 #c7d2fe; }
  /* Word tiles look like game pieces. */
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .tok { border-radius: 14px; box-shadow: 0 4px 0 var(--tileb, #c7d2fe); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .tok:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tileb, #c7d2fe); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .slot { border-radius: 16px; border-width: 3px; background: rgba(255, 255, 255, .7); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .progress { height: 14px; border: 2px solid #e9d5ff; background: #fff; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun:is(.kf-phrases,.kf-verbes):not(.udl-contrast-high):not(.high-contrast) .progress > i { background: linear-gradient(90deg, #f472b6, #a78bfa, #38bdf8); }

  /* Mes devoirs */
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-devoirs:not(.udl-contrast-high):not(.high-contrast) .name-prompt { border: 3px solid #7dd3fc; border-radius: 26px; box-shadow: 0 6px 0 #7dd3fc; background: #f0f9ff; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-devoirs:not(.udl-contrast-high):not(.high-contrast) .name-prompt .kf-mascot { justify-content: center; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-devoirs:not(.udl-contrast-high):not(.high-contrast) .name-prompt .kf-bubble { text-align: left; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-devoirs:not(.udl-contrast-high):not(.high-contrast) #lookupButton { border-radius: 999px; box-shadow: 0 4px 0 #5b21b6; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-devoirs:not(.udl-contrast-high):not(.high-contrast) #lookupButton:active { transform: translateY(3px); box-shadow: 0 1px 0 #5b21b6; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-devoirs:not(.udl-contrast-high):not(.high-contrast) .name-prompt input, html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-devoirs:not(.udl-contrast-high):not(.high-contrast) .name-prompt select { border-radius: 14px; border-width: 2px; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-devoirs:not(.udl-contrast-high):not(.high-contrast) .assignment-card { border-radius: 20px; border: 3px solid #fde68a; box-shadow: 0 4px 0 #fde68a; }

  /* ---- Grade 5 to 7 pages: welcome, unit and day pickers (activity screens are styled by fsl-lesson-fun.css) ---- */
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) { background-attachment: fixed; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) .kf-welcome { justify-content: center; margin: .4rem 0 1rem; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) .mode-btn { border-radius: 22px; border-width: 3px; box-shadow: 0 5px 0 #bfdbfe; transition: transform .12s ease, box-shadow .12s ease; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) .mode-btn:hover { transform: translateY(-3px); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) .mode-btn.active { box-shadow: 0 5px 0 #16a34a; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) .mode-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #bfdbfe; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) .login-notice, html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) .name-warning-box { border-radius: 20px !important; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) .student-login-card { border-radius: 22px; border-width: 3px; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #loginScreen button[onclick="startActivities()"] { border-radius: 999px !important; box-shadow: 0 5px 0 rgba(30, 27, 75, .3) !important; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #loginScreen button[onclick="startActivities()"]:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(30, 27, 75, .3) !important; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #unitGrid > .unit-card, html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card {
    background: var(--kf-soft, #f5f3ff) !important; color: var(--kf-ink) !important; border: 3px solid var(--kf-line, #a78bfa);
    border-radius: 24px; box-shadow: 0 6px 0 var(--kf-line, #a78bfa); transition: transform .12s ease, box-shadow .12s ease;
  }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #unitGrid > .unit-card:hover, html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 10px 0 var(--kf-line, #a78bfa); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #unitGrid > .unit-card:active, html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--kf-line, #a78bfa); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #unitGrid > .unit-card *, html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card * { color: var(--kf-ink) !important; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card .day-card-subtitle, html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card .day-card-num { color: #5b21b6 !important; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #unitGrid > .unit-card:nth-child(5n+1), html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card:nth-child(5n+1) { --kf-soft: #fff7d6; --kf-line: #fbbf24; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #unitGrid > .unit-card:nth-child(5n+2), html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card:nth-child(5n+2) { --kf-soft: #e3f4ff; --kf-line: #38bdf8; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #unitGrid > .unit-card:nth-child(5n+3), html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card:nth-child(5n+3) { --kf-soft: #fde7f3; --kf-line: #f472b6; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #unitGrid > .unit-card:nth-child(5n+4), html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card:nth-child(5n+4) { --kf-soft: #f1ebff; --kf-line: #a78bfa; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #unitGrid > .unit-card:nth-child(5n+5), html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card:nth-child(5n+5) { --kf-soft: #e3fbef; --kf-line: #34d399; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card.completed, html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card.status-complete { --kf-soft: #dcfce7; --kf-line: #22c55e; position: relative; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card.completed::after, html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card.status-complete::after { content: "✓"; position: absolute; top: -10px; right: -8px; width: 30px; height: 30px; border-radius: 50%; background: #16a34a; color: #fff !important; font-weight: 900; line-height: 30px; text-align: center; box-shadow: 0 3px 0 #14532d; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-grade:not(.udl-contrast-high):not(.high-contrast) #dayGrid > .day-card.status-partial { --kf-line: #f59e0b; }

  /* ---- Arcade: stays dark, gets neon edges and the student's character ---- */
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-arcade:not(.udl-contrast-high):not(.high-contrast) { background-image: radial-gradient(rgba(250, 204, 21, .22) 1.4px, transparent 1.6px), radial-gradient(rgba(244, 114, 182, .2) 1.4px, transparent 1.6px); background-size: 52px 52px, 52px 52px; background-position: 0 0, 26px 26px; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-arcade:not(.udl-contrast-high):not(.high-contrast) .kf-arcade-hello { justify-content: center; margin: .6rem 0 .4rem; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-arcade:not(.udl-contrast-high):not(.high-contrast) .kf-arcade-hello .kf-bubble { text-align: left; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-arcade:not(.udl-contrast-high):not(.high-contrast) .game-shortcuts a { border-radius: 999px !important; border-width: 3px !important; box-shadow: 0 4px 0 #818cf8; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-arcade:not(.udl-contrast-high):not(.high-contrast) .game-shortcuts a:active { transform: translateY(3px); box-shadow: 0 1px 0 #818cf8; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-arcade:not(.udl-contrast-high):not(.high-contrast) .game-card { border: 3px solid var(--kf-neon, #818cf8) !important; border-radius: 24px; box-shadow: 0 6px 0 var(--kf-neon, #818cf8), 0 0 18px -6px var(--kf-neon, #818cf8); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-arcade:not(.udl-contrast-high):not(.high-contrast) .game-card:nth-child(6n+1) { --kf-neon: #facc15; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-arcade:not(.udl-contrast-high):not(.high-contrast) .game-card:nth-child(6n+2) { --kf-neon: #38bdf8; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-arcade:not(.udl-contrast-high):not(.high-contrast) .game-card:nth-child(6n+3) { --kf-neon: #f472b6; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-arcade:not(.udl-contrast-high):not(.high-contrast) .game-card:nth-child(6n+4) { --kf-neon: #a78bfa; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-arcade:not(.udl-contrast-high):not(.high-contrast) .game-card:nth-child(6n+5) { --kf-neon: #34d399; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-arcade:not(.udl-contrast-high):not(.high-contrast) .game-card:nth-child(6n+6) { --kf-neon: #fb923c; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-arcade:not(.udl-contrast-high):not(.high-contrast) .stat { border-radius: 20px; border: 3px solid #facc15; box-shadow: 0 5px 0 #facc15; }

  /* ---- Help hub ---- */
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-aide:not(.udl-contrast-high):not(.high-contrast) .kf-help-hello { margin-bottom: .8rem; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-aide:not(.udl-contrast-high):not(.high-contrast) .card { border-radius: 24px; border-width: 3px !important; box-shadow: 0 6px 0 rgba(30, 27, 75, .14); transition: transform .12s ease, box-shadow .12s ease; }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-aide:not(.udl-contrast-high):not(.high-contrast) .card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 10px 0 rgba(30, 27, 75, .14); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-aide:not(.udl-contrast-high):not(.high-contrast) .card:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(30, 27, 75, .14); }
  html:not([data-a11y-contrast="1"]) body.fsl-kid-fun.kf-aide:not(.udl-contrast-high):not(.high-contrast) .hero { border-radius: 24px; }
}

@media screen and (prefers-reduced-motion: reduce) {
  body.fsl-kid-fun .path, body.fsl-kid-fun .card.pick, body.fsl-kid-fun .tok, body.fsl-kid-fun .mode-btn, body.fsl-kid-fun .unit-card, body.fsl-kid-fun .day-card, body.fsl-kid-fun.kf-aide .card { transition: none !important; }
  body.fsl-kid-fun .path:hover, body.fsl-kid-fun .card.pick:hover, body.fsl-kid-fun .mode-btn:hover, body.fsl-kid-fun .unit-card:hover, body.fsl-kid-fun .day-card:hover, body.fsl-kid-fun.kf-aide .card:hover { transform: none !important; }
}
