/* Dental cues use the established palette and motion tokens. */
.hero-dental-kit {
  position: absolute;
  top: 31%;
  right: -1%;
  width: 157px;
  height: 252px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(5px 8px 0 #39245116);
}
.kit-mirror {
  position: absolute;
  left: 0;
  top: 0;
  width: 82px;
  height: 224px;
  transform: rotate(-16deg);
  transform-origin: 50% 80%;
}
.kit-brush {
  position: absolute;
  right: 3px;
  top: 32px;
  width: 61px;
  height: 228px;
  transform: rotate(14deg);
  transform-origin: 50% 80%;
}
.kit-spark {
  position: absolute;
  top: 13px;
  left: 1px;
  width: 29px;
  height: 29px;
  color: var(--sunny);
}
.kit-spark-small { top: 72px; left: 79px; width: 15px; height: 15px; color: var(--plum); }

.dental-room {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 420px;
  padding: 55px 22px 18px;
  background: var(--lilac-light);
}
.dental-room .gate-sign { gap: 25px; top: 21px; font-size: 10px; padding: 8px 13px; }
.dental-room .gate-sign span { color: var(--lilac); font-size: 9px; letter-spacing: .08em; }
.room-illustration { width: 100%; max-width: 520px; height: 250px; flex-shrink: 1; overflow: visible; }
.room-chair-back { transform-origin: 263px 201px; }
.room-light { transform-origin: 173px 30px; }
.room-mirror { transform-origin: 445px 174px; }
.room-chair-back, .room-light, .room-mirror {
  transition: transform 800ms var(--ease-in-out);
}
.dental-room[data-room-active="chair"] .room-chair-back { transform: rotate(-10deg); }
.dental-room[data-room-active="light"] .room-light { transform: rotate(10deg); }
.dental-room[data-room-active="mirror"] .room-mirror { transform: translate(-19px, -15px) rotate(-9deg) scale(1.12); }
.room-light-beam { opacity: 0; transition: opacity var(--duration-ui) ease; }
.room-mirror-glint { opacity: 0; transition: opacity var(--duration-ui) ease; }
.dental-room[data-room-active="light"] .room-light-beam { opacity: .4; }
.dental-room[data-room-active="mirror"] .room-mirror-glint { opacity: 1; }
.room-controls { display: flex; justify-content: center; gap: 8px; width: 100%; margin-top: 1px; }
.room-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  min-height: 44px;
  background: transparent;
  color: var(--plum);
  border: 1px solid #39245160;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  transition: background-color var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out);
}
.room-control > span { font-size: 9px; opacity: .8; }
.room-control[aria-pressed="true"] { background: var(--plum); color: var(--paper); border-color: var(--plum); }
.room-control:active { transform: scale(.97); }
.room-description { margin-top: 12px; min-height: 38px; max-width: 330px; text-align: center; font-size: 12px; line-height: 1.5; white-space: pre-line; }
.room-static-guide { font-size: 12px; text-align: center; margin-top: 10px; }

@keyframes kit-arrive {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mirror-arrive {
  from { transform: rotate(0deg); }
  to { transform: rotate(-16deg); }
}
@keyframes brush-arrive {
  from { transform: rotate(-3deg); }
  to { transform: rotate(14deg); }
}
@keyframes dental-sparkle {
  0% { opacity: 0; transform: scale(.9) rotate(-20deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-dental-kit { animation: kit-arrive 800ms var(--ease-out) 500ms backwards; }
  .kit-mirror { animation: mirror-arrive 1000ms var(--ease-out) 500ms backwards; }
  .kit-brush { animation: brush-arrive 1000ms var(--ease-out) 560ms backwards; }
  .kit-spark { animation: dental-sparkle 1200ms var(--ease-out) 1000ms backwards; }
  .kit-spark-small { animation-delay: 1080ms; }
  @starting-style {
    .dental-room[data-room-active="chair"] .room-chair-back { transform: rotate(0); }
  }
}
@media (hover: hover) and (pointer: fine) {
  .room-control[aria-pressed="false"]:hover { background: var(--paper); }
}
@media (max-width: 1199px) {
  .hero-dental-kit { right: -5%; top: 31%; width: 137px; }
  .kit-brush { right: -1px; }
  .room-controls { gap: 6px; }
  .room-control { gap: 5px; padding-inline: 10px; font-size: 11px; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .hero-dental-kit { right: -1%; width: 117px; }
  .kit-mirror { width: 69px; height: 196px; }
  .kit-brush { width: 52px; height: 205px; right: 10px; }
  .dental-room { padding-inline: 15px; }
  .room-illustration { height: 247px; }
  .room-control { padding-inline: 10px; gap: 0; font-size: 11px; }
  .room-control > span { display: none; }
}
@media (max-width: 639px) {
  .hero-dental-kit { width: 115px; right: 0; top: 33%; }
  .kit-mirror { width: 65px; height: 193px; }
  .kit-brush { width: 49px; height: 207px; right: 26px; top: 17px; }
  .kit-spark { width: 23px; height: 23px; left: -3px; top: 20px; }
  .kit-spark-small { width: 13px; height: 13px; top: 57px; left: 64px; }
  .dental-room { min-height: 385px; padding: 53px 14px 18px; }
  .dental-room .gate-sign { left: 20px; top: 20px; }
  .room-illustration { height: 215px; }
  .room-controls { gap: 7px; }
  .room-control { padding-inline: 10px; gap: 5px; font-size: 11px; }
  .room-description { font-size: 12px; margin-top: 13px; }
}
@media (max-width: 374px) {
  .room-control > span { display: none; }
  .room-control { padding-inline: 12px; }
}
html.motion-paused .hero-dental-kit,
html.motion-paused .kit-mirror,
html.motion-paused .kit-brush,
html.motion-paused .kit-spark { animation: none; }
html.motion-paused .room-light-beam,
html.motion-paused .room-mirror-glint,
html.motion-paused .room-control,
html.motion-paused [data-room-part],
.room-instant [data-room-part],
.room-instant .room-light-beam,
.room-instant .room-mirror-glint,
.room-instant .room-control { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-dental-kit, .kit-mirror, .kit-brush, .kit-spark { animation: none; }
  .room-light-beam, .room-mirror-glint, .room-control, [data-room-part] { transition: none; }
}
