/* NG maskot rehberi — sol */
.ng-guide {
  position: fixed;
  z-index: 9600;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.ng-guide.is-active .ng-guide-stage,
.ng-guide.is-active .ng-guide-bubble,
.ng-guide.is-active .ng-guide-ng,
.ng-guide.is-active .ng-guide-tool-btn,
.ng-guide.is-active .ng-guide-next {
  pointer-events: auto;
}

.ng-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 9588;
  pointer-events: none;
}
.ng-guide-overlay[hidden] { display: none !important; }
.ng-guide-hole {
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.58);
  transition: top 0.5s ease, left 0.5s ease, width 0.5s ease, height 0.5s ease;
}
.ng-guide-target-active {
  position: relative;
  z-index: 9595 !important;
  outline: 3px solid #2563eb;
  outline-offset: 4px;
  border-radius: 8px;
}

.ng-guide-stage {
  position: fixed;
  left: 16px;
  bottom: 24px;
  z-index: 9602;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
  transition: top 0.55s cubic-bezier(0.22, 1, 0.36, 1), left 0.55s ease, bottom 0.55s ease;
}

.ng-guide-bubble {
  width: min(340px, calc(100vw - 32px));
  background: #fff;
  border: 2px solid #bfdbfe;
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.14);
  order: 1;
}
.ng-guide-speaker {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1d4ed8;
}
.ng-guide-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ng-guide-bubble-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.ng-guide-tool-btn {
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 8px;
  min-height: 30px;
}
.ng-guide-tool-btn:hover { background: #e2e8f0; }
.ng-guide-tool-btn[aria-pressed="true"] { background: #fee2e2; color: #b91c1c; }
.ng-guide-text {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #334155;
}
.ng-guide-next {
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
}
.ng-guide-next:hover { background: #1d4ed8; }
#ngGuideTtsHint,
.ng-guide-tts-hint {
  display: none !important;
}
.ng-guide.needs-audio-unlock .ng-guide-next {
  animation: ngGuidePulse 1s ease infinite;
}
@keyframes ngGuidePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}
.ng-guide-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ng-guide-reply {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  font-weight: 600;
}

/* NG karakter */
.ng-guide-ng {
  order: 2;
  padding-left: 6px;
  cursor: default;
}
.ng-guide-ng-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.ng-guide-ng-hat {
  width: 48px;
  height: 12px;
  background: #1e40af;
  border-radius: 6px 6px 2px 2px;
  z-index: 2;
}
.ng-guide-ng-face {
  width: 52px;
  height: 46px;
  background: #fde68a;
  border: 2px solid #fbbf24;
  border-radius: 50% 50% 44% 44%;
  margin-top: 2px;
  position: relative;
}
.ng-guide-ng-eye {
  position: absolute;
  top: 14px;
  width: 7px;
  height: 8px;
  background: #1e293b;
  border-radius: 50%;
}
.ng-guide-ng-eye-l { left: 12px; }
.ng-guide-ng-eye-r { right: 12px; }
.ng-guide-ng-smile {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 14px;
  height: 6px;
  margin-left: -7px;
  border: 2px solid #1e293b;
  border-top: none;
  border-radius: 0 0 10px 10px;
}
.ng-guide-ng-badge {
  margin-top: -6px;
  width: 58px;
  height: 32px;
  background: #2563eb;
  border: 2px solid #93c5fd;
  border-radius: 10px 10px 14px 14px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.06em;
}
.ng-guide.is-talking .ng-guide-ng-face {
  animation: ngGuideTalk 0.22s ease infinite alternate;
}
.ng-guide.is-walking .ng-guide-ng {
  animation: ngGuideWalk 0.55s ease-in-out infinite;
}
@keyframes ngGuideTalk {
  from { transform: scaleY(1); }
  to { transform: scaleY(0.96); }
}
@keyframes ngGuideWalk {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

@media (max-width: 640px) {
  .ng-guide-stage {
    left: 10px;
    bottom: 88px;
    max-width: calc(100vw - 20px);
  }
}
