/* ===== 初回操作チュートリアル(tutorial.js) ===== */
body.tut-active {
  overscroll-behavior: none;
}

.tut-guide {
  position: fixed;
  inset: 0;
  z-index: 900;
  color: var(--text, #f4f7ff);
  pointer-events: auto;
}

.tut-guide-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 25% 18%, rgba(50, 216, 255, .22), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(255, 64, 213, .18), transparent 34%),
    rgba(3, 5, 14, .88);
  backdrop-filter: blur(7px);
}

.tut-dim {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 13, .38);
  backdrop-filter: none;
}

.tut-center-card,
.tut-coach {
  border: 1px solid rgba(58, 235, 255, .36);
  background:
    linear-gradient(155deg, rgba(16, 22, 48, .97), rgba(7, 10, 24, .98)),
    radial-gradient(circle at top left, rgba(38, 216, 255, .16), transparent 42%);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, .56),
    0 0 30px rgba(40, 216, 216, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.tut-center-card {
  width: min(92vw, 380px);
  border-radius: 24px;
  padding: 24px 20px 20px;
  text-align: center;
  animation: tut-rise .22s cubic-bezier(.2, 1, .4, 1);
}

.tut-coach {
  position: fixed;
  border-radius: 20px;
  padding: 16px 16px 14px;
  animation: tut-rise .18s cubic-bezier(.2, 1, .4, 1);
}

@keyframes tut-rise {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.tut-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 9px;
  margin-bottom: 9px;
  border-radius: 999px;
  border: 1px solid rgba(64, 243, 163, .35);
  color: #40f3a3;
  background: rgba(64, 243, 163, .08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.tut-center-card h2,
.tut-coach h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: .02em;
}

.tut-coach h2 {
  font-size: 18px;
}

.tut-center-card p,
.tut-coach p {
  margin: 0;
  color: var(--text-dim, #c6cbe0);
  font-size: 13px;
  line-height: 1.7;
}

.tut-primary {
  width: 100%;
  margin-top: 16px;
  min-height: 48px;
  border-radius: 16px;
  font-size: 15px;
}

.tut-progress {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 14px;
}

.tut-progress span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  transition: width .18s, background .18s, box-shadow .18s;
}

.tut-progress span.is-on {
  width: 20px;
  background: var(--cyan, #28d8d8);
  box-shadow: 0 0 10px rgba(40, 216, 216, .85);
}

.tut-spotlight {
  position: fixed;
  border-radius: 18px;
  pointer-events: none;
  border: 2px solid rgba(64, 243, 255, .95);
  background: rgba(64, 243, 255, .08);
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, .22),
    0 0 20px rgba(64, 243, 255, .92),
    0 0 46px rgba(180, 69, 255, .55),
    inset 0 0 18px rgba(64, 243, 255, .34);
  animation: tut-pulse 1.1s ease-in-out infinite;
}

@keyframes tut-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.018); filter: brightness(1.22); }
}

.tut-hitbox {
  position: fixed;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.tut-hitbox:disabled {
  cursor: wait;
}

.tut-hitbox span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  color: #06101c;
  background: linear-gradient(90deg, #40f3ff, #b84dff);
  box-shadow: 0 0 20px rgba(64, 243, 255, .55);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  pointer-events: none;
}

.tut-action-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #40f3ff;
  background: rgba(64, 243, 255, .09);
  border: 1px solid rgba(64, 243, 255, .18);
  font-size: 11px;
  font-weight: 900;
}

.tut-action-hint::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #40f3ff;
  box-shadow: 0 0 12px #40f3ff;
}

@media (max-width: 380px) {
  .tut-center-card { padding: 21px 16px 17px; }
  .tut-coach { padding: 14px; }
  .tut-center-card h2 { font-size: 18px; }
  .tut-coach h2 { font-size: 17px; }
  .tut-center-card p,
  .tut-coach p { font-size: 12.5px; }
}
