/* 20260926-ask-quiet-kill — timed Ask surfaces never paint (week · theater toast · scrim).
   Midweek chip already gated by house-calm-hide-midweek (needs .ask-quiet-visible).
   Dock FAB / intentional Ask KEEP. */
#ask-alone-week-chip,
#ask-alone-theater-toast,
#ask-quiet-scrim {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#ask-alone-week-chip.ask-quiet-visible,
#ask-alone-theater-toast.ask-quiet-visible,
#ask-quiet-scrim.ask-quiet-scrim-on {
  display: none !important;
}


/* Shared room dim while chip/toast is center stage (lift on leave) */
#ask-quiet-scrim {
  position: fixed;
  inset: 0;
  z-index: 82;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  will-change: opacity;
}
#ask-quiet-scrim.ask-quiet-scrim-on {
  opacity: 1;
}
#ask-quiet-scrim[hidden] {
  display: none !important;
}

/* Snap-in: 0.86 → 1.04 → 1.00 · ~260ms */
@keyframes ask-quiet-snap-in {
  0% {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(0.86);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Shared chip/toast motion base — one-shot CSS only (no interval loops) */
.ask-quiet-chip,
.ask-quiet-toast {
  position: relative;
  opacity: 0;
  transform: translateY(6px) scale(0.86);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
  pointer-events: none;
  touch-action: pan-y;
  will-change: opacity, transform;
}
.ask-quiet-chip.ask-quiet-visible,
.ask-quiet-toast.ask-quiet-visible {
  opacity: 1;
  /* Transform owned by ID snap rules (translate -50%/-50%). Do NOT set translateY here. */
  pointer-events: auto;
}
.ask-quiet-chip.ask-quiet-fading,
.ask-quiet-toast.ask-quiet-fading {
  opacity: 0;
  transform: translateY(0) scale(0.84);
  transition:
    opacity 320ms ease,
    transform 320ms ease;
  pointer-events: none;
}
.ask-quiet-chip.ask-quiet-exit,
.ask-quiet-toast.ask-quiet-exit {
  opacity: 0;
  transition:
    opacity 300ms ease,
    transform 300ms ease;
  pointer-events: none;
}
.ask-quiet-chip.ask-quiet-swiping,
.ask-quiet-toast.ask-quiet-swiping {
  transition: none;
  animation: none !important;
}

/* ✕ on chip corner — slightly larger for punch */
.ask-quiet-x {
  position: absolute;
  top: 6px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9a9a9a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.ask-quiet-x:active {
  color: #ccc;
}

/* ─── P1 BIG size (~360×150) for all three quiet surfaces ─── */
#ask-alone-week-chip.ask-quiet-chip,
#ask-alone-theater-toast.ask-quiet-toast,
#midweek-ask-chip.ask-quiet-chip.ask-quiet-visible,
#midweek-ask-chip.ask-quiet-chip.ask-quiet-fading,
#midweek-ask-chip.ask-quiet-chip.ask-quiet-exit,
#midweek-ask-chip.ask-quiet-chip.ask-quiet-swiping {
  box-sizing: border-box;
  width: min(92vw, 360px);
  max-width: min(92vw, 360px);
  min-height: 150px;
  padding: 22px 36px 20px 22px;
  border-radius: 18px;
  gap: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

#ask-alone-week-chip.ask-quiet-chip .ask-alone-chip-kicker,
#ask-alone-theater-toast .ask-alone-chip-kicker,
#ask-alone-theater-toast .ask-quiet-kicker,
#midweek-ask-chip.ask-quiet-chip .midweek-ask-kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
}
#ask-alone-week-chip.ask-quiet-chip .ask-alone-chip-q,
#ask-alone-theater-toast .ask-alone-chip-q,
#ask-alone-theater-toast .ask-quiet-q,
#midweek-ask-chip.ask-quiet-chip .midweek-ask-q {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
#midweek-ask-chip.ask-quiet-chip .midweek-ask-voice {
  font-size: 13px;
  line-height: 1.35;
  color: #c8c8c8;
  margin-top: 2px;
}

/* A — week chip: fixed viewport center */
#ask-alone-week-chip.ask-quiet-chip {
  position: fixed;
  left: 50%;
  top: 50%;
  bottom: auto;
  z-index: 83;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
}
#ask-alone-week-chip.ask-quiet-chip.ask-quiet-visible {
  opacity: 1;
  pointer-events: auto;
  /* Kill base .ask-quiet-chip transition/transform fight (was causing jump/flicker). */
  transition: none !important;
  transform: translate(-50%, -50%) scale(1);
  animation: ask-quiet-snap-in 260ms cubic-bezier(0.22, 1.15, 0.36, 1) forwards;
}
#ask-alone-week-chip.ask-quiet-chip.ask-quiet-fading {
  opacity: 0;
  animation: none;
  transform: translate(-50%, -50%) scale(0.84);
  transition:
    opacity 320ms ease,
    transform 320ms ease;
  pointer-events: none;
}
#ask-alone-week-chip.ask-quiet-chip.ask-quiet-exit {
  opacity: 0;
  animation: none;
  transform: translate(-50%, -50%) scale(0.84);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
  pointer-events: none;
}
#ask-alone-week-chip.ask-quiet-chip:not(.ask-quiet-visible):not(.ask-quiet-fading):not(.ask-quiet-exit):not(.ask-quiet-swiping) {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

/* C — Theater quiet toast: fixed viewport center (NOT sticky sheet default) */
#ask-alone-theater-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  bottom: auto;
  z-index: 83;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  border: 1px solid var(--gold, #F2C94C);
  background: #000;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font: inherit;
  text-align: center;
  line-height: 1.2;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
}
#ask-alone-theater-toast.ask-quiet-visible {
  opacity: 1;
  pointer-events: auto;
  transition: none !important;
  transform: translate(-50%, -50%) scale(1);
  animation: ask-quiet-snap-in 260ms cubic-bezier(0.22, 1.15, 0.36, 1) forwards;
}
#ask-alone-theater-toast.ask-quiet-fading {
  opacity: 0;
  animation: none;
  transform: translate(-50%, -50%) scale(0.84);
  transition:
    opacity 320ms ease,
    transform 320ms ease;
  pointer-events: none;
}
#ask-alone-theater-toast.ask-quiet-exit {
  opacity: 0;
  animation: none;
  transform: translate(-50%, -50%) scale(0.84);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
  pointer-events: none;
}
#ask-alone-theater-toast[hidden] {
  display: none !important;
}
#ask-alone-theater-toast .ask-alone-chip-kicker,
#ask-alone-theater-toast .ask-quiet-kicker {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold, #F2C94C);
}
#ask-alone-theater-toast .ask-alone-chip-q,
#ask-alone-theater-toast .ask-quiet-q {
  display: block;
  color: #fff;
}

/* Legacy theater-dim light kept as fallback; punch uses #ask-quiet-scrim */
#ask-alone-theater-dim.ask-quiet-dim-light {
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* Hide sticky sheet as C default — only shown after toast engage */
#ask-alone-theater-sheet.ask-quiet-sheet-parked[hidden] {
  display: none !important;
}

/* Q5 — HOUSE midweek: viewport center while quiet-visible */
#midweek-ask-chip.ask-quiet-visible,
#midweek-ask-chip.ask-quiet-fading,
#midweek-ask-chip.ask-quiet-exit,
#midweek-ask-chip.ask-quiet-swiping {
  display: flex !important;
  position: fixed;
  left: 50%;
  top: 50%;
  bottom: auto;
  z-index: 83;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#midweek-ask-chip.ask-quiet-visible {
  opacity: 1;
  pointer-events: auto;
  transition: none !important;
  transform: translate(-50%, -50%) scale(1);
  animation: ask-quiet-snap-in 260ms cubic-bezier(0.22, 1.15, 0.36, 1) forwards;
}
/* While quiet-bound but not yet visible: keep parked at center (no dock seat flash). */
#midweek-ask-chip.ask-quiet-chip:not(.ask-quiet-visible):not(.ask-quiet-fading):not(.ask-quiet-exit):not(.ask-quiet-swiping) {
  position: fixed;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  pointer-events: none;
  animation: none;
}

#midweek-ask-chip.ask-quiet-fading {
  opacity: 0;
  animation: none;
  transform: translate(-50%, -50%) scale(0.84);
  transition:
    opacity 320ms ease,
    transform 320ms ease;
  pointer-events: none;
}
#midweek-ask-chip.ask-quiet-exit {
  opacity: 0;
  animation: none;
  transform: translate(-50%, -50%) scale(0.84);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
  pointer-events: none;
}
#midweek-ask-card.ask-quiet-visible {
  display: block !important;
}

@media (prefers-reduced-motion: reduce) {
  .ask-quiet-chip,
  .ask-quiet-toast,
  #ask-alone-theater-toast,
  #ask-alone-week-chip.ask-quiet-chip,
  #midweek-ask-chip,
  #ask-quiet-scrim {
    transition: none !important;
    animation: none !important;
  }
  #ask-alone-week-chip.ask-quiet-chip.ask-quiet-visible,
  #ask-alone-theater-toast.ask-quiet-visible,
  #midweek-ask-chip.ask-quiet-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
