/* Debt Swamp Own the Rule. Full-bleed water. */

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

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

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

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

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

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

.bog-rate[hidden],
.bog-why[hidden] {
  display: none;
}

.bog-rate {
  position: absolute;
  right: 16px;
  bottom: 76px;
  left: 16px;
  z-index: 4;
  width: fit-content;
  min-height: 44px;
  margin: 0 auto;
  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;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.bog-rate span,
.bog-tag span {
  margin-right: 0.35em;
}

.bog-rate span:last-child,
.bog-tag span:last-child {
  margin-right: 0;
}

.bog-rate .num,
.bog-tag .num {
  font-family: var(--font-num);
}

.bog-tag {
  position: absolute;
  z-index: 3;
  margin: 0;
  min-height: 32px;
  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: nowrap;
  pointer-events: none;
}

.bog-call {
  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;
}

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

.bog-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);
}

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

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

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

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

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

@media (prefers-reduced-motion: reduce) {
  .bog-call {
    transition: none;
  }
}
