/* The seven reading friends (resources/views/student/partials/asho-icons.blade.php): their motion. */
#ah-defs .t {transform-box: fill-box; transform-origin: center;}
#ah-defs .bob {animation: ah-bob 2.4s ease-in-out infinite;}
@keyframes ah-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
#ah-defs .blink {transform-box: fill-box; transform-origin: center; animation: ah-blink 4s infinite;}
@keyframes ah-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
#ah-defs .heart {animation: ah-heart 3s ease-in infinite; opacity: 0;}
#ah-defs .heart.d2 {animation-delay: 1s;}
#ah-defs .heart.d3 {animation-delay: 2s;}
@keyframes ah-heart { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(8px, -40px) scale(1); opacity: 0; } }
#ah-defs .spark {animation: ah-spark 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center;}
#ah-defs .spark.d2 {animation-delay: .7s;}
#ah-defs .spark.d3 {animation-delay: 1.4s;}
@keyframes ah-spark { 0%, 100% { transform: scale(.3) rotate(0); opacity: .2; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
#ah-defs .flapL {transform-box: fill-box; transform-origin: right center; animation: ah-flapL .5s ease-in-out infinite alternate;}
#ah-defs .flapR {transform-box: fill-box; transform-origin: left center; animation: ah-flapR .5s ease-in-out infinite alternate;}
@keyframes ah-flapL { from { transform: rotate(12deg); } to { transform: rotate(-22deg); } }
@keyframes ah-flapR { from { transform: rotate(-12deg); } to { transform: rotate(22deg); } }
#ah-defs .fly {animation: ah-fly 3s ease-in-out infinite;}
@keyframes ah-fly { 0%, 100% { transform: translate(0, 0) rotate(-3deg); } 50% { transform: translate(4px, -12px) rotate(3deg); } }
#ah-defs .worm {animation: ah-worm 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center;}
@keyframes ah-worm { 0%, 100% { transform: translateY(6px) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(5deg); } }
#ah-defs .seg {animation: ah-seg 1.3s ease-in-out infinite; transform-box: fill-box; transform-origin: center;}
#ah-defs .seg.s2 {animation-delay: .15s;}
#ah-defs .seg.s3 {animation-delay: .3s;}
@keyframes ah-seg { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
#ah-defs .carpet {animation: ah-carpet 3.2s ease-in-out infinite;}
@keyframes ah-carpet { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
#ah-defs .ear {transform-box: fill-box; transform-origin: bottom center; animation: ah-ear 2.4s ease-in-out infinite;}
#ah-defs .ear.e2 {animation-delay: .3s;}
@keyframes ah-ear { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-12deg); } 90% { transform: rotate(8deg); } }
#ah-defs .trail {animation: ah-trail 1.2s linear infinite;}
@keyframes ah-trail { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -24; } }
#ah-defs .orbit {transform-box: view-box; transform-origin: 60px 64px; animation: ah-orbit 6s linear infinite;}
#ah-defs .orbit .keep {transform-box: fill-box; transform-origin: center; animation: ah-orbit 6s linear infinite reverse;}
@keyframes ah-orbit { to { transform: rotate(360deg); } }
#ah-defs .tail {transform-box: fill-box; transform-origin: left bottom; animation: ah-tail 1.6s ease-in-out infinite alternate;}
@keyframes ah-tail { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }
#ah-defs .owl {animation: ah-owl 2.8s ease-in-out infinite;}
@keyframes ah-owl { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
#ah-defs .page {transform-box: fill-box; transform-origin: left center; animation: ah-page 2.2s ease-in-out infinite;}
@keyframes ah-page { 0%, 40% { transform: scaleX(1); } 70%, 100% { transform: scaleX(-1); } }
#ah-defs .bfly {animation: ah-bfly 4s ease-in-out infinite;}
@keyframes ah-bfly { 0% { transform: translate(-10px, 4px) rotate(-6deg); } 25% { transform: translate(6px, -10px) rotate(4deg); } 50% { transform: translate(12px, 2px) rotate(6deg); } 75% { transform: translate(-2px, -6px) rotate(-3deg); } 100% { transform: translate(-10px, 4px) rotate(-6deg); } }
#ah-defs .bw-l {transform-box: fill-box; transform-origin: right center; animation: ah-bwl .35s ease-in-out infinite alternate;}
#ah-defs .bw-r {transform-box: fill-box; transform-origin: left center; animation: ah-bwr .35s ease-in-out infinite alternate;}
@keyframes ah-bwl { from { transform: scaleX(1); } to { transform: scaleX(.35); } }
@keyframes ah-bwr { from { transform: scaleX(1); } to { transform: scaleX(.35); } }

/* "আসো পড়তে বসি" (29 Nov 2026): the Reading Room button became a pill with today's animated friend, the live count in a red
   bubble and a line that changes with the number. Loaded after dashboard.css from student/partials/reading-fab.blade.php. */
.rfab .rfab-btn { width: 70px; height: 70px; display: grid; place-items: center; padding: 0; border: 2px solid #f5d0fe; border-radius: 50%;
  background: linear-gradient(160deg, #fff0f8, #f3e8ff); color: #2a2145; box-shadow: 0 8px 22px rgba(124, 58, 237, .28); animation: ah-hop 4s ease-in-out infinite; }
:root[data-theme="dark"] .rfab .rfab-btn { border-color: #6d4aff; }
.rfab .rfab-btn::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 3px solid #ff8fc7; opacity: 0; animation: ah-ring 4s ease-out infinite; pointer-events: none; }
.rfab .ah-ic { position: static; display: grid; place-items: center; width: 100%; height: 100%; }
.rfab .ah-ic svg { width: 60px; height: 60px; overflow: visible; }
.rfab .rfab-count { position: absolute; top: -8px; right: -10px; bottom: auto; left: auto; transform: none; min-width: 30px; padding: 0 7px; border: 2px solid #fff; border-radius: 99px;
  background: #ef4444; color: #fff; font-size: 15px; font-weight: 800; line-height: 24px; text-align: center; box-shadow: 0 3px 8px rgba(239, 68, 68, .45); }
.rfab.mine .rfab-count { background: #0a8f5e; color: #fff; }
.rfab .rfab-count.ah-pop { animation: ah-pop .5s ease; }
.rfab .ah-tx { display: flex; flex-direction: column; line-height: 1.2; }
.rfab .ah-tx b { font-size: 17px; font-weight: 800; color: #7c3aed; white-space: nowrap; }
.rfab .ah-tx small { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #3f3a5a; white-space: nowrap; }
.rfab .ah-tx .rfab-dot { position: static; width: 8px; height: 8px; border: 0; flex: none; }
@keyframes ah-hop { 0%, 80%, 100% { transform: translateY(0); } 86% { transform: translateY(-7px); } 92% { transform: translateY(0); } 96% { transform: translateY(-3px); } }
@keyframes ah-ring { 0%, 80% { transform: scale(1); opacity: 0; } 84% { opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes ah-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.rfab.open .rfab-btn, .rfab .rfab-btn:hover { animation-play-state: paused; }
@media (max-width: 360px) { .rfab .ah-tx b { font-size: 15px; } .rfab .ah-tx small { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { #ah-defs *, .rfab .rfab-btn, .rfab .rfab-btn::after, .rfab .rfab-count { animation: none !important; } }

/* 30 Nov 2026: the student's own row in the floating list, first and in green */
.rfab-person.me { background: #e4f4ea; border: 1px solid #bfe5cd; border-radius: 12px; padding: 8px 10px; }
.rfab-person.me .rfab-who b { color: #0b6b3a; }
.rfab-metag { margin-left: 6px; padding: 0 7px; border-radius: 999px; background: #0e8a4d; color: #fff; font-style: normal; font-size: 12px; vertical-align: 2px; }
:root[data-theme="dark"] .rfab-person.me { background: rgba(14, 138, 77, .18); border-color: rgba(95, 216, 150, .35); }
:root[data-theme="dark"] .rfab-person.me .rfab-who b { color: #5fd896; }
