/* Your plan. Full-bleed sand yard. */

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

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

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

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

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

.home-line {
  position: absolute;
  top: 12px;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  width: max-content;
  max-width: calc(100% - 76px);
  margin-inline: auto;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--border-card);
  border-radius: var(--r-pill);
  background: var(--surface-solid);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.home-tag {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
}

.home-tag[hidden] {
  display: none;
}

.home-help {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border-card);
  border-radius: var(--r-pill);
  background: var(--surface-solid);
  color: var(--text-1);
  cursor: pointer;
}

.home-signs {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.home-sign {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  max-width: 132px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid var(--border-card);
  border-radius: var(--r-pill);
  background: var(--surface-solid);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.home-word {
  margin-right: 0.35em;
}

.home-choose {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 4;
  width: max-content;
  min-width: 44px;
  min-height: 44px;
  margin-inline: auto;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-14);
  background: var(--play);
  color: var(--on-bright);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.home-choose:disabled {
  opacity: 1;
  border: 1px solid var(--border-card);
  background: var(--surface-solid);
  color: var(--text-1);
  cursor: default;
}

.home-why {
  position: absolute;
  right: 12px;
  bottom: 72px;
  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);
}

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

.home-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  margin: 0 0 8px;
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
}

.home-bar b {
  font-family: var(--font-num);
}

.home-bar i {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.home-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;
}

.home-root .harbor-tut-banner {
  top: auto;
  bottom: 72px;
}

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

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

.home-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) {
  .home-sign {
    max-width: 120px;
  }

  .home-why {
    bottom: 72px;
    max-height: 42%;
    overflow: auto;
  }
}

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