/* Footbar Reformer Club: a camada aberta do cartão do topo (css/hero.css tem o topo e o cartão fechado).
   Esta peça: o quadro da aula aberta, o desenho (nomes grandes, corpo no reformer, sala), a trilha dos 6 passos
   e o cursor do roteiro. O painel do movimento está em css/hero-painel.css; o desenho e o laço em js/aula/. */

.open {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--chalk);
  container: open / size;
  visibility: hidden;
}

.o-bar {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 20px;
  border-bottom: var(--rule) solid var(--ink);
}

.o-bar__id {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.o-bar .t-name { font-size: 36px; }
.o-bar .t-time { font-size: 32px; }

.o-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 600;
}

.o-day {
  font-size: var(--text-lg);
  font-weight: 700;
}

.o-coach { color: var(--ink-soft); }

.o-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(250px, 38%, 330px);
  min-height: 0;
}

/* Desenho: nomes grandes em cima, o corpo no reformer (ou a sala) embaixo */
.o-draw {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 20px 8px;
  overflow: hidden;
  background: var(--ultra);
  color: var(--chalk);
  border-right: var(--rule) solid var(--ink);
}

.o-names {
  position: relative;
  flex: none;
  height: calc(var(--nfs, 90px) * 0.94);
}

.nm {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--nfs, 90px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  visibility: hidden;
}

.nm i {
  display: inline-block;
  font-style: normal;
  opacity: 0;
}

.nm i.sp { width: 0.2em; }

.o-fig {
  position: relative;
  flex: 1;
  min-height: 0;
}

.o-fig svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Trilha dos 6 passos e o Book */
.o-trail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: start;
  height: 78px;
  padding-top: 12px;
  border-top: var(--rule) solid var(--ink);
}

.o-line {
  position: absolute;
  left: calc(100% / 14);
  width: calc(100% - 100% / 7);
  top: 25px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-soft);
  overflow: hidden;
}

.o-line span {
  display: block;
  height: 100%;
  background: var(--ultra);
  transform-origin: left;
  transform: scaleX(0);
}

.st {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.st .dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: var(--rule) solid var(--ink);
  background: var(--chalk);
  font-weight: 800;
  font-size: var(--text-xs);
  line-height: 1;
  transition: background-color var(--dur-state) var(--ease-out), box-shadow var(--dur-state) var(--ease-out),
    transform var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out);
}

.st .dot svg {
  display: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st.is-done .dot {
  background: var(--ultra);
  border-color: var(--ultra);
  color: var(--chalk);
}

.st.is-done .dot b { display: none; }
.st.is-done .dot svg { display: block; }

.st.is-active .dot {
  background: var(--ultra);
  border-color: var(--ultra);
  color: var(--chalk);
  box-shadow: 0 0 0 3px var(--chalk), 0 0 0 5px var(--ink);
}

.st.is-book.is-active .dot,
.st.is-book.is-done .dot {
  background: var(--mark);
  border-color: var(--ink);
  color: var(--ink);
}

.st:hover .dot { transform: translateY(-3px); }

.st:hover .lb {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* Cursor do roteiro: chega ao botão e clica */
.cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 12;
  width: 30px;
  height: 34px;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}

.cursor svg {
  width: 30px;
  height: 34px;
  filter: drop-shadow(2px 4px 0 oklch(0.255 0.115 272 / 0.7));
}

.cursor i {
  position: absolute;
  left: -17px;
  top: -17px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--mark);
  opacity: 0;
}
