/* Mind Maze Call It. Full-bleed pier. */

.stage-play:has(.call-stage-body) {
  display: flex;
  padding: 0;
  overflow: hidden;
}

.stage-play:has(.call-stage-body) > .stage-play-body,
.call-stage-body,
.call-mount {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.stage-play:has(.call-root) .glossary-row {
  display: none;
}

.call-root {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--navy);
  outline: none;
}

.call-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.call-line {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 3;
  width: fit-content;
  max-width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

.call-sign {
  position: absolute;
  z-index: 3;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  pointer-events: none;
}

.call-sign span {
  margin-right: 0.35em;
}

.call-sign span:last-child {
  margin-right: 0;
}

.call-hud {
  position: absolute;
  top: 72px;
  left: 12px;
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
}

.call-round[hidden],
.call-sure[hidden] {
  display: none;
}

.call-round,
.call-sure {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.call-sure b {
  font-family: var(--font-num);
}

.call-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-1);
  cursor: pointer;
}

.call-choose {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 4;
  min-width: 44px;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--play);
  color: var(--on-bright);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  opacity: 1;
}

.call-choose:disabled {
  opacity: 1;
  cursor: default;
}

.call-sure {
  position: absolute;
  right: 16px;
  bottom: 76px;
  left: 16px;
  z-index: 4;
  justify-content: center;
}

.call-why {
  position: absolute;
  right: 12px;
  bottom: 16px;
  left: 12px;
  z-index: 5;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-solid);
  color: var(--text-1);
}

.call-why p {
  margin: 0 0 8px;
}

.call-next {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-weight: 700;
  cursor: pointer;
}

.call-root .harbor-tut-banner {
  top: auto;
  bottom: 16px;
}

.call-guide {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--navy);
}

.call-guide[hidden] {
  display: none;
}

.call-guide-card {
  width: min(420px, 100%);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-solid);
  color: var(--text-1);
}

@media (max-width: 800px) {
  .call-line,
  .call-sign {
    font-size: 15px;
  }

  .call-line {
    max-width: calc(100% - 24px);
  }

  .call-why {
    bottom: 132px;
  }
}

@media (min-width: 801px) {
  .call-why {
    bottom: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .call-choose,
  .call-next,
  .call-help {
    transition: none;
  }
}
