/* "One item's journey": the moving picture on the sign-in page and the
   pricing page. Photo taken, each item written up, then it sells and its
   label prints. One 12-second loop, CSS only. Still (the finished picture)
   for anyone who has turned motion off. */
.jr { --ink: #14243A; --paper: #F5F4F0; --card: #FDFDFB; --line: #CCCFCF; --muted: #636D7A; --green: #2F62D6; --tile: #ECEBE7;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; font-family: 'Inter', system-ui, sans-serif; color: var(--ink); }
.jr > li { border: 1.5px solid var(--ink); border-radius: 14px; background: var(--card); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.jr-step { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 0.95rem; line-height: 1.25; }
.jr-step .n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-variant-numeric: tabular-nums; font-size: 0.8rem; font-weight: 500; transform: translateY(-1px); }
.jr-stage { position: relative; height: 150px; border-radius: 10px; background: var(--tile); overflow: hidden; }

/* 1. The photo: three things on a table, each with its hang tag */
.jr-photo { position: absolute; inset: 12px 18px; border-radius: 8px; background: #fff; border: 1.5px solid var(--ink); display: flex; align-items: flex-end; justify-content: space-around; padding: 0 6px 12px; }
.jr-thing { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.jr-tag { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-variant-numeric: tabular-nums; font-size: 0.7rem; line-height: 1; border: 1.5px solid var(--ink); border-radius: 4px; padding: 2px 4px; background: var(--card); }
.jr-car { width: 40px; height: 16px; background: #B8432F; border-radius: 6px 10px 3px 3px; position: relative; margin-bottom: 6px; }
.jr-car::before, .jr-car::after { content: ''; position: absolute; bottom: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.jr-car::before { left: 5px; }
.jr-car::after { right: 5px; }
.jr-bear { width: 30px; height: 30px; border-radius: 50%; background: #9A6B43; position: relative; margin-top: 10px; }
.jr-bear::before, .jr-bear::after { content: ''; position: absolute; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #9A6B43; }
.jr-bear::before { left: -2px; }
.jr-bear::after { right: -2px; }
.jr-cup { width: 26px; height: 22px; background: #3F6E8C; border-radius: 3px 3px 10px 10px; position: relative; margin-right: 8px; }
.jr-cup::after { content: ''; position: absolute; right: -9px; top: 4px; width: 8px; height: 10px; border: 3px solid #3F6E8C; border-left: 0; border-radius: 0 6px 6px 0; }
.jr-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.jr-shutter { position: absolute; bottom: 6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }

/* 2. Written up: one line per item */
.jr-rows { position: absolute; inset: 12px; display: flex; flex-direction: column; gap: 7px; }
.jr-row { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 7px; padding: 5px 7px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; }
.jr-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.jr-row .p { flex: none; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-variant-numeric: tabular-nums; font-size: 0.75rem; color: var(--muted); }
.jr-sold { flex: none; font-size: 0.68rem; font-weight: 800; color: #fff; background: var(--green); border-radius: 999px; padding: 1px 7px; }

/* 3. The label printer */
.jr-printer { position: absolute; left: 50%; top: 14px; width: 128px; margin-left: -64px; height: 34px; border-radius: 10px 10px 6px 6px; background: var(--ink); }
.jr-printer::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 4px; border-radius: 2px; background: #000; }
.jr-label { position: absolute; left: 50%; top: 42px; width: 120px; margin-left: -60px; background: #fff; border: 1.5px solid var(--ink); border-top: 0; border-radius: 0 0 6px 6px; padding: 8px 9px 9px; font-size: 0.72rem; line-height: 1.3; }
.jr-label .big { display: block; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-variant-numeric: tabular-nums; font-size: 1.5rem; line-height: 1; margin-bottom: 4px; }
.jr-caption { margin: 0; font-size: 0.88rem; line-height: 1.45; color: #313F52; }

/* The loop. 12 s: photo (0-15%), write-ups (18-40%), a sale (46%),
   label prints (50-66%), hold, then fade back to the start. */
@media (prefers-reduced-motion: no-preference) {
  .jr.is-live .jr-flash { animation: jr-flash 12s infinite; }
  .jr.is-live .jr-row { animation: jr-row 12s infinite both; }
  .jr.is-live .jr-row:nth-child(2) { animation-name: jr-row2; }
  .jr.is-live .jr-row:nth-child(3) { animation-name: jr-row3; }
  .jr.is-live .jr-sold { animation: jr-sold 12s infinite both; }
  .jr.is-live .jr-label { animation: jr-print 12s infinite both; }
  .jr.is-live .jr-row-hit { animation: jr-row2 12s infinite both, jr-hit 12s infinite; }
}
@keyframes jr-flash { 0%, 9% { opacity: 0; } 10% { opacity: 0.95; } 14%, 100% { opacity: 0; } }
@keyframes jr-row { 0%, 18% { opacity: 0; transform: translateY(6px); } 22%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes jr-row2 { 0%, 25% { opacity: 0; transform: translateY(6px); } 29%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes jr-row3 { 0%, 32% { opacity: 0; transform: translateY(6px); } 36%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes jr-hit { 0%, 44% { border-color: #CCCFCF; } 46%, 92% { border-color: #2F62D6; } 100% { border-color: #CCCFCF; } }
@keyframes jr-sold { 0%, 44% { opacity: 0; transform: scale(0.6); } 47% { opacity: 1; transform: scale(1.12); } 49%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes jr-print { 0%, 50% { clip-path: inset(0 0 100% 0); transform: translateY(-8px); opacity: 1; } 66%, 92% { clip-path: inset(0 0 0 0); transform: none; opacity: 1; } 98%, 100% { clip-path: inset(0 0 0 0); transform: none; opacity: 0; } }

@media (max-width: 719px) {
  .jr { grid-template-columns: minmax(0, 1fr); }
  .jr-stage { height: 140px; }
}
