/* Cool-down Shelf room. Full-bleed stage. Colours from tokens.css.
   Harbor HUD classes supply the controls. */

.cool-stage-body {
  display: flex;
  flex-direction: column;
  max-width: none !important;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

.game-stage .stage-play:has(.cool-stage-body) {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.cool-root {
  min-height: 0;
  background: var(--navy);
}

.cool-canvas {
  position: absolute;
  inset: 0;
}

.cool-say {
  position: absolute;
  z-index: 7;
  max-width: 220px;
  margin: 0;
  padding: 8px 10px;
  transform: translate(-50%, calc(-100% - 18px));
  border: 2px solid var(--border-card);
  border-radius: 16px 16px 16px 6px;
  background: var(--surface-solid);
  color: var(--text-1);
  box-shadow: var(--shadow-raised);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
}

.cool-say[hidden] {
  display: none !important;
}

.cool-say b {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-family: var(--font-num);
  font-weight: 700;
}

.cool-say b[hidden] {
  display: none !important;
}

.cool-sign {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -100%);
  padding: 2px 8px;
  border: 2px solid var(--gold);
  border-radius: var(--r-pill);
  background: var(--surface-solid);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
  white-space: nowrap;
}

.cool-sign.is-shelf {
  border-color: var(--link);
}

.cool-sign.is-bin {
  border-color: var(--coral);
}

.cool-why {
  top: 78px;
  z-index: 8;
  max-width: min(520px, calc(100% - 24px));
}

.cool-guide {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--scrim);
}

.cool-guide[hidden] {
  display: none !important;
}

.cool-outcome,
.cool-tip,
.cool-key {
  margin: 8px 0 0;
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.cool-key b {
  color: var(--gold);
  font-family: var(--font-num);
}

.cool-habit {
  width: 100%;
  min-height: 48px;
}

.cool-result .cool-habit[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px var(--mint);
  color: var(--mint);
}

@media (prefers-reduced-motion: reduce) {
  .cool-say,
  .cool-sign,
  .cool-why,
  .cool-root .dash-action-btn {
    transition: none;
    animation: none;
  }
}
