/* =========================================================
   Shared Mascot Widget — "น้อง IC" (ใช้ร่วมกันได้ทุกแอปของภาควิชา)
   ธีม Lavender & Buttercream Pastel + Zero-Overflow Panel + Spotlight Tour
   ========================================================= */
.ic-mascot-widget,
.ic-mascot-panel,
.ic-tour-tooltip,
.ic-tour-spotlight {
  box-sizing: border-box;
  font-family: 'Sarabun', 'Prompt', sans-serif;
}

.ic-mascot-widget *,
.ic-mascot-panel *,
.ic-tour-tooltip * {
  box-sizing: border-box;
}

.ic-mascot-hidden {
  display: none !important;
}

.ic-mascot-widget {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.ic-mascot-widget.align-left {
  align-items: flex-start;
}

.ic-mascot-widget.align-left .ic-mascot-pill {
  border-radius: 18px 18px 18px 4px;
}

.ic-mascot-widget.align-top {
  flex-direction: column-reverse;
}

.ic-mascot-widget > * {
  pointer-events: auto;
}

.ic-mascot-dock {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.ic-mascot-btn {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.ic-mascot-btn:hover {
  transform: translateY(-4px) scale(1.05);
}

.ic-mascot-btn:focus-visible {
  outline: 3px solid #7c5eb5;
  outline-offset: 4px;
  border-radius: 20px;
}

.ic-mascot-img {
  width: 90px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(84, 58, 134, 0.22));
  animation: icMascotBob 3.4s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}

.ic-mascot-shadow {
  width: 54px;
  height: 9px;
  margin-top: -5px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(90, 62, 140, 0.26) 0%, rgba(90, 62, 140, 0) 75%);
  animation: icMascotShadowPulse 3.4s ease-in-out infinite;
}

.ic-mascot-sparkle {
  position: absolute;
  top: 2px;
  left: 6px;
  font-size: 14px;
  color: #e2b13c;
  text-shadow: 0 0 8px rgba(244, 206, 98, 0.8);
  animation: icMascotSparkle 2.4s ease-in-out infinite;
  pointer-events: none;
}

.ic-mascot-sweat {
  position: absolute;
  top: 4px;
  right: 2px;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.ic-mascot-name-tag {
  margin-top: -6px;
  padding: 1px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #f5effd 100%);
  border: 1.5px solid #d5c5f0;
  color: #4a3275;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(84, 58, 134, 0.16);
  position: relative;
  z-index: 2;
}

/* ท่าดิ้นดุ๊กดิ๊กเวลาโดนอุ้มลาก + ท่าลงพื้นเด้งดึ๋ง */
.ic-mascot-widget.is-dragging .ic-mascot-btn {
  cursor: grabbing;
  transform: translateY(-6px) scale(1.06);
}

.ic-mascot-widget.is-dragging .ic-mascot-img {
  transform-origin: 50% 18%;
  animation: icMascotWiggle 0.42s ease-in-out infinite;
  filter: drop-shadow(0 16px 22px rgba(84, 58, 134, 0.34));
}

.ic-mascot-widget.is-dragging .ic-mascot-shadow {
  opacity: 0.22;
  transform: scaleX(0.62);
}

.ic-mascot-widget.is-dragging .ic-mascot-sparkle {
  opacity: 0;
}

.ic-mascot-widget.is-dragging .ic-mascot-sweat {
  opacity: 1;
  animation: icMascotSweatPop 0.46s ease-in-out infinite;
}

.ic-mascot-widget.is-landing .ic-mascot-img {
  transform-origin: 50% 92%;
  animation: icMascotLandBounce 0.52s cubic-bezier(0.22, 1, 0.36, 1) 1;
}

.ic-mascot-drag-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  z-index: 6;
  pointer-events: none;
  width: max-content;
  max-width: min(300px, 80vw);
  white-space: normal;
  line-height: 1.4;
  padding: 8px 14px;
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(135deg, #fffef5 0%, #fef3c7 100%);
  border: 1.5px solid #e6c665;
  color: #5b3e07;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(90, 62, 140, 0.18);
  animation: icMascotFadeInUp 0.18s ease;
}

.ic-mascot-widget.align-left .ic-mascot-drag-bubble {
  right: auto;
  left: 0;
  border-radius: 14px 14px 14px 4px;
}

.ic-mascot-widget.align-top .ic-mascot-drag-bubble {
  bottom: auto;
  top: calc(100% + 8px);
}

.ic-mascot-hide-btn {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #d5c5f0;
  background: rgba(255, 255, 255, 0.94);
  color: #6b5496;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(84, 58, 134, 0.14);
  opacity: 0.85;
  transition: all 0.2s ease;
}

.ic-mascot-hide-btn:hover {
  opacity: 1;
  background: #f5effd;
  color: #3f2b63;
  transform: scale(1.08);
}

.ic-mascot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #faf6ff 60%, #fffbeb 100%);
  border: 1.5px solid #d5c5f0;
  border-radius: 18px 18px 4px 18px;
  padding: 7px 10px 7px 14px;
  box-shadow: 0 6px 20px rgba(90, 62, 140, 0.16);
  animation: icMascotFadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 265px;
}

.ic-mascot-pill-text {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.81rem;
  font-weight: 500;
  color: #3f2b63;
  line-height: 1.35;
}

.ic-mascot-pill-text:hover {
  color: #6b4e9e;
}

.ic-mascot-pill-close {
  border: none;
  background: transparent;
  color: #9b88bd;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  line-height: 1;
}

.ic-mascot-pill-close:hover {
  background: #f2ebfc;
  color: #4a3570;
}

.ic-mascot-restore {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 8px;
  border-radius: 999px;
  border: 1.5px solid #d5c5f0;
  background: linear-gradient(135deg, #ffffff 0%, #f5effd 100%);
  color: #4a3570;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 6px 18px rgba(84, 58, 134, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ic-mascot-restore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(84, 58, 134, 0.24);
  background: linear-gradient(135deg, #ffffff 0%, #fef6d8 100%);
}

.ic-mascot-restore-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* =========================================================
   กล่องเมนูผู้ช่วยแบบ Fixed อิสระ — ไม่ล้นขอบจอ 100%
   ========================================================= */
.ic-mascot-panel {
  position: fixed;
  z-index: 1045;
  width: 356px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid #d5c5f0;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(72, 48, 118, 0.26);
  overflow: hidden;
  animation: icMascotFadeInUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.ic-mascot-panel-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #efe8fa 0%, #faf6ff 55%, #fef6d8 100%);
  border-bottom: 1px solid #e6dcf7;
}

.ic-mascot-head-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ic-mascot-mini-avatar {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 12px;
  padding: 3px;
  border: 1px solid #e2d6f6;
}

.ic-mascot-name {
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: #3b2860;
}

.ic-mascot-role {
  font-size: 0.75rem;
  color: #6b588f;
}

.ic-mascot-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #d5c5f0;
  background: #ffffff;
  color: #5e448a;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ic-mascot-icon-btn:hover {
  background: #f3ecfc;
}

.ic-mascot-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 13px 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ic-mascot-tour-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #e6c665;
  background: linear-gradient(135deg, #fef6d8 0%, #fdeba8 100%);
  color: #5b3e07;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(217, 174, 58, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ic-mascot-tour-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(217, 174, 58, 0.28);
}

.ic-mascot-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.ic-mascot-section-label {
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7c67a3;
}

.ic-mascot-link-btn {
  border: none;
  background: transparent;
  color: #6b4e9e;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
}

.ic-mascot-quick-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ic-mascot-quick-btn {
  width: 100%;
  text-align: left;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid #e6dcf7;
  background: #faf8fe;
  color: #3f2b63;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.18s ease;
}

.ic-mascot-quick-btn:hover {
  background: #efe8fa;
  border-color: #c3aee8;
  transform: translateX(2px);
}

.ic-mascot-quick-arrow {
  color: #8f72c7;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ic-mascot-all-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1.5px dashed #cbb8ee;
  background: #fcfaff;
  color: #543a86;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ic-mascot-all-btn:hover {
  background: #f3ecfc;
  border-style: solid;
}

/* Layer 2: ค้นหาทุกเมนู + การ์ด Interactive รายละเอียดเมนู */
.ic-mascot-back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ic-mascot-back-btn {
  border: 1px solid #d5c5f0;
  background: #ffffff;
  color: #4a3570;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.ic-mascot-back-btn:hover {
  background: #f5effd;
}

.ic-mascot-search {
  width: 100%;
  padding: 7px 11px;
  border: 1.5px solid #dfd3f5;
  border-radius: 10px;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.88rem;
  color: #332056;
  outline: none;
}

.ic-mascot-search:focus {
  border-color: #8f72c7;
}

.ic-mascot-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ic-mascot-fpill {
  border: 1px solid #dfd3f5;
  background: #faf8fe;
  color: #5a4480;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.ic-mascot-fpill.active {
  background: #6b4e9e;
  border-color: #6b4e9e;
  color: #ffffff;
}

.ic-mascot-detail-card {
  background: linear-gradient(155deg, #faf7ff 0%, #ffffff 55%, #fffdf2 100%);
  border: 1.5px solid #dfd3f5;
  border-radius: 14px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ic-mascot-detail-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b4e9e;
  background: #efe8fa;
  padding: 2px 9px;
  border-radius: 999px;
}

.ic-mascot-detail-title {
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: #332056;
  line-height: 1.35;
}

.ic-mascot-detail-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #4f3e6e;
  margin: 0;
}

.ic-mascot-detail-steps {
  margin: 2px 0 0;
  padding-left: 18px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #3b2860;
}

.ic-mascot-detail-steps li {
  margin-bottom: 4px;
}

.ic-mascot-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ic-mascot-act-btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #d5c5f0;
  background: #ffffff;
  color: #4a3570;
}

.ic-mascot-act-btn:hover {
  background: #f5effd;
}

.ic-mascot-act-btn.primary {
  border: none;
  background: linear-gradient(135deg, #7c5eb5 0%, #63469b 100%);
  color: #ffffff;
}

.ic-mascot-act-btn.primary:hover {
  filter: brightness(1.06);
}

/* =========================================================
   Guided Tour Spotlight & ชี้ตำแหน่งชัดเจน
   ========================================================= */
.ic-tour-click-shield {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: transparent;
}

.ic-tour-spotlight {
  position: fixed;
  z-index: 1055;
  pointer-events: none;
  border-radius: 16px;
  border: 3px solid #f4ce62;
  box-shadow:
    0 0 0 4px rgba(143, 114, 199, 0.85),
    0 0 0 9999px rgba(34, 21, 58, 0.52);
  transition: top 0.24s cubic-bezier(0.22, 1, 0.36, 1),
              left 0.24s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.24s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  animation: icSpotlightPulse 1.8s ease-in-out infinite;
}

.ic-tour-pointer {
  position: absolute;
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  border: 2px solid #ffffff;
  color: #4c2d06;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(34, 21, 58, 0.35);
  animation: icPointerBounceDown 1.1s ease-in-out infinite;
}

.ic-tour-pointer.is-below {
  top: auto;
  bottom: -40px;
  animation: icPointerBounceUp 1.1s ease-in-out infinite;
}

.ic-tour-tooltip {
  position: fixed;
  z-index: 1060;
  width: 352px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  background: #ffffff;
  border: 2px solid #d5c5f0;
  border-radius: 18px;
  padding: 15px 16px;
  box-shadow: 0 18px 44px rgba(48, 30, 82, 0.34);
  animation: icMascotFadeInUp 0.22s ease;
}

.ic-tour-tooltip::before {
  content: '';
  position: absolute;
  left: var(--arrow-left, 50%);
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-left: 2px solid #d5c5f0;
  border-top: 2px solid #d5c5f0;
  transform: translateX(-50%) rotate(45deg);
}

.ic-tour-tooltip.arrow-top::before {
  top: -9px;
}

.ic-tour-tooltip.arrow-bottom::before {
  bottom: -9px;
  transform: translateX(-50%) rotate(225deg);
}

.ic-tour-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ic-tour-avatar {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.ic-tour-step-badge {
  display: inline-block;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b4e9e;
  background: #efe8fa;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 3px;
}

.ic-tour-title {
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #332056;
}

.ic-tour-desc {
  font-size: 0.87rem;
  line-height: 1.52;
  color: #4f3e6e;
  margin: 0 0 14px;
}

.ic-tour-list {
  margin: 6px 0 0;
  padding-left: 18px;
  max-height: 148px;
  overflow-y: auto;
}

.ic-tour-list li {
  margin-bottom: 3px;
  color: #3b2860;
}

.ic-tour-list-more {
  list-style: none;
  margin-left: -14px;
  color: #7c67a3 !important;
  font-style: italic;
  font-size: 0.82rem;
}

.ic-tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ic-tour-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ic-tour-btn-ghost {
  border: none;
  background: transparent;
  color: #7c67a3;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 6px 8px;
}

.ic-tour-btn-outline {
  border: 1px solid #d5c5f0;
  background: #ffffff;
  color: #4a3570;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 9px;
  cursor: pointer;
}

.ic-tour-btn-primary {
  border: none;
  background: linear-gradient(135deg, #7c5eb5 0%, #63469b 100%);
  color: #ffffff;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 9px;
  cursor: pointer;
}

@keyframes icMascotBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(1.5deg); }
}

@keyframes icMascotShadowPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.9; }
  50% { transform: scaleX(0.84); opacity: 0.55; }
}

@keyframes icMascotSparkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(18deg); }
}

@keyframes icMascotWiggle {
  0%   { transform: rotate(-11deg) scale(0.94, 1.08) translateX(-2px); }
  25%  { transform: rotate(10deg)  scale(1.05, 0.96) translateX(2px); }
  50%  { transform: rotate(-9deg)  scale(0.95, 1.07) translateY(-2px); }
  75%  { transform: rotate(12deg)  scale(1.04, 0.97) translateX(2px); }
  100% { transform: rotate(-11deg) scale(0.94, 1.08) translateX(-2px); }
}

@keyframes icMascotSweatPop {
  0%, 100% { transform: translate(0, 0) scale(0.85) rotate(-10deg); }
  50%      { transform: translate(4px, -6px) scale(1.15) rotate(12deg); }
}

@keyframes icMascotLandBounce {
  0%   { transform: translateY(-10px) scale(0.95, 1.06); }
  35%  { transform: translateY(3px)   scale(1.13, 0.86); }
  65%  { transform: translateY(-4px)  scale(0.96, 1.05); }
  85%  { transform: translateY(1px)   scale(1.03, 0.97); }
  100% { transform: translateY(0)     scale(1, 1); }
}

@keyframes icSpotlightPulse {
  0%, 100% { border-color: #f4ce62; }
  50% { border-color: #ffffff; }
}

@keyframes icPointerBounceDown {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
}

@keyframes icPointerBounceUp {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

@keyframes icMascotFadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .ic-mascot-widget { right: 12px; bottom: 12px; }
  .ic-mascot-img { width: 72px; }
  .ic-mascot-shadow { width: 44px; }
  .ic-mascot-pill { max-width: 220px; padding: 6px 8px 6px 11px; }
  .ic-mascot-pill-text { font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ic-mascot-img,
  .ic-mascot-shadow,
  .ic-mascot-sparkle,
  .ic-mascot-sweat,
  .ic-tour-spotlight,
  .ic-tour-pointer {
    animation: none !important;
  }
}

/* ===== ปุ่มคุยกับสมหมาย AI (Matthew มช.) ===== */
.ic-mascot-ai-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(135deg, #f3ecff 0%, #fff6e0 100%);
  border: 1.5px solid #d5c1f5;
  color: #3f2868;
  box-shadow: 0 3px 10px rgba(124, 92, 186, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.ic-mascot-ai-cta:hover {
  transform: translateY(-1px);
  border-color: #8e74bd;
  box-shadow: 0 6px 14px rgba(124, 92, 186, 0.2);
}
.ic-mascot-ai-ico {
  font-size: 1.35rem;
  line-height: 1;
  flex: 0 0 auto;
}
.ic-mascot-ai-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.ic-mascot-ai-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4b2d83;
}
.ic-mascot-ai-text small {
  font-size: 0.74rem;
  color: #6b588f;
  line-height: 1.3;
}
.ic-mascot-ai-ext {
  font-size: 0.95rem;
  font-weight: 700;
  color: #7c5cba;
  flex: 0 0 auto;
}
