/* (c) Britt Innovations Inc., Monsieur Britt.
   Bill, 2026-11-19: make the daily lessons look more fun for kids. Loaded last on the Grade 5 to 7 pages.
   Colour only: no layout changes, no new controls, nothing moves on its own. Screens only. */
@media screen {
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) { background-image: radial-gradient(circle at 8% 0%, rgba(253, 230, 138, .45) 0, transparent 30%), radial-gradient(circle at 95% 8%, rgba(186, 230, 253, .5) 0, transparent 34%); background-attachment: fixed; }

  /* Activity tabs: each one its own colour, finished ones green with a check. */
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs .nav-tab { border-radius: 16px; border: 2px solid var(--tab-line, #c7d2fe); background: var(--tab-bg, #eef2ff) !important; color: #1e1b4b; font-weight: 800; box-shadow: 0 4px 0 var(--tab-line, #c7d2fe); transition: transform .1s, box-shadow .1s; position: relative; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs .nav-tab:hover { transform: translateY(-2px); }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs .nav-tab:nth-child(6n+1) { --tab-bg: #fef3c7; --tab-line: #fcd34d; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs .nav-tab:nth-child(6n+2) { --tab-bg: #e0f2fe; --tab-line: #7dd3fc; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs .nav-tab:nth-child(6n+3) { --tab-bg: #fce7f3; --tab-line: #f9a8d4; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs .nav-tab:nth-child(6n+4) { --tab-bg: #ede9fe; --tab-line: #c4b5fd; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs .nav-tab:nth-child(6n+5) { --tab-bg: #ffedd5; --tab-line: #fdba74; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs .nav-tab:nth-child(6n+6) { --tab-bg: #ccfbf1; --tab-line: #5eead4; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs .nav-tab.active { background: #4f46e5 !important; color: #fff !important; border: 2px solid #312e81; box-shadow: 0 4px 0 #312e81; transform: translateY(-2px); }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs .nav-tab.completed:not(.active) { background: #dcfce7 !important; border-color: #4ade80; box-shadow: 0 4px 0 #4ade80; color: #14532d; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs .nav-tab.completed::after { display: block; content: "✓"; position: absolute; top: -8px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 13px; line-height: 22px; text-align: center; box-shadow: 0 2px 0 #14532d; }

  /* Bill, 2026-11-23: the optional Révision tab must not look like unfinished work. Grey and dashed, never a to-do. */
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs #tab-lessonReview { background: #f8fafc !important; border: 2px dashed #94a3b8 !important; box-shadow: none !important; color: #475569 !important; font-weight: 700; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs #tab-lessonReview.active { background: #e2e8f0 !important; color: #1e293b !important; }

  /* Answer choices light up when picked. */
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) .daily-choice, body.grade-learning-playful.fsl-student-experience:not(.high-contrast) .practice-choice { border-radius: 14px; border: 2px solid #e2e8f0; background: #fff; transition: border-color .15s, background .15s, transform .1s; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) .daily-choice:hover, body.grade-learning-playful.fsl-student-experience:not(.high-contrast) .practice-choice:hover { border-color: #818cf8; transform: translateY(-1px); }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) .daily-choice:has(input:checked), body.grade-learning-playful.fsl-student-experience:not(.high-contrast) .practice-choice:has(input:checked) { background: #eef2ff; border-color: #4f46e5; box-shadow: inset 0 0 0 1px #4f46e5; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) .daily-choice:has(input:checked)::after, body.grade-learning-playful.fsl-student-experience:not(.high-contrast) .practice-choice:has(input:checked)::after { content: "✓"; margin-left: auto; padding-left: .6rem; font-weight: 900; color: #4f46e5; }

  /* Listen and help buttons: round and friendly. Check and Next: big and green. */
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #activityContent .daily-actions button { border-radius: 999px; box-shadow: 0 3px 0 rgba(30, 64, 175, .25); }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #activityContent #practiceCheck:not(:disabled), body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #activityContent #practiceCorrectionCheck:not(:disabled), body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #activityContent #dailyCorrectionCheck:not(:disabled), body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #activityContent button[onclick^="FSL_DAILY.checkDictation"], body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #activityContent button[onclick^="FSL_DAILY.next"], body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #dailySubmit { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; border: 0; border-radius: 999px; box-shadow: 0 4px 0 #15803d !important; font-weight: 800; background-color: #16a34a !important; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #practiceCheck:not(:disabled):active, body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #activityContent button[onclick^="FSL_DAILY.next"]:active { transform: translateY(2px); box-shadow: 0 2px 0 #15803d; }

  /* Progress bars: warm and colourful. */
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #activityContent progress { height: 16px; border-radius: 999px; overflow: hidden; accent-color: #22c55e; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #activityContent progress::-webkit-progress-bar { background: #fef3c7; border-radius: 999px; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #activityContent progress::-webkit-progress-value { background: linear-gradient(90deg, #f59e0b, #22c55e); border-radius: 999px; }

  /* The word bank and the "still to finish" list stand out a little more. */
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) .daily-word-bank { border-radius: 14px !important; }
  body.grade-learning-playful.fsl-student-experience:not(.high-contrast) .daily-word-bank strong::before { content: "🧺 "; }

  @media (prefers-reduced-motion: reduce) { body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs .nav-tab, body.grade-learning-playful.fsl-student-experience:not(.high-contrast) .daily-choice, body.grade-learning-playful.fsl-student-experience:not(.high-contrast) .practice-choice { transition: none; } }
}

/* Bill, 2026-11-19: a cast friend beside the "Your turn" card (fsl-lesson-cast.js). */
.cast-buddy { display: flex; align-items: center; gap: .6rem; margin: .2rem 0 .4rem; }
.cast-buddy-art { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 3px 0 rgba(0,0,0,.12)); }
.cast-buddy-bubble { position: relative; padding: .45rem .8rem; border-radius: 14px; background: #fff; border: 2px solid #fcd34d; color: #78350f; font-weight: 700; font-size: .95rem; box-shadow: 0 3px 0 #fcd34d; }
.cast-buddy-bubble::before { content: ""; position: absolute; left: -9px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-right-color: #fcd34d; border-left: 0; }

/* Whole-day celebration. */
.day-party { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: rgba(30, 27, 75, .55); padding: 16px; }
.day-party-card { position: relative; max-width: 560px; width: 100%; text-align: center; padding: 22px 20px 20px; border-radius: 26px; background: linear-gradient(160deg, #fffbeb, #ecfdf5); border: 4px solid #fcd34d; box-shadow: 0 10px 0 #f59e0b, 0 20px 50px rgba(0,0,0,.3); animation: dayPartyPop .45s ease-out; }
.day-party-card h2 { margin: .4rem 0 .2rem; font-size: 1.6rem; color: #3730a3; }
.day-party-card p { margin: .4rem 0; color: #1e1b4b; }
.day-party-stars { font-size: 2.2rem; letter-spacing: .2em; }
.day-party-cast { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.day-party-friend svg { width: 72px; height: 72px; animation: dayPartyHop 1s ease-in-out infinite alternate; }
.day-party-friend:nth-child(2n) svg { animation-delay: .25s; }
.day-party-friend:nth-child(3n) svg { animation-delay: .5s; }
.day-party-close { margin-top: .6rem; font: inherit; font-weight: 800; font-size: 1.15rem; padding: .8rem 1.8rem; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 4px 0 #15803d; cursor: pointer; }
.day-party-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.day-party-confetti i { position: absolute; top: -40px; font-style: normal; font-size: 28px; animation: dayPartyFall 3.2s linear infinite; }
@keyframes dayPartyPop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes dayPartyHop { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes dayPartyFall { to { transform: translateY(110vh) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .day-party-card, .day-party-friend svg, .day-party-confetti i { animation: none; } .day-party-confetti { display: none; } }
@media print { .cast-buddy, .day-party { display: none !important; } }

/* Bill, 2026-11-19: Révision is an optional study tab, never required, so it looks different from the activities. */
#tab-lessonReview .tab-optional { display: block; font-size: .78rem; font-weight: 600; opacity: .8; }
body.grade-learning-playful.fsl-student-experience:not(.high-contrast) #navTabs #tab-lessonReview:not(.active) { background: #f8fafc !important; border-style: dashed; border-color: #94a3b8; box-shadow: none; color: #475569; }
