.hkDinoTrigger {
  position: fixed;
  z-index: 9999;
  right: 18px;
  bottom: 18px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 19px 7px 8px;
  border: 2px solid #123449;
  border-radius: 40px;
  background: #fffdf6;
  color: #123449;
  box-shadow: 0 5px 18px rgb(0 0 0 / 24%);
  cursor: pointer;
  font: 700 17px/1.25 Arial, sans-serif;
}
.hkDinoTrigger[hidden],
.hkDinoMessages[hidden] { display: none; }
.hkDinoPortrait {
  position: relative;
  flex: 0 0 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: #f5c929;
}
.hkDinoPortrait img {
  position: absolute;
  top: 1px;
  left: -10px;
  width: 72px;
  height: 72px;
  max-width: none;
}
.hkDinoDialog {
  box-sizing: border-box;
  position: fixed;
  inset: auto 18px 18px auto;
  margin: 0;
  width: min(410px, calc(100% - 36px));
  max-height: calc(100dvh - 36px);
  padding: 18px;
  border: 1px solid #e0d7bd;
  border-radius: 18px;
  background: #fffdf6;
  color: #123449;
  box-shadow: 0 12px 35px rgb(0 0 0 / 25%);
  font: 16px/1.5 Arial, sans-serif;
}
.hkDinoDialog::backdrop { background: rgb(15 42 58 / 35%); }
.hkDinoDialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hkDinoDialog h2 { margin: 0; font: 26px/1.2 Georgia, serif; }
.hkDinoDialog p { margin: 8px 0 12px; }
.hkDinoDialog button { cursor: pointer; font: inherit; }
.hkDinoDialog button:focus-visible,
.hkDinoDialog input:focus-visible,
.hkDinoDialog a:focus-visible,
.hkDinoTrigger:focus-visible { outline: 2px solid #20596b; outline-offset: 2px; }
.hkDinoClose {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f2ebd7;
  color: #123449;
}
.hkDinoSuggestions { display: flex; flex-wrap: wrap; gap: 7px; }
.hkDinoSuggestions button {
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid #decea1;
  border-radius: 18px;
  background: #fff;
  color: #123449;
  font-size: 14px;
}
.hkDinoMessages {
  max-height: min(260px, 33dvh);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 14px 0;
}
.hkDinoTurn {
  padding: 10px 12px;
  margin: 0 0 8px;
  border-radius: 10px;
  background: #fff;
  overflow-wrap: anywhere;
}
.hkDinoTurn h3 { margin: 0 0 4px; font: 700 15px/1.4 Arial, sans-serif; }
.hkDinoTurn ul { margin: 8px 0 0; padding-inline-start: 20px; }
.hkDinoTurn a { color: #14576c; text-decoration: underline; }
.hkDinoForm { margin-top: 14px; }
.hkDinoForm label { display: block; font-weight: 700; margin-bottom: 4px; }
.hkDinoForm div { display: flex; gap: 8px; }
.hkDinoForm input {
  box-sizing: border-box;
  min-width: 0;
  flex: 1;
  padding: 8px;
  border: 1px solid #8f9388;
  border-radius: 8px;
  background: #fff;
  color: #123449;
  font: inherit;
}
.hkDinoForm button {
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid #123449;
  border-radius: 8px;
  background: #f5c929;
  color: #123449;
  font-weight: 700;
}
@media (max-width: 600px) {
  .hkDinoTrigger { right: 12px; bottom: 12px; min-height: 52px; padding-block: 5px; }
  .hkDinoDialog { right: 12px; bottom: 12px; width: min(410px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
}

.hkDinoWelcome {
  box-sizing: border-box;
  position: fixed;
  z-index: 9999;
  right: 18px;
  bottom: 88px;
  width: min(340px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid #e0d7bd;
  border-radius: 16px;
  background: #fffdf6;
  color: #123449;
  box-shadow: 0 8px 26px rgb(0 0 0 / 23%);
  font: 15px/1.5 Arial, sans-serif;
}
.hkDinoWelcome[hidden],
.hkDinoWelcomeTip[hidden] { display: none; }
.hkDinoWelcomeHello {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 42px 7px 0;
  color: #77501e;
  font-weight: 700;
}
.hkDinoWelcome h2 { margin: 0 30px 12px 0; font: 21px/1.25 Georgia, serif; }
.hkDinoWelcomeChoices { display: flex; flex-wrap: wrap; gap: 8px; }
.hkDinoWelcomeChoices button,
.hkDinoWelcomeClose {
  border: 1px solid #decea1;
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.hkDinoWelcomeChoices button { min-height: 36px; padding: 4px 10px; border-radius: 18px; }
.hkDinoWelcomeChoices button[aria-expanded="true"] { background: #f8e7a6; }
.hkDinoWelcomeClose {
  position: absolute;
  inset: 7px 7px auto auto;
  width: 40px;
  height: 40px;
  border-color: transparent;
  border-radius: 50%;
  background: transparent;
  font-size: 23px;
}
.hkDinoWelcomeTip { margin: 10px 0 0; }
.hkDinoWelcomeTip a { color: #14576c; text-decoration: underline; }
.hkDinoWelcome :focus-visible { outline: 2px solid #20596b; outline-offset: 2px; }

@media (max-width: 600px) {
  .hkDinoWelcome { right: 12px; bottom: 74px; width: min(340px, calc(100% - 24px)); }
}
