.tool-start-overlay {
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  justify-items: center;
  padding: max(22px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  text-align: center;
  pointer-events: auto;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(5, 10, 15, 0.08), rgba(5, 10, 15, 0.3) 56%, rgba(5, 10, 15, 0.58) 100%);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease;
}

.tool-start-card {
  box-sizing: border-box;
  width: calc(100vw - 36px);
  max-width: 520px;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(232, 242, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 24, 38, 0.92), rgba(7, 13, 22, 0.78));
  box-shadow:
    0 34px 74px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.tool-start-kicker,
.tool-start-title,
.tool-start-copy {
  margin: 0;
}

.tool-start-kicker {
  color: #ffd49a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tool-start-title {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #f2f7ff;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.tool-start-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 212, 154, 0.15);
  color: #ffd49a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tool-start-copy {
  max-width: min(100%, 34rem);
  color: rgba(214, 228, 246, 0.76);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.5;
}

.tool-start-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.tool-start-source-main,
.tool-start-source-guide {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.tool-start-source-main[hidden],
.tool-start-source-guide[hidden],
.tool-start-secondary-button[hidden] {
  display: none;
}

.tool-start-card .tool-start-button {
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid rgba(255, 216, 156, 0.32);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd08a, #ff986b);
  color: #1b1208;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
  max-width: 100%;
  white-space: normal;
  text-transform: none;
  box-shadow: 0 18px 36px rgba(255, 152, 107, 0.2);
}

.tool-start-secondary-button {
  appearance: none;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(232, 242, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(232, 242, 255, 0.78);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.tool-start-secondary-button:hover,
.tool-start-secondary-button:focus-visible {
  border-color: rgba(255, 216, 156, 0.3);
  background: rgba(255, 216, 156, 0.08);
  color: #ffe1b3;
  outline: none;
  transform: translateY(-1px);
}

.tool-start-secondary-button:disabled,
.tool-start-card .tool-start-button:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.tool-start-guide-title,
.tool-start-guide-copy {
  margin: 0;
}

.tool-start-guide-title {
  color: #f2f7ff;
  font-size: 1rem;
  font-weight: 760;
}

.tool-start-guide-copy {
  max-width: min(100%, 31rem);
  color: rgba(214, 228, 246, 0.74);
  font-size: 0.94rem;
  line-height: 1.45;
}

.tool-start-guide-list {
  width: min(100%, 28rem);
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(232, 242, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;
}

.tool-start-guide-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.tool-start-guide-list span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 216, 156, 0.2);
  border-radius: 999px;
  color: #ffd49a;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.tool-start-status {
  margin: 0;
  max-width: min(100%, 34rem);
  min-height: 1.35rem;
  color: rgba(214, 228, 246, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.tool-start-status.is-error {
  color: #ffb4b4;
}

.tool-start-status:empty {
  display: none;
}

.visualizer:not(.is-audio-setup) .tool-start-overlay,
.pro-stage.is-live .tool-start-overlay,
.pro-stage.has-history .tool-start-overlay,
.pro-plus-stage-panel.is-live .tool-start-overlay,
.pro-plus-stage-panel.has-history .tool-start-overlay,
.poly-ui.is-hidden.tool-start-overlay,
.tuner-page.is-starting .tool-start-overlay,
.tuner-page.is-listening .tool-start-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
}

@media (max-width: 640px) {
  .tool-start-overlay {
    align-items: center;
    padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
  }

  .tool-start-card {
    width: calc(100vw - 28px);
    gap: 13px;
    padding: 22px 18px;
    border-radius: 8px;
  }

  .tool-start-title {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .tool-start-copy {
    font-size: 0.98rem;
  }
}
