/* Fun (cartoon) theme. Everything is scoped to [data-theme="fun"], so the Classic look in
 * style.css is untouched. Loaded after style.css and overrides its colour variables + shapes.
 * To go live with Fun only: fold these rules into style.css and delete the Classic ones. */

:root[data-theme="fun"] {
  --bg: #FFF4DC;
  --card: #ffffff;
  --ink: #2b2140;
  --muted: #7a6a8f;
  --brand: #2EC4B6;
  --brand-dark: #178f84;
  --rec: #FF5A6E;
  --line: #F2D9A6;
  --accent: #FF9F43;
  --purple: #7C5CFC;
  --shadow: rgba(43, 33, 64, .22);
}

[data-theme="fun"] .classic-only { display: none !important; }
[data-theme="fun"] .fun-only { display: block; }
[data-theme="fun"] span.fun-only { display: inline-block; }

[data-theme="fun"] body {
  font-family: 'Nunito', 'Baloo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 159, 67, .18) 2px, transparent 2px);
  background-size: 26px 26px;
}

/* ---- header ---- */
[data-theme="fun"] .top {
  border-radius: 0 0 28px 28px;
  border-bottom: 4px solid var(--header-dark);
  padding-bottom: 16px;
}
[data-theme="fun"] .top h1 { font-size: 1.6rem; font-weight: 900; letter-spacing: .3px; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
[data-theme="fun"] .env { font-weight: 700; }
[data-theme="fun"] .settings-btn { background: #fff; box-shadow: 0 3px 0 var(--header-dark); }
[data-theme="fun"] .settings-btn:active { transform: translateY(3px); box-shadow: none; }

/* ---- cards ---- */
[data-theme="fun"] .panel {
  border: 3px solid var(--ink); border-radius: 24px;
  box-shadow: 0 6px 0 var(--shadow);
}
[data-theme="fun"] .hw-title { font-size: 1.4rem; font-weight: 900; margin: 6px 0 0; }

/* ---- chunky buttons ---- */
[data-theme="fun"] .btn {
  font-weight: 900; border-radius: 18px; border: 3px solid var(--ink);
  border-bottom-width: 6px; background: #fff; color: var(--ink);
  transition: transform .08s;
}
[data-theme="fun"] .btn.primary { background: var(--brand); color: #fff; border-color: var(--ink); text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
[data-theme="fun"] .btn.primary:active { background: var(--brand); }
[data-theme="fun"] .btn:active { transform: translateY(4px); border-bottom-width: 2px; }
[data-theme="fun"] .btn:disabled { opacity: .5; }

/* ---- mascot greeting ---- */
[data-theme="fun"] .hw-greet { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
[data-theme="fun"] .greet-face { flex: none; width: 84px; animation: fun-float 3s ease-in-out infinite; }
[data-theme="fun"] .greet-face svg, [data-theme="fun"] .coach-face svg { width: 100%; height: auto; display: block; }
[data-theme="fun"] .greet-say, [data-theme="fun"] .coach-say {
  position: relative; margin: 0; padding: 10px 14px; background: #fff; border: 3px solid var(--ink);
  border-radius: 18px; font-weight: 800; line-height: 1.3;
}
[data-theme="fun"] .greet-say::before, [data-theme="fun"] .coach-say::before {
  content: ''; position: absolute; left: -11px; top: 50%; margin-top: -8px;
  border: 8px solid transparent; border-right-color: var(--ink); border-left: 0;
}
@keyframes fun-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---- homework list ---- */
[data-theme="fun"] .hw-item {
  background: #fff; border: 3px solid var(--ink); border-bottom-width: 6px; border-radius: 18px; padding: 12px;
}
[data-theme="fun"] .hw-item:active { transform: translateY(4px); border-bottom-width: 2px; }
[data-theme="fun"] .hw-item.scored { background-image: linear-gradient(90deg, #b9f5c8 var(--score), transparent var(--score)); }
[data-theme="fun"] .hw-item-icon {
  flex: none; width: 46px; height: 46px; border-radius: 14px; font-size: 1.6rem; line-height: 46px; text-align: center;
  background: var(--accent); border: 3px solid var(--ink);
}
[data-theme="fun"] .hw-item-day { width: 82px; font-weight: 900; }
[data-theme="fun"] .hw-item-status { border: 2px solid var(--ink); font-weight: 900; }
[data-theme="fun"] .hw-item-status.done { background: #b9f5c8; color: #14532d; }
[data-theme="fun"] .hw-item-status.progress { background: #ffe08a; color: #7a4a00; }
[data-theme="fun"] .hw-item-status.new { background: #fff; }

/* ---- permission card ---- */
[data-theme="fun"] .perm { border: 3px solid var(--ink); border-radius: 18px; background: #ffe9b8; }
[data-theme="fun"] .perm.blocked { background: #ffd3d8; }
[data-theme="fun"] .perm.checking { background: #fff; }

/* ---- runner ---- */
[data-theme="fun"] .hw-runner { background: var(--bg); background-image: radial-gradient(rgba(255, 159, 67, .18) 2px, transparent 2px); background-size: 26px 26px; }
[data-theme="fun"] .hw-runner-top { border-bottom: 4px solid var(--header-dark); border-radius: 0 0 22px 22px; }
[data-theme="fun"] .hw-exit { background: #fff; color: var(--ink); font-weight: 900; box-shadow: 0 3px 0 var(--header-dark); }

[data-theme="fun"] .hw-coach { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
[data-theme="fun"] .coach-face { flex: none; width: 68px; }
[data-theme="fun"] .hw-coach.pop .coach-face { animation: fun-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes fun-pop { 0% { transform: scale(.6) rotate(-8deg); } 100% { transform: scale(1) rotate(0); } }

[data-theme="fun"] .hw-qtitle { font-weight: 900; }
[data-theme="fun"] .hw-qtext { color: var(--ink); font-weight: 700; }
[data-theme="fun"] .hw-qtext strong { color: var(--purple); }
[data-theme="fun"] .hw-speak-btn { width: 46px; height: 46px; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--shadow); }
[data-theme="fun"] .hw-speak-btn.playing { background: var(--accent); border-color: var(--ink); }
[data-theme="fun"] .hw-seg.seg-active, [data-theme="fun"] .hw-word.word-active,
[data-theme="fun"] .hw-story-body .hw-seg.seg-active, [data-theme="fun"] .hw-story-body .hw-word.word-active { color: var(--purple); }
[data-theme="fun"] .hw-story-body .hw-seg.seg-active { text-decoration-color: var(--accent); text-decoration-thickness: 4px; }

[data-theme="fun"] .hw-img-slide, [data-theme="fun"] .hw-video, [data-theme="fun"] .hw-story-body {
  border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--shadow);
}
[data-theme="fun"] .hw-story-body { border-color: var(--ink); background: #fffdf5; }

/* answer options: big chunky cards */
[data-theme="fun"] .hw-opt {
  font-weight: 800; font-size: 1.1rem; border: 3px solid var(--ink); border-bottom-width: 6px; border-radius: 18px; padding: 14px 16px;
  transition: transform .08s;
}
[data-theme="fun"] .hw-opt:active { transform: translateY(3px); border-bottom-width: 3px; }
[data-theme="fun"] .hw-opt.selected { background: #dbe8ff; border-color: #2563eb; color: var(--ink); animation: fun-bounce .3s; } /* blue, not green */
[data-theme="fun"] .hw-opt.correct { background: #b9f5c8; border-color: #15803d; color: #14532d; animation: fun-bounce .4s; }
[data-theme="fun"] .hw-opt.wrong { background: #ffd3d8; border-color: var(--rec); color: #9f1239; animation: fun-shake .4s; }
@keyframes fun-bounce { 0% { transform: scale(.96); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes fun-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }

[data-theme="fun"] .hw-obj-feedback { border: 3px solid var(--ink); border-radius: 18px; background: #ffd3d8; }
[data-theme="fun"] .hw-obj-feedback.correct { background: #b9f5c8; }

[data-theme="fun"] textarea, [data-theme="fun"] select { border: 3px solid var(--ink); border-radius: 16px; font-weight: 700; }
[data-theme="fun"] #hw-answer-text[readonly] { background: #eceff1; } /* grey: it is read-only */
[data-theme="fun"] .hw-explain label { font-weight: 900; }

/* record + nav bars */
[data-theme="fun"] .hw-runner-nav { background: #fff; border-top: 3px solid var(--ink); }
[data-theme="fun"] .hw-record-btn { border: 4px solid var(--ink); border-bottom-width: 8px; }
[data-theme="fun"] .hw-record-btn:active { transform: translateY(3px); border-bottom-width: 3px; }
[data-theme="fun"] .hw-record-btn.recording { animation: fun-pulse 1s infinite; }
@keyframes fun-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 110, .6); } 100% { box-shadow: 0 0 0 16px rgba(255, 90, 110, 0); } }
[data-theme="fun"] .hw-wave span { width: 5px; background: var(--line); }

/* celebration */
[data-theme="fun"] .hw-cheer-card { border: 4px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--shadow); padding: 20px 32px; }
[data-theme="fun"] .hw-cheer-icon span.fun-only { width: 110px; }
[data-theme="fun"] .hw-cheer-icon svg { width: 100%; height: auto; display: block; }
[data-theme="fun"] .hw-cheer-msg { font-weight: 900; color: var(--purple); font-size: 1.5rem; }

/* alert popup + settings */
[data-theme="fun"] .alert-box, [data-theme="fun"] .settings-box { border: 3px solid var(--ink); }
[data-theme="fun"] .settings-box { border-bottom: 0; }
[data-theme="fun"] .theme-opt { border-color: var(--ink); font-weight: 700; }
[data-theme="fun"] .theme-opt.active { background: #e7fbf8; box-shadow: 0 4px 0 var(--brand-dark); }

@media (prefers-reduced-motion: reduce) {
  [data-theme="fun"] * { animation: none !important; transition: none !important; }
}

/* ---- homework row: status badge gets its own line so it never covers the chapter name ---- */
[data-theme="fun"] .hw-item {
  display: grid; grid-template-columns: 46px 86px minmax(0, 1fr);
  grid-template-areas: "icon day main" "status status status";
  column-gap: 12px; row-gap: 10px; align-items: center;
}
[data-theme="fun"] .hw-item-icon { grid-area: icon; }
[data-theme="fun"] .hw-item-day { grid-area: day; width: auto; }
[data-theme="fun"] .hw-item-main { grid-area: main; }
[data-theme="fun"] .hw-item-status { grid-area: status; justify-self: end; }

/* ---- image gallery arrows: chunky cartoon buttons, like the speaker button ---- */
[data-theme="fun"] .hw-gallery-nav {
  width: 46px; height: 46px; background: var(--accent); color: var(--ink);
  border: 3px solid var(--ink); font-size: 1.7rem; font-weight: 900; padding: 0 0 4px;
  box-shadow: 0 4px 0 var(--shadow);
}
[data-theme="fun"] .hw-gallery-nav:active { background: var(--accent); transform: translateY(calc(-50% + 3px)); box-shadow: none; }

/* ---- app home tiles ---- */
[data-theme="fun"] .app-home .hw-greet { margin-bottom: 16px; }
[data-theme="fun"] .tile {
  border: 3px solid var(--ink); border-bottom-width: 7px; border-radius: 24px; font-weight: 900;
  transition: transform .08s;
}
[data-theme="fun"] .tile:active { transform: translateY(5px); border-bottom-width: 2px; }
[data-theme="fun"] .tile-speak { background: var(--brand); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
[data-theme="fun"] .tile-test { background: var(--accent); color: var(--ink); }
[data-theme="fun"] .tile-icon { width: 84px; height: 84px; line-height: 84px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); font-size: 2.6rem; }
[data-theme="fun"] .tile-label { font-size: 1.15rem; }
[data-theme="fun"] .hw-back { border: 3px solid var(--ink); font-weight: 900; box-shadow: 0 3px 0 var(--shadow); }
[data-theme="fun"] .hw-back:active { transform: translateY(3px); box-shadow: none; }

/* font icons in the Fun theme */
[data-theme="fun"] .settings-btn i { color: var(--ink); }
[data-theme="fun"] .hw-exit i { color: var(--ink); }
[data-theme="fun"] .tile-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
[data-theme="fun"] .tile-icon i { font-size: 2.6rem; color: var(--ink); vertical-align: 0; }
[data-theme="fun"] .hw-item-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
[data-theme="fun"] .hw-item-icon i { font-size: 1.6rem; color: var(--ink); vertical-align: 0; }
[data-theme="fun"] .hw-gallery-nav i { font-size: 1.3rem; }
[data-theme="fun"] .hw-cheer-icon .classic-only { display: none; }

/* loading overlay */
[data-theme="fun"] .hw-loading { background: rgba(255, 244, 220, .85); }
[data-theme="fun"] .hw-loading-box { border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--shadow); }
[data-theme="fun"] .hw-loading-face { width: 84px; margin: 0 auto 8px; animation: fun-float 1.6s ease-in-out infinite; }
[data-theme="fun"] .hw-loading-face svg { width: 100%; height: auto; display: block; }
[data-theme="fun"] .hw-loading-ring { border-color: #ffe2b0; border-top-color: var(--accent); }

/* ---- rewards: stars, streak, sounds ---- */
[data-theme="fun"] .star { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; }
[data-theme="fun"] .flame { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; }
[data-theme="fun"] .home-score {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 3px solid var(--ink); font-weight: 900; font-size: 1.05rem; box-shadow: 0 3px 0 var(--shadow);
}
[data-theme="fun"] .home-score .js-star-icon { display: inline-flex; font-size: 1.4rem; }

[data-theme="fun"] .hw-score { display: flex; align-items: center; gap: 6px; flex: none; }
[data-theme="fun"] .score-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px; border-radius: 999px;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); font-weight: 900; font-size: .95rem;
}
[data-theme="fun"] .score-chip[hidden] { display: none; }
[data-theme="fun"] .score-chip .js-star-icon, [data-theme="fun"] .score-chip .js-flame-icon { display: inline-flex; font-size: 1.15rem; }
[data-theme="fun"] .score-chip.streak { background: #ffe3d1; animation: fun-bounce .4s; }

[data-theme="fun"] .hw-item-stars { grid-area: stars; justify-self: start; font-weight: 900; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 4px; }
[data-theme="fun"] .hw-item { grid-template-areas: "icon day main" "stars stars status"; }

[data-theme="fun"] .cheer-star-row { display: flex; justify-content: center; gap: 6px; font-size: 2.6rem; margin-top: 4px; }
[data-theme="fun"] .cheer-star-row.big { font-size: 3.4rem; }
[data-theme="fun"] .cheer-star-row .star.pop { opacity: 0; transform: scale(.2) rotate(-40deg); animation: fun-star-in .5s cubic-bezier(.34, 1.56, .64, 1) forwards; }
[data-theme="fun"] .cheer-star-row .star.off { filter: grayscale(1); }
@keyframes fun-star-in { to { opacity: 1; transform: scale(1) rotate(0); } }
[data-theme="fun"] .cheer-streak { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 0; font-weight: 900; color: #c2410c; font-size: 1.1rem; }

[data-theme="fun"] .hw-result { position: fixed; inset: 0; z-index: 250; background: rgba(43, 33, 64, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
[data-theme="fun"] .hw-result-card {
  width: 100%; max-width: 340px; text-align: center; background: #fff; border: 4px solid var(--ink); border-radius: 28px;
  box-shadow: 0 8px 0 var(--shadow); padding: 18px 20px 20px; animation: hw-cheer-pop .5s cubic-bezier(.34, 1.56, .64, 1);
}
[data-theme="fun"] .hw-result-face { width: 110px; margin: 0 auto; animation: fun-float 2s ease-in-out infinite; }
[data-theme="fun"] .hw-result-face svg { width: 100%; height: auto; display: block; }
[data-theme="fun"] .hw-result-card h2 { margin: 6px 0 4px; font-size: 1.5rem; font-weight: 900; color: var(--purple); }
[data-theme="fun"] .hw-result-line { margin: 8px 0 0; font-size: 1.1rem; font-weight: 800; }
[data-theme="fun"] .hw-result-total { margin: 8px 0 14px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-weight: 800; }
[data-theme="fun"] .cheer-note { margin-top: 6px; font-size: .9rem; font-weight: 800; color: var(--muted); }
[data-theme="fun"] .hw-video-exit { background: var(--accent); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--shadow); font-weight: 900; }
[data-theme="fun"] .hw-video-wrap:fullscreen .hw-video, [data-theme="fun"] .hw-video-wrap:-webkit-full-screen .hw-video { border: 0; border-radius: 0; box-shadow: none; }

/* celebration blast: confetti bursts over the card too, and the ring is bolder */
[data-theme="fun"] .hw-cheer-burst { z-index: 2; }
[data-theme="fun"] .hw-cheer-shockwave { border-width: 6px; border-color: rgba(255, 201, 51, .95); }
[data-theme="fun"] .hw-item-icon .ico-svg { width: 1.9rem; height: 1.9rem; color: var(--ink); vertical-align: 0; }
/* centre the subject icon (font icon or SVG) in its box, both ways */
[data-theme="fun"] span.hw-item-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding: 0; }
[data-theme="fun"] span.hw-item-icon i, [data-theme="fun"] span.hw-item-icon .ico-svg { display: block; vertical-align: baseline; margin: 0; }
[data-theme="fun"] .voice-speed { font-weight: 800; }
[data-theme="fun"] .voice-try { width: 100%; }
[data-theme="fun"] .greet-face { cursor: pointer; }
[data-theme="fun"] .tile.locked { opacity: .6; filter: grayscale(.7); }
[data-theme="fun"] .tile.locked:active { transform: none; border-bottom-width: 7px; }
[data-theme="fun"] .hw-runner-top .hw-exit { border: 3px solid var(--ink); }
[data-theme="fun"] .top h1 { font-size: clamp(1.1rem, 5.6vw, 1.45rem); }
[data-theme="fun"] .hw-runner-top .hw-mute { width: 40px; height: 40px; }

/* homework list rows: one icon, then the day and date (no subject / title line) */
[data-theme="fun"] .hw-item { grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "icon day status" "icon stars stars"; }
[data-theme="fun"] .hw-item:not(:has(.hw-item-stars)) { grid-template-areas: "icon day status"; }
[data-theme="fun"] .hw-item .hw-item-status { align-self: center; }
[data-theme="fun"] .hw-record-bar { background: #fff; border-top: 3px solid var(--ink); }
[data-theme="fun"] .pin-form input { border: 3px solid var(--ink); border-radius: 16px; font-weight: 700; }
[data-theme="fun"] .hw-item-status.overdue { background: #ffd3d8; color: #9f1239; }
[data-theme="fun"] .hw-item-status.submitted { background: #c9e8ff; color: #0b4a7a; }
[data-theme="fun"] .hw-media-text { color: var(--ink); font-weight: 800; }
[data-theme="fun"] .hw-video-wrap { border: 3px solid var(--ink); }
[data-theme="fun"] .hw-video-play-icon { border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--shadow); }

/* Result page of a scored homework */
[data-theme="fun"] .hw-res-total { border: 3px solid var(--ink); background: #b9f5c8; color: #14532d; font-weight: 900; }
[data-theme="fun"] .hw-res-q { background: #fff; border: 3px solid var(--ink); border-left-width: 8px; border-radius: 16px; }
[data-theme="fun"] .hw-res-ans.mine { background: #fff4dc; }

/* ---- Weekly Toppers (Fun theme) ---- */
[data-theme="fun"] .tile-toppers { background: var(--purple); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
[data-theme="fun"] .tile-toppers .tile-icon i { color: #f5b301; }
[data-theme="fun"] .tp-nav, [data-theme="fun"] .tp-row, [data-theme="fun"] .tp-award { border-width: 3px; border-color: var(--ink); }
[data-theme="fun"] .tp-row { border-radius: 20px; box-shadow: 0 4px 0 var(--shadow); }
[data-theme="fun"] .tp-row.me { box-shadow: 0 0 0 3px #7c5cfc, 0 4px 0 var(--shadow), 0 8px 18px rgba(124, 92, 252, .35); }
[data-theme="fun"] .tp-nav { box-shadow: 0 3px 0 var(--shadow); color: var(--ink); }
[data-theme="fun"] .tp-nav:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
[data-theme="fun"] .tp-week-label b { font-weight: 900; font-size: 1.2rem; }

/* ---- Parents Feedback (Fun theme) ---- */
[data-theme="fun"] .tile-feedback { background: var(--rec); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
[data-theme="fun"] .tile-feedback .tile-icon i { color: var(--rec); }
[data-theme="fun"] .fb-form textarea, [data-theme="fun"] .fb-form select, [data-theme="fun"] .fb-item { border: 3px solid var(--ink); border-radius: 18px; }
[data-theme="fun"] .fb-item { box-shadow: 0 4px 0 var(--shadow); }

/* today's homework (Fun theme): bigger, light purple; the status badge on the title line, the message on a full-width row under it */
[data-theme="fun"] .hw-item.today { background-color: #e9deff; padding-top: 20px; padding-bottom: 16px; align-items: start; grid-template-areas: "icon day status" "icon stars stars" "note note note"; }
[data-theme="fun"] .hw-item.today:not(:has(.hw-item-stars)) { grid-template-areas: "icon day status" "note note note"; }
[data-theme="fun"] .hw-item.today .hw-item-day { font-size: 1.6rem; line-height: 1.1; }
[data-theme="fun"] .hw-item.today .hw-item-day small { font-size: .85rem; }
[data-theme="fun"] .hw-item.today .hw-item-status { align-self: start; }
[data-theme="fun"] .hw-item.today.scored { background-color: #fff; border-color: var(--ink); } /* scored: no purple, it does not go with the green bar */
[data-theme="fun"] .hw-item-note { grid-area: note; color: #5b3fd1; font-weight: 900; }

/* ---- Message to School: the chat (Fun theme) ---- */
[data-theme="fun"] .fb-bubble, [data-theme="fun"] .fb-reply textarea { border: 3px solid var(--ink); }
[data-theme="fun"] .fb-bubble { border-radius: 18px; box-shadow: 0 3px 0 var(--shadow); }
[data-theme="fun"] .fb-bubble.me { background: #b9f5e8; border-bottom-right-radius: 5px; }
[data-theme="fun"] .fb-bubble.them { border-bottom-left-radius: 5px; }
[data-theme="fun"] .fb-chip { border: 2px solid var(--ink); }
[data-theme="fun"] .hw-player-btn { border: 4px solid var(--ink); border-bottom-width: 8px; }
[data-theme="fun"] .hw-player-btn:active { transform: translateY(3px); border-bottom-width: 3px; }
[data-theme="fun"] .hw-answer-audio { border-color: var(--ink); }
[data-theme="fun"] .settings-btn svg { color: var(--ink); }
[data-theme="fun"] .menu { border: 3px solid var(--ink); border-radius: 18px; background: #fff; }
[data-theme="fun"] .menu button:hover, [data-theme="fun"] .menu button:focus-visible { background: #e7fbf8; }
[data-theme="fun"] .menu-sep { background: var(--ink); opacity: .25; }
[data-theme="fun"] .pf-form input[type="email"], [data-theme="fun"] .pf-form input[type="tel"] { border: 3px solid var(--ink); border-radius: 16px; font-weight: 700; }
[data-theme="fun"] .hw-item.with-note { grid-template-areas: "icon day status" "icon stars stars" "note note note"; }
[data-theme="fun"] .hw-item.with-note:not(:has(.hw-item-stars)) { grid-template-areas: "icon day status" "note note note"; }
[data-theme="fun"] .hw-item.with-note .hw-item-note { color: #0b4a7a; font-size: 1rem; border-top-color: rgba(11, 74, 122, .3); }
