.guided-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  place-items: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(5, 8, 18, .72);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}
.guided-tour-overlay.active { display: grid; }
body.guided-tour-open { overflow: hidden; }
.guided-tour-dialog {
  position: relative;
  width: min(780px, 100%);
  max-height: min(860px, calc(100dvh - 40px));
  overflow: auto;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 26px;
  background: rgba(22, 24, 33, .96);
  color: #f8fafc;
  box-shadow: 0 32px 100px rgba(0,0,0,.58);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.guided-tour-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  inset-inline-end: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.07);
  color: inherit;
  cursor: pointer;
}
.guided-tour-close:hover { background: rgba(255,255,255,.13); }
.guided-tour-chooser { padding: 38px 34px 34px; text-align: center; }
.guided-tour-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 18px;
  color: #fff;
  font-size: 23px;
  background: linear-gradient(135deg, #4f8df7, #8758f6);
  box-shadow: 0 14px 30px rgba(92, 85, 245, .32);
}
.guided-tour-chooser h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2rem); }
.guided-tour-chooser > p { margin: 8px 0 24px; color: #aab2c3; }
.guided-tour-language-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  text-align: initial;
}
.guided-tour-language {
  position: relative;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 2px 10px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  color: inherit;
  text-align: start;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.guided-tour-language:hover,
.guided-tour-language:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(99, 179, 237, .7);
  background: rgba(99, 179, 237, .11);
  outline: none;
}
.guided-tour-language.is-preferred {
  border-color: rgba(99, 179, 237, .68);
  background: linear-gradient(135deg, rgba(59,130,246,.17), rgba(124,58,237,.13));
}
.guided-tour-flag { grid-row: 1 / 3; font-size: 1.65rem; }
.guided-tour-language-name { min-width: 0; font-size: .9rem; font-weight: 800; }
.guided-tour-language small { color: #8fc9ff; font-size: .68rem; }
.guided-tour-language > i { grid-row: 1 / 3; opacity: .45; font-size: .72rem; }
.guided-tour-player-view { padding: 70px 24px 24px; }
.guided-tour-player-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.guided-tour-player-head strong { margin-inline-start: auto; margin-inline-end: 52px; }
.guided-tour-back {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  color: inherit;
  cursor: pointer;
}
[dir="rtl"] .guided-tour-back i { transform: scaleX(-1); }
.guided-tour-video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: #05070c;
  aspect-ratio: 16 / 9;
}
.guided-tour-video-shell video { width: 100%; height: 100%; display: block; object-fit: contain; }
.guided-tour-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  background: #111827;
  color: #f8fafc;
  text-align: center;
}
.guided-tour-error[hidden], .guided-tour-player-view[hidden], .guided-tour-chooser[hidden] { display: none !important; }
.guided-tour-error i { color: #f59e0b; font-size: 28px; }
html.light-mode .guided-tour-dialog {
  background: #f7f9fc;
  color: #172033;
  border-color: #d9dee8;
  box-shadow: 0 28px 80px rgba(30,41,59,.22);
}
html.light-mode .guided-tour-close,
html.light-mode .guided-tour-back,
html.light-mode .guided-tour-language { border-color: #d9dee8; background: #fff; }
html.light-mode .guided-tour-chooser > p { color: #64748b; }
html.light-mode .guided-tour-language.is-preferred { background: #eaf4ff; border-color: #93c5fd; }
@media (max-width: 760px) {
  .guided-tour-overlay { padding: 0; }
  .guided-tour-dialog { width: 100%; max-height: 100dvh; min-height: 100dvh; border-radius: 0; }
  .guided-tour-chooser { padding: 72px 16px 28px; }
  .guided-tour-language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guided-tour-player-view { padding: 74px 12px 20px; }
  .guided-tour-player-head strong { margin-inline-end: 48px; font-size: .84rem; }
}
@media (max-width: 390px) {
  .guided-tour-language { min-height: 74px; padding: 10px; }
  .guided-tour-flag { font-size: 1.35rem; }
  .guided-tour-language-name { font-size: .8rem; }
}
