.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.tutorial-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 96vw;
  max-height: 96vh;
}
.tutorial-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tutorial-img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  background: #0a0e14;
  -webkit-user-select: none;
  user-select: none;
}
.tutorial-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 72px;
  border: 1.5px solid rgba(255, 212, 0, 0.55);
  border-radius: 10px;
  background: rgba(12, 15, 21, 0.82);
  color: #ffd400;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.tutorial-nav:hover {
  background: rgba(255, 212, 0, 0.16);
  color: #ffe45c;
  border-color: rgba(255, 212, 0, 0.95);
}
.tutorial-nav:active { transform: translateY(-50%) scale(0.94); }
.tutorial-nav:disabled { opacity: 0.22; cursor: default; }
.tutorial-prev { left: 24px; }
.tutorial-next { right: 24px; }
.tutorial-counter {
  font-size: 13px;
  color: #c8cfdb;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.tutorial-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 24, 32, 0.92);
  color: #e6eaf2;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.tutorial-close:hover { background: #ea3943; color: #fff; }

@media (max-width: 768px) {
  .tutorial-img { max-width: 96vw; max-height: 80vh; }
  .tutorial-prev { left: 8px; }
  .tutorial-next { right: 8px; }
  .tutorial-nav { background: rgba(12, 15, 21, 0.86); }
  .tutorial-close { top: 4px; right: 4px; }
}

.tb-help-btn { position: relative; }

.tb-help-btn::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 9px;
  background: rgba(255, 208, 0, 0.13);
  box-shadow: 0 0 0 1px rgba(255, 208, 0, 0.5), 0 0 9px rgba(255, 196, 0, 0.45);
  z-index: 0;
  animation: tut-help-pulse 2.6s ease-in-out infinite;
}
.tb-help-btn .ico {
  position: relative;
  z-index: 1;
  color: #ffd400;
  stroke: #ffd400;
  stroke-width: 2.6;
}
.tb-help-btn:hover { background: transparent; }
.tb-help-btn:hover::before {
  background: rgba(255, 208, 0, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 208, 0, 0.75), 0 0 13px rgba(255, 196, 0, 0.6);
}
.tb-help-btn:hover .ico { color: #ffe45c; stroke: #ffe45c; }
@keyframes tut-help-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 208, 0, 0.4), 0 0 6px rgba(255, 196, 0, 0.33); }
  50%      { box-shadow: 0 0 0 1px rgba(255, 208, 0, 0.62), 0 0 13px rgba(255, 196, 0, 0.62); }
}
@media (prefers-reduced-motion: reduce) {
  .tb-help-btn::before { animation: none; }
}

#btn-training { position: relative; }
#btn-training::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 9px;
  background: rgba(53, 208, 127, 0.14);
  box-shadow: 0 0 0 1px rgba(53, 208, 127, 0.5), 0 0 9px rgba(53, 208, 127, 0.45);
  z-index: 0;
  animation: tut-guide-pulse 2.6s ease-in-out infinite;
}
#btn-training .ico {
  position: relative;
  z-index: 1;
  color: #35d07f;
  stroke: #35d07f;
  stroke-width: 2.4;
}
#btn-training:hover { background: transparent; }
#btn-training:hover::before {
  background: rgba(53, 208, 127, 0.22);
  box-shadow: 0 0 0 1px rgba(53, 208, 127, 0.78), 0 0 13px rgba(53, 208, 127, 0.6);
}
#btn-training:hover .ico { color: #4ee89a; stroke: #4ee89a; }
@keyframes tut-guide-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(53, 208, 127, 0.4), 0 0 6px rgba(53, 208, 127, 0.33); }
  50%      { box-shadow: 0 0 0 1px rgba(53, 208, 127, 0.62), 0 0 13px rgba(53, 208, 127, 0.62); }
}
@media (prefers-reduced-motion: reduce) {
  #btn-training::before { animation: none; }
}

