#krytes-tour {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  font-family: inherit;
  pointer-events: none;
}
#krytes-tour.kt-open { display: block; }

.kt-blocker {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  cursor: default;
  background: transparent;
}

.kt-spotlight {
  position: absolute;
  left: 0; top: 0; width: 0; height: 0;
  border-radius: 12px;
  pointer-events: none;
  box-shadow:
    0 0 0 3px rgba(255, 208, 0, 0.9),
    0 0 0 9999px rgba(6, 9, 15, 0.74),
    0 0 24px 5px rgba(255, 190, 0, 0.38);
  transition:
    left 0.34s cubic-bezier(0.4, 0.1, 0.2, 1),
    top 0.34s cubic-bezier(0.4, 0.1, 0.2, 1),
    width 0.34s cubic-bezier(0.4, 0.1, 0.2, 1),
    height 0.34s cubic-bezier(0.4, 0.1, 0.2, 1),
    border-radius 0.2s;
}

.kt-accent {
  position: absolute;
  display: none;
  left: 0; top: 0; width: 0; height: 0;
  border-radius: 8px;
  pointer-events: none;
  box-shadow:
    0 0 0 2px rgba(255, 208, 0, 0.92),
    0 0 18px 4px rgba(255, 190, 0, 0.42);
  transition:
    left 0.34s cubic-bezier(0.4, 0.1, 0.2, 1),
    top 0.34s cubic-bezier(0.4, 0.1, 0.2, 1),
    width 0.34s cubic-bezier(0.4, 0.1, 0.2, 1),
    height 0.34s cubic-bezier(0.4, 0.1, 0.2, 1);
}

.kt-tooltip {
  position: absolute;
  width: 336px;
  max-width: calc(100vw - 24px);
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(20, 25, 34, 0.985), rgba(12, 16, 23, 0.985));
  border: 1px solid rgba(255, 208, 0, 0.24);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(0, 0, 0, 0.4);
  color: #e6eaf2;
  padding: 16px 18px 14px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease, left 0.28s ease, top 0.28s ease;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.kt-tooltip.kt-shown { opacity: 1; transform: translateY(0); }

.kt-tooltip::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffd000, #ff7a18);
  opacity: 0.85;
}

.kt-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #ffce3a;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 34px;
}
.kt-eyebrow .kt-spark { font-size: 11px; }
.kt-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #f3f6fb;
  margin: 0 0 7px;
}
.kt-body {
  font-size: 13.5px;
  line-height: 1.56;
  color: #c2cad6;
  margin: 0 0 13px;
}

.kt-progress {
  height: 4px;
  border-radius: 4px;
  background: var(--film-090);
  overflow: hidden;
  margin-bottom: 12px;
}
.kt-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffd000, #ff7a18);
  transition: width 0.34s cubic-bezier(0.4, 0.1, 0.2, 1);
}

.kt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.kt-count {
  font-size: 12px;
  color: #8b94a4;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.kt-actions { display: flex; align-items: center; gap: 8px; }

.kt-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  padding: 7px 13px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.08s, box-shadow 0.15s;
  white-space: nowrap;
}
.kt-btn:active { transform: scale(0.96); }
.kt-prev {
  background: transparent;
  border-color: var(--film-160);
  color: #c2cad6;
}
.kt-prev:hover { background: var(--film-070); border-color: rgba(255, 255, 255, 0.28); }
.kt-skip {
  background: transparent;
  border-color: transparent;
  color: #828c9c;
  padding: 7px 6px;
}
.kt-skip:hover { color: #c2cad6; }
.kt-primary {
  background: linear-gradient(135deg, #ffd000, #ff7a18);
  color: #1a1206;
  box-shadow: 0 4px 14px rgba(255, 150, 0, 0.32);
}
.kt-primary:hover { filter: brightness(1.06); box-shadow: 0 6px 18px rgba(255, 150, 0, 0.42); }

.kt-close {
  position: absolute;
  top: 9px; right: 10px;
  width: 24px; height: 24px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #6f7888;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.kt-close:hover { background: var(--film-080); color: #e6eaf2; }

.kt-arrow {
  position: absolute;
  width: 13px; height: 13px;
  background: rgba(20, 25, 34, 0.985);
  border: 1px solid rgba(255, 208, 0, 0.24);
  transform: rotate(45deg);
  display: none;
}
.kt-tooltip.kt-place-right .kt-arrow { display: block; left: -7px; top: 50%; margin-top: -6px; border-right: none; border-top: none; }
.kt-tooltip.kt-place-left  .kt-arrow { display: block; right: -7px; top: 50%; margin-top: -6px; border-left: none; border-bottom: none; }
.kt-tooltip.kt-place-bottom .kt-arrow { display: block; top: -7px; left: 50%; margin-left: -6px; border-right: none; border-bottom: none; }
.kt-tooltip.kt-place-top    .kt-arrow { display: block; bottom: -7px; left: 50%; margin-left: -6px; border-left: none; border-top: none; }
.kt-tooltip.kt-place-center .kt-arrow { display: none; }

@media (max-width: 768px) {
  .kt-tooltip {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 64px);
    top: auto !important;
  }
  .kt-tooltip .kt-arrow { display: none !important; }
  .kt-spotlight { box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.9), 0 0 0 9999px rgba(6, 9, 15, 0.8), 0 0 22px 4px rgba(255, 190, 0, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
  .kt-spotlight, .kt-accent, .kt-tooltip, .kt-progress-fill { transition: none !important; }
}

.kt-toc-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 22px; padding: 0;
  background: transparent; border: none; border-radius: 6px;
  color: #ffce3a; opacity: 0.82; cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}
.kt-toc-btn:hover { opacity: 1; background: rgba(255, 206, 58, 0.14); }
.kt-toc {
  position: fixed; inset: 0; z-index: 100000;
  display: none; align-items: center; justify-content: center;
  background: rgba(4, 7, 12, 0.55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  pointer-events: auto;
}
.kt-toc.kt-toc-open { display: flex; }
.kt-toc-solo .kt-tooltip,
.kt-toc-solo .kt-spotlight,
.kt-toc-solo .kt-accent { visibility: hidden; }
.kt-toc-panel {
  margin: auto;
  width: 380px; max-width: calc(100vw - 24px); max-height: 78vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 25, 34, 0.99), rgba(12, 16, 23, 0.99));
  border: 1px solid rgba(255, 208, 0, 0.28);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.kt-toc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--film-080);
}
.kt-toc-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1.3px;
  text-transform: uppercase; color: #ffce3a;
}
.kt-toc-close {
  background: transparent; border: none; color: #6f7888;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px;
  transition: color 0.15s;
}
.kt-toc-close:hover { color: #e6eaf2; }
.kt-toc-list { overflow-y: auto; padding: 8px; }
@supports (-moz-appearance: none) {
  .kt-toc-list {
    scrollbar-width: auto;
    scrollbar-color: rgba(255, 206, 58, 0.55) var(--film-050);
  }
}
.kt-toc-list::-webkit-scrollbar { width: 10px; }
.kt-toc-list::-webkit-scrollbar-track { background: var(--film-050); border-radius: 5px; }
.kt-toc-list::-webkit-scrollbar-thumb {
  background: rgba(255, 206, 58, 0.55);
  border-radius: 5px;
  border: 2px solid rgba(20, 24, 32, 0.9);
}
.kt-toc-list::-webkit-scrollbar-thumb:hover { background: rgba(255, 206, 58, 0.85); }
.kt-toc-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: transparent; border: none; border-radius: 9px;
  padding: 9px 10px; cursor: pointer; text-align: left;
  color: #c2cad6; font: inherit; font-size: 13.5px; line-height: 1.3;
  transition: background 0.12s, color 0.12s;
}
.kt-toc-item:hover { background: var(--film-060); color: #f3f6fb; }
.kt-toc-item.active { background: rgba(255, 206, 58, 0.14); color: #ffce3a; }
.kt-toc-num {
  flex: 0 0 22px; text-align: center; font-size: 11px; font-weight: 700;
  color: #8b94a4; font-variant-numeric: tabular-nums;
}
.kt-toc-item.active .kt-toc-num { color: #ffce3a; }
.kt-toc-txt { flex: 1; }
@media (max-width: 768px) {
  .kt-toc-panel { width: auto; left: 10px; right: 10px; max-height: 70vh; }
}

body.chart-light .kt-tooltip {
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247,248,250,0.99));
  border-color: rgba(184, 120, 11, 0.35);
  box-shadow: 0 18px 60px rgba(15, 20, 30, 0.20), 0 0 0 1px rgba(15, 20, 30, 0.06);
  color: #1f2329;
}
body.chart-light .kt-title { color: #0d0e12; }
body.chart-light .kt-body  { color: #3b434f; }
body.chart-light .kt-count { color: #6b7280; }
body.chart-light .kt-btn   { color: #3b434f; }
body.chart-light .kt-btn:hover { color: #0d0e12; }
body.chart-light .kt-skip  { color: #6b7280; }
body.chart-light .kt-skip:hover { color: #1f2329; }
body.chart-light .kt-close { color: #6b7280; }
body.chart-light .kt-close:hover { color: #0d0e12; }
body.chart-light .kt-spotlight {
  box-shadow:
    0 0 0 3px rgba(184, 120, 11, 0.85),
    0 0 0 9999px rgba(15, 20, 30, 0.42),
    0 0 24px 5px rgba(255, 190, 0, 0.30);
}
