/* Shared base for the mcp-*.html loop animations: brand tokens, chips, icons and the
   sequenced-state classes driven by mcp-seq.js. Each animation keeps its own layout CSS. */
:root {
  --bg-page: transparent;
  --bg-primary: #ffffff;
  --text-primary: #1b1b1f;
  --text-secondary: #4a4a55;
  --text-tertiary: #989898;
  --purple: #5e49d6;
  --purple-soft: #ebe7ff;
  --purple-softer: #f3f1ff;
  --border: rgba(94, 73, 214, 0.1);
  --green-bg: #e2f5e9;
  --green: #1f8a4c;
  --red-bg: #fde8ea;
  --red: #c5283d;
  --amber-bg: #fff1da;
  --amber: #b56a00;
  --yellow-bg: #fff3bf;
  --yellow: #7a5c00;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --pop: cubic-bezier(0.34, 1.5, 0.64, 1);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg-page);
  font-family:
    'DM Sans',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.stage {
  width: 640px;
  height: 518px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card {
  width: 440px;
  background: var(--bg-primary);
  border-radius: 18px;
  padding: 22px 24px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.card-title {
  font-family: 'GT Super', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.2px;
  line-height: 1.2;
  white-space: nowrap;
}
.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.chip-purple {
  background: var(--purple-soft);
  color: var(--purple);
}
.chip-green {
  background: var(--green-bg);
  color: var(--green);
}
.chip-red {
  background: var(--red-bg);
  color: var(--red);
}
.chip-amber {
  background: var(--amber-bg);
  color: var(--amber);
}
.chip-yellow {
  background: var(--yellow-bg);
  color: var(--yellow);
}
.chip-grey {
  background: #f1f0f6;
  color: #5b5b6e;
}
svg.ic {
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Sequenced states: [data-at] elements switch to .on at that ms ── */
.rise {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 450ms var(--ease),
    transform 450ms var(--ease);
}
.rise.on {
  opacity: 1;
  transform: none;
}
.pop {
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 300ms ease,
    transform 400ms var(--pop);
}
.pop.on {
  opacity: 1;
  transform: none;
}
.fade {
  opacity: 0;
  transition: opacity 400ms ease;
}
.fade.on {
  opacity: 1;
}
.strike {
  position: relative;
  transition: color 400ms ease;
}
.strike::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 55%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 450ms var(--ease);
}
.strike.on {
  color: var(--text-tertiary);
}
.strike.on::after {
  transform: scaleX(1);
}
/* end of loop: everything sequenced fades out together */
.out .rise,
.out .pop,
.out .fade {
  opacity: 0;
  transform: none;
  transition: opacity 500ms ease;
}
.reset *,
.reset *::after {
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .rise,
  .pop,
  .fade,
  .strike,
  .strike::after {
    transition: none;
  }
}
