/* Rydo product tour: highlight ring, fake cursor, step popover and the bottom player bar. */
.rt-root { --rt-ink: #0B0F14; --rt-bar: #121820; --rt-volt: #C8F135; --rt-muted: #9AA4B2; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.rt-root * { box-sizing: border-box; }
.rt-root button { font-family: inherit; }

/* Dim layer when there is nothing to highlight */
.rt-dim { position: fixed; inset: 0; z-index: 2147482000; background: rgba(11,15,20,.55); pointer-events: none; opacity: 0; transition: opacity .3s; }
.rt-dim.is-on { opacity: 1; }

/* Spotlight: the box-shadow dims everything else */
.rt-spot {
  position: fixed; z-index: 2147482001; pointer-events: none;
  border-radius: 16px; border: 3px solid var(--rt-volt);
  box-shadow: 0 0 0 4px rgba(200,241,53,.25), 0 0 0 9999px rgba(11,15,20,.55);
  transition: top .45s cubic-bezier(.2,.8,.2,1), left .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1), height .45s cubic-bezier(.2,.8,.2,1), opacity .25s;
  opacity: 0;
}
.rt-spot.is-on { opacity: 1; }

/* Fake cursor */
.rt-cursor {
  position: fixed; z-index: 2147482004; width: 26px; height: 26px; pointer-events: none;
  left: 0; top: 0; transform: translate(-100px, -100px);
  transition: transform .9s cubic-bezier(.3,.7,.2,1), opacity .3s;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.35));
}
.rt-cursor::after {
  content: ""; position: absolute; left: -9px; top: -9px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(200,241,53,.6); transform: scale(0); opacity: 0;
}
.rt-cursor.is-click::after { animation: rt-click .5s ease-out; }
@keyframes rt-click { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

/* Popover */
.rt-pop {
  position: fixed; z-index: 2147482003; width: 380px; max-width: calc(100vw - 32px);
  background: #fff; color: var(--rt-ink); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(11,15,20,.5), 0 0 0 1px rgba(11,15,20,.06);
  transition: top .45s cubic-bezier(.2,.8,.2,1), left .45s cubic-bezier(.2,.8,.2,1), opacity .25s;
  opacity: 0;
}
.rt-pop.is-on { opacity: 1; }
.rt-pop__body { padding: 22px 24px 20px; }
.rt-pop__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #3B4350; }
.rt-pop__meta i { width: 9px; height: 9px; border-radius: 50%; background: #47CD89; box-shadow: 0 0 0 4px rgba(71,205,137,.18); }
.rt-pop__meta.is-paused i { background: #FDB022; box-shadow: 0 0 0 4px rgba(253,176,34,.2); }
.rt-pop__meta span { color: #7A8492; font-weight: 700; }
.rt-pop h3 { margin: 10px 0 6px; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; color: var(--rt-ink); }
.rt-pop p { margin: 0; font-size: 15px; line-height: 1.55; color: #4B5563; }
.rt-pop__hint {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 10px 14px; border-radius: 14px; background: #F4F6F8;
  font-size: 14px; font-weight: 700; color: var(--rt-ink);
}
.rt-pop__hint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rt-ink); flex: none; }
.rt-pop__hint.is-act::before { background: #6F9A00; }
.rt-pop__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rt-pop__actions a, .rt-pop__actions button {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px;
  border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
  border: 1.5px solid var(--rt-ink); background: #fff; color: var(--rt-ink);
}
.rt-pop__actions .is-primary { background: var(--rt-volt); border-color: var(--rt-volt); }
.rt-pop__timer { height: 4px; background: #E9EDF1; }
.rt-pop__timer b { display: block; height: 100%; width: 0; background: #6F9A00; }

/* Player bar */
.rt-bar {
  position: fixed; z-index: 2147482005; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(920px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px 14px 24px; border-radius: 26px;
  background: var(--rt-bar); color: #fff;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
}
.rt-bar__info { flex: 1; min-width: 0; }
.rt-bar__title { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; overflow: hidden; }
.rt-bar__title b { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.rt-bar__title span { font-size: 14px; color: var(--rt-muted); }
.rt-bar__segs { display: flex; gap: 6px; margin-top: 10px; }
.rt-bar__segs button { flex: 1; height: 5px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); cursor: pointer; overflow: hidden; position: relative; }
.rt-bar__segs button b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--rt-volt); border-radius: 999px; transition: width .3s; }
.rt-bar__tag { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--rt-volt); color: var(--rt-ink); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.rt-bar__ctrls { display: flex; align-items: center; gap: 6px; flex: none; }
.rt-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.rt-btn:hover { background: rgba(255,255,255,.08); }
.rt-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.rt-btn svg { width: 22px; height: 22px; }
.rt-btn--play { width: 58px; height: 58px; background: #fff; color: var(--rt-ink); }
.rt-btn--play:hover { background: #E9EDF1; }
.rt-btn--play svg { width: 26px; height: 26px; }
.rt-btn--speed { border: 1.5px solid rgba(255,255,255,.28); font-size: 13px; font-weight: 800; width: 50px; height: 50px; }
.rt-root button:focus-visible { outline: 2px solid var(--rt-volt); outline-offset: 2px; }

/* Chapter menu */
.rt-menu {
  position: fixed; z-index: 2147482006; bottom: 104px; left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(380px, calc(100vw - 32px)); padding: 8px; border-radius: 20px;
  background: var(--rt-bar); color: #fff; box-shadow: 0 24px 60px -16px rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.rt-menu.is-open { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
.rt-menu button {
  display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 14px;
  background: transparent; color: #fff; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
}
.rt-menu button:hover, .rt-menu button.is-current { background: rgba(255,255,255,.08); }
.rt-menu button i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-style: normal; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.08); color: var(--rt-volt); }
.rt-menu button.is-done i { background: var(--rt-volt); color: var(--rt-ink); }
.rt-menu button span { margin-left: auto; font-size: 12px; color: var(--rt-muted); }

/* Leave room so the bar never hides the end of a page */
body.rt-on { padding-bottom: 110px !important; }

@media (max-width: 760px) {
  .rt-bar { gap: 8px; padding: 10px 10px 10px 16px; bottom: 10px; border-radius: 22px; }
  .rt-bar__tag, .rt-bar__title span, .rt-btn--speed { display: none; }
  .rt-bar__title b { font-size: 15px; }
  .rt-btn { width: 38px; height: 38px; }
  .rt-btn--play { width: 48px; height: 48px; }
  .rt-menu { bottom: 88px; }
  .rt-pop h3 { font-size: 19px; }
  .rt-pop__body { padding: 18px 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-spot, .rt-pop, .rt-cursor, .rt-menu { transition: none; }
}
.rt-pop__hint[hidden], .rt-pop__actions[hidden] { display: none; }
