/* The worker's intro (panels/workerintro.js): a card at the bottom over the dock, the big worker above its top edge. */
.wi-wrap { position: fixed; inset: 0; z-index: 13; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; pointer-events: none;
  padding: 0 12px max(8px, env(safe-area-inset-bottom)); }
.wi-card { position: relative; isolation: isolate; pointer-events: auto; width: min(420px, 100%); display: grid; gap: 10px; padding: 14px;
  color: var(--ink, #F3EBD8); animation: wi-card-in .25s ease-out both; }
.wi-card::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 16px; background: var(--paper, #173E6B);
  border: 1px solid rgba(243,235,216,.28); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.wi-card h2 { margin: 0; font-size: 28px; line-height: 1.1; }
.wi-card h3 { margin: 2px 0 0; font-size: 17px; color: var(--accent); }
.wi-card p { margin: 0; font: 400 15px/1.35 var(--round); color: rgba(243,235,216,.92); }
.wi-card .wi-say { font-weight: 600; color: var(--ink, #F3EBD8); }
.wi-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wi-count { font-size: 14px; color: rgba(243,235,216,.7); }
#wi-body { display: grid; gap: 8px; max-height: calc(100dvh - 330px); overflow-y: auto; }
.wi-machine { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; background: rgba(15,42,73,.7); }
.wi-machine img { flex: none; }
.wi-chip { justify-self: start; min-height: 44px; padding: 5px 10px; }
.wi-btns { display: flex; gap: 10px; align-items: center; }
.wi-btns .wi-next { min-height: 44px; flex: 1; padding: 10px 16px; }
.wi-skip { min-width: 44px; min-height: 44px; padding: 0 14px; font: 600 17px var(--round); color: rgba(243,235,216,.92); background: none; border: 0; }
.wi-card button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* The worker rises 16 px from behind the card over 0.4 s (a fade under Reduce Motion), 2 px of him staying behind its edge. */
.wi-worker { position: absolute; right: 14px; bottom: calc(100% - 12px); width: 110px; height: auto; z-index: -2; pointer-events: none; user-select: none;
  animation: wi-rise .4s ease-out both; }
.wi-wrap.still .wi-worker { animation: wi-fade .4s ease-out both; }
.wi-wrap.still .wi-card { animation: none; }
html.no-workers .wi-worker { display: none; }
/* One worker at a time: the floor's tip bar waits. */
html.wi-up #ticker { display: none; }
@keyframes wi-rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wi-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wi-card-in { from { opacity: 0; } to { opacity: 1; } }
