.kids-tour-root[hidden],
.kids-tour-spotlight[hidden],
.kids-tour-resume[hidden] { display: none !important; }

.kids-tour-root {
  position: fixed;
  inset: 0;
  z-index: 6000;
  pointer-events: none;
}

.kids-tour-spotlight {
  position: fixed;
  border: 3px solid #f4a93f;
  border-radius: 15px;
  box-shadow: 0 0 0 9999px rgba(3, 5, 9, .78), 0 0 0 7px rgba(244, 169, 63, .16), 0 12px 38px rgba(0, 0, 0, .55);
  transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease;
}

.kids-tour-bubble {
  position: fixed;
  width: min(410px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  pointer-events: auto;
  border: 1px solid #c87817;
  border-radius: 19px;
  background: linear-gradient(145deg, #251a12, #11141a 78%);
  color: #fff8ef;
  padding: 18px;
  box-shadow: 0 26px 76px rgba(0, 0, 0, .65);
  opacity: 0;
  transform: translateY(8px) scale(.985);
  transition: opacity .16s ease, transform .16s ease, left .2s ease, top .2s ease;
}

.kids-tour-root.open .kids-tour-bubble { opacity: 1; transform: translateY(0) scale(1); }
.kids-tour-progress { height: 4px; overflow: hidden; margin: -2px 0 13px; border-radius: 999px; background: #493225; }
.kids-tour-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d97706, #ffbd59); transition: width .2s ease; }
.kids-tour-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kids-tour-count { color: #dac9b8; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.kids-tour-close { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #50392b; border-radius: 50%; background: #2e2119; color: #f3e4d4; font: inherit; cursor: pointer; }
.kids-tour-name { margin: 11px 0 3px; color: #f4a93f; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.kids-tour-bubble h2 { margin: 0; color: #fff8ef; font-size: 24px; line-height: 1.12; letter-spacing: -.02em; }
.kids-tour-body { margin: 11px 0 0; color: #dacbbb; font-size: 15px; line-height: 1.55; }
.kids-tour-note { margin: 12px 0 0; padding: 10px 11px; border: 1px solid #76502e; border-radius: 10px; background: #302118; color: #f6c77d; font-size: 13px; line-height: 1.45; }
.kids-tour-actions { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: 17px; }
.kids-tour-actions button { min-height: 44px; border-radius: 11px; padding: 9px 13px; border: 1px solid #574032; background: #2a2019; color: #eadaca; font: inherit; font-weight: 800; cursor: pointer; }
.kids-tour-actions button:disabled { opacity: .35; cursor: default; }
.kids-tour-actions .kids-tour-end { justify-self: start; border-color: transparent; background: transparent; color: #aa9989; font-size: 13px; }
.kids-tour-actions .kids-tour-next { border-color: #d97706; background: #d97706; color: #fff; min-width: 86px; }
.kids-tour-actions button:focus-visible, .kids-tour-close:focus-visible { outline: 3px solid rgba(255, 189, 89, .5); outline-offset: 2px; }

.kids-tour-resume {
  margin: 0 0 18px;
  padding: 14px 15px;
  border: 1px solid rgba(217, 119, 6, .55);
  border-radius: 12px;
  background: rgba(217, 119, 6, .1);
  color: inherit;
  line-height: 1.5;
}
.kids-tour-resume strong { display: block; margin-bottom: 3px; color: #f4a93f; }

.parent-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}
.parent-quick-nav a,
.parent-quick-nav button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(217, 119, 6, .3);
  border-radius: 999px;
  background: rgba(217, 119, 6, .08);
  color: #f4c27a;
  padding: 8px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.parent-quick-nav button { margin-left: auto; background: #d97706; border-color: #d97706; color: white; }

@media (max-width: 620px) {
  .kids-tour-bubble { padding: 15px; border-radius: 16px; }
  .kids-tour-bubble h2 { font-size: 21px; }
  .kids-tour-body { font-size: 14px; }
  .kids-tour-actions { gap: 5px; }
  .kids-tour-actions button { padding-inline: 10px; }
  .kids-tour-actions .kids-tour-end { font-size: 12px; }
  .parent-quick-nav { gap: 7px; }
  .parent-quick-nav a, .parent-quick-nav button { flex: 1 1 auto; justify-content: center; }
  .parent-quick-nav button { margin-left: 0; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .kids-tour-spotlight, .kids-tour-bubble, .kids-tour-progress span { transition: none; }
}

/* Parent settings sections as tabs (shared/ui/section-tabs.css), in this app's colors.
   Dark text on the orange fill keeps 4.5:1; white on #d97706 would not. */
.parent-quick-nav.yz-tabs { --yz-tab-fg: var(--text, #f5e9d3); --yz-tab-bg: var(--bg-elev, #2a201a); --yz-tab-line: rgba(217, 119, 6, .35); --yz-tab-accent: var(--accent, #d97706); --yz-tab-on-accent: #1a1410; --yz-tab-focus: #f4c27a; }
