/* The v1.5 agent scene (scene.js): calm 5-second flow — press ⌥ Space over your
   board, ask your local CLI agent, watch the quiet ink pill work, and see the
   suggested card drop straight into Backlog. */
.ask-scene {
  position: relative;
  max-width: 920px;
  margin: 40px auto 0;
  text-align: left;
}

.ask-scene .w-board {
  position: relative;
  width: 100%;
  min-height: 500px;
  border-radius: 16px;
  background: var(--bg);
  padding: 50px 36px 86px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 32px 74px -32px rgba(0, 0, 0, .35);
}
.ask-scene .lights { position: absolute; top: 16px; left: 16px; }
.ask-scene .w-board .nb-h { font-size: 21px; padding-bottom: 8px; margin-bottom: 12px; }
.ask-scene .w-board .nb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
.ask-scene .w-board .card { min-height: 112px; }
.ask-scene .w-board .card.backlog,
.ask-scene .w-board .card.suggested { min-height: 98px; }
.ask-scene .w-board .nb-done { position: absolute; left: 36px; right: 36px; bottom: 18px; }

/* Floating ⌥ Space unified bar overlaid calmly in the upper center */
.ask-bar {
  position: absolute;
  left: 50%;
  top: 44px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 40px));
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 28px 64px -20px rgba(0, 0, 0, .42);
  z-index: 14;
  overflow: hidden;
}
.ask-bar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  min-height: 62px;
}
.ask-bar-top .dot { width: 11px; height: 11px; }
.ask-typed {
  flex: 1;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  min-height: 26px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ask-typed::before { content: attr(data-hint); color: var(--muted); opacity: .65; }
.ask-typed.on::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -3px;
  background: var(--accent);
}
.ask-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.ask-btn .sparkle { width: 12px; height: 12px; }
.ask-bar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  font: 11.5px/1 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--muted);
}
.ask-cli-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28C840;
  margin-right: 6px;
  vertical-align: 0;
}

/* Quiet ink status pill at bottom of the board (exact v1.5 breathing sparkle + dots) */
.ask-pill {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 16;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .48);
  opacity: 0;
}
.ask-pill .sparkle { width: 12px; height: 12px; color: var(--accent); flex: none; }
.ask-pill.working .sparkle { animation: askBreathe 1.25s ease-in-out infinite; }
@keyframes askBreathe {
  0%, 100% { opacity: .45; transform: scale(.93); }
  50% { opacity: 1; transform: scale(1.06); }
}
.ask-qdots { display: inline-flex; gap: 3px; }
.ask-qdots i {
  width: 3px; height: 3px; border-radius: 50%; background: var(--bg);
  animation: askDot 1.3s ease-in-out infinite;
}
.ask-qdots i:nth-child(2) { animation-delay: .2s; }
.ask-qdots i:nth-child(3) { animation-delay: .4s; }
@keyframes askDot { 0%, 100% { opacity: .24; } 50% { opacity: .9; } }
.ask-pill:not(.working) .ask-qdots { display: none; }

.ask-scene .fake-cursor { z-index: 22; }
.ask-scene.still .ask-bar { opacity: 0; pointer-events: none; }
.ask-scene.still .ask-pill { opacity: 1; }

.agent-clis {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}
.agent-clis span { display: inline-flex; align-items: center; gap: 6px; }
.agent-more { text-align: center; margin-top: 14px; font-weight: 600; font-size: 15px; }
.agent-more a { text-underline-offset: 5px; }

main > section.agent { padding-block: 88px 76px; }
.agent .copy > p:not(.marker) { margin-top: 14px; }

@media (max-width: 760px) {
  .ask-scene .w-board { min-height: 460px; padding: 44px 16px 84px; }
  .ask-scene .w-board .nb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ask-scene .w-board .nb-done { left: 16px; right: 16px; }
  .ask-typed { font-size: 16px; }
  .ask-bar-foot { display: none; }
}
