/* VnDoc mascot image refresh 2026-10-26. Scoped visual-only overlay.
   Generated WebP assets are self-hosted on this Pages app; no external dependencies. */
.top .brand { min-width: 0; }
.top .brand-icon { display: inline-flex; flex: 0 0 auto; }
.top .brand-icon img {
  display: block; width: 55px; height: 55px; object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 18, 39, .22));
}
.top .brand strong { font-size: clamp(16px, 1.3vw, 21px); line-height: 1.2; }

#view-home .hero { isolation: isolate; }
#view-home .hero-mascot {
  position: absolute; z-index: 1;
  right: 1%; bottom: -14px;
  width: clamp(185px, 29vw, 365px);
  max-height: 103%; height: auto;
  object-fit: contain; object-position: bottom center;
  opacity: 1;
  filter: drop-shadow(0 12px 16px rgba(4, 22, 44, .34));
}
#view-home .hero > h1,
#view-home .hero > p,
#view-home .hero > .hero-kicker { position: relative; z-index: 2; }
#view-home .hero > h1,
#view-home .hero > p { max-width: 73%; }

#view-home .study-teaser-mascot {
  width: 72px; height: 72px; object-fit: contain; flex: 0 0 auto;
}
#view-home .home-study-link > div { flex: 1 1 auto; min-width: 170px; }
#view-home .home-study-link > button { flex: 0 0 auto; }

#view-study .study-intro-mascot {
  flex: 0 0 auto; width: 88px; height: 88px;
  object-fit: contain; filter: drop-shadow(0 6px 10px rgba(6,32,52,.19));
}
#view-study .study-heading > div { flex: 1 1 auto; min-width: 0; }

#view-learning .training-mascot-banner {
  display: flex; align-items: center; gap: 13px;
  margin: 4px 0 16px; padding: 8px 14px;
  border: 1px solid #c6e6e3; border-radius: 14px;
  background: linear-gradient(95deg,#fffbee,#e8fcf9);
  color: #24566c; font-weight: 800; font-size: 14px;
}
#view-learning .training-mascot-banner img {
  width: 74px; height: 74px; object-fit: contain; flex: 0 0 auto;
}

#view-game .mascot-coach .mascot-coach-art {
  display: inline-block; width: 40px; height: 40px;
  object-fit: contain; flex: 0 0 auto; font-size: 0;
}
#view-game .feedback.good,
#view-game .feedback.bad {
  background-position: 9px center;
  background-size: 34px 34px;
  background-repeat: no-repeat;
  padding-left: 52px;
}
#view-game .feedback.good { background-image: url('/assets/mascot-correct.webp'); }
#view-game .feedback.bad { background-image: url('/assets/mascot-encourage.webp'); }

#view-results .result-mascot-art {
  display: flex; align-items: center; justify-content: center;
  height: 148px; margin: 0 auto 4px;
}
#view-results .result-mascot-art img {
  display: block; width: 150px; height: 150px; object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(27,72,83,.15));
}
#view-results .result-mascot-try { display: none; }
#view-results[data-outcome="defeat"] .result-mascot-win { display: none; }
#view-results[data-outcome="defeat"] .result-mascot-try { display: block; }

@media (max-width: 1100px) {
  .top .brand strong { font-size: 17px; }
  #view-home .hero-mascot { width: clamp(160px, 28vw, 300px); }
}
@media (max-width: 780px) {
  .top .brand-icon img { width: 42px; height: 42px; }
  .top .brand strong { font-size: 17px; }
  #view-home .hero-mascot {
    width: 39%; right: -2%; bottom: -8px; opacity: .9;
  }
  #view-home .hero > h1, #view-home .hero > p { max-width: 79%; }
  #view-study .study-intro-mascot { width: 76px; height: 76px; }
  #view-learning .training-mascot-banner img { width: 58px; height: 58px; }
  #view-learning .training-mascot-banner { padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 560px) {
  #view-home .hero-mascot { width: 44%; opacity: .67; }
  #view-home .hero > h1 { max-width: 83%; }
  #view-home .hero > p { max-width: 88%; }
  #view-home .study-teaser-mascot { width: 48px; height: 48px; }
  #view-study .study-intro-mascot { width: 66px; height: 66px; }
  #view-game .feedback.good, #view-game .feedback.bad {
    background-image: none; padding-left: 10px;
  }
  #view-results .result-mascot-art { height: 122px; }
  #view-results .result-mascot-art img { width: 124px; height: 124px; }
}
@media (prefers-reduced-motion: reduce) {
  #view-home .hero-mascot, #view-results .result-mascot-art img { transition: none; }
}
