/* 浮在最上層 on the home page (2026-10-26, product owner: the little agents floating in the screen's corner
   belong on the site): the heads drawn the way the app's overlay draws them (app/public/overlay/overlay.css). */
.crew-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.crew-copy h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; color: #e6ecf8; }
.crew-copy h2 span { color: var(--violet, #b5a6ff); }
.crew-lead { margin-top: 20px; max-width: 460px; color: #9da2af; font-size: 15px; line-height: 1.75; }
.crew-points { display: grid; gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; }
.crew-points li { display: grid; grid-template-columns: 26px 1fr; gap: 2px 12px; }
.crew-points li::before { content: ""; grid-row: span 2; width: 12px; height: 12px; margin-top: 5px; border: 2px solid #fafafa; border-radius: 50%; }
.crew-points li:nth-child(2)::before { border-color: #4ade80; }
.crew-points li:nth-child(3)::before { border-style: dashed; }
.crew-points b { color: #e6ecf8; font-size: 15px; font-weight: 600; }
.crew-points span { color: #8f96a6; font-size: 14px; line-height: 1.6; }

/* A screen with some other app on it, the crew floating over its top right corner */
.crew-screen { position: relative; aspect-ratio: 16 / 11; overflow: hidden; border: 1px solid #262a35; border-radius: 18px;
  background: radial-gradient(120% 90% at 85% 0%, #1b2133 0%, #0d0f15 55%, #0a0b0f 100%); box-shadow: 0 40px 90px rgba(0, 0, 0, .45); }
.crew-app { position: absolute; left: 6%; top: 12%; width: 62%; height: 78%; border: 1px solid #23262f; border-radius: 12px; background: #111318; }
.crew-app::before { content: ""; position: absolute; left: 14px; top: 13px; width: 46px; height: 10px;
  background: radial-gradient(circle, #3a3d48 4px, transparent 4.5px) 0 0 / 16px 10px repeat-x; }
.crew-app i { position: absolute; left: 8%; height: 7px; border-radius: 4px; background: #1d2029; }
.crew-app i:nth-child(1) { top: 20%; width: 46%; } .crew-app i:nth-child(2) { top: 29%; width: 70%; } .crew-app i:nth-child(3) { top: 38%; width: 58%; }
.crew-app i:nth-child(4) { top: 52%; width: 66%; } .crew-app i:nth-child(5) { top: 61%; width: 38%; } .crew-app i:nth-child(6) { top: 70%; width: 54%; }

.crew-float { position: absolute; inset: 0; }
.crew-head { --size: 13.5%; position: absolute; width: var(--size); aspect-ratio: 1; animation: crew-bob var(--bob, 4s) ease-in-out var(--delay, 0s) infinite; }
.crew-head .face { position: absolute; inset: 0; overflow: hidden; border: 2px solid rgba(255, 255, 255, .28); border-radius: 50%; background: #161616; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.crew-head .face img { width: 100%; height: 100%; object-fit: cover; }
.crew-head .dot { position: absolute; right: 0; bottom: 0; width: 22%; height: 22%; border: 2px solid #111; border-radius: 50%; background: #6b6b6b; }
.crew-head .wear { position: absolute; left: 50%; top: -22%; width: 42%; height: auto; translate: -50% 0; filter: drop-shadow(0 .5px 1px rgba(0, 0, 0, .3)); }
.crew-head[data-status="working"] .face { border-color: #ededed; }
.crew-head[data-status="working"] .dot { background: #ededed; }
.crew-head[data-status="waiting"] .face { border-color: #fafafa; animation: crew-pulse 1.1s ease-in-out infinite; }
.crew-head[data-status="waiting"] .dot { background: #fafafa; box-shadow: 0 0 0 3px rgba(250, 250, 250, .3); }
.crew-head[data-status="done"] .face { border-color: #4ade80; }
.crew-head[data-status="done"] .dot { background: #4ade80; }
.crew-head.selected::after { content: ""; position: absolute; inset: -9%; border: 2px solid #fafafa; border-radius: 50%; }
.crew-head .count { position: absolute; left: -8%; top: -8%; min-width: 34%; padding: 1px 5px; border: 2px solid #111; border-radius: 999px; background: #fafafa; color: #111; font: 700 11px/1.3 var(--ui); text-align: center; }

/* What one of them says: done, or waiting for you */
.crew-bubble { position: absolute; right: 36%; top: 50%; width: min(46%, 300px); padding: 12px 15px 13px; border: 1px solid #333; border-radius: 18px 18px 5px 18px;
  background: rgba(18, 18, 18, .96); box-shadow: 0 10px 28px rgba(0, 0, 0, .5); transition: opacity .35s ease, translate .35s ease; }
.crew-bubble.hide { opacity: 0; translate: 0 6px; }
.crew-bubble[data-kind="waiting"] { border-color: #fafafa; }
.crew-bubble[data-kind="done"] { border-color: rgba(74, 222, 128, .6); }
.crew-bubble b { display: block; color: #fafafa; font-size: 14px; font-weight: 650; }
.crew-bubble span { display: block; margin-top: 2px; color: rgba(255, 255, 255, .88); font-size: 14px; line-height: 1.45; }
.crew-bubble .choices { display: flex; gap: 6px; margin-top: 10px; }
.crew-bubble .choices[hidden] { display: none; }
.crew-bubble .choices em { padding: 4px 12px; border: 1px solid #4a4a4a; border-radius: 999px; background: #1e1e1e; color: #ededed; font-size: 12px; font-style: normal; }
.crew-bubble .choices em:first-child { border-color: #fafafa; background: #fafafa; color: #111; }

@keyframes crew-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes crew-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(250, 250, 250, .5), 0 8px 24px rgba(0, 0, 0, .5); } 50% { box-shadow: 0 0 0 7px rgba(250, 250, 250, 0), 0 8px 24px rgba(0, 0, 0, .5); } }
@media (prefers-reduced-motion: reduce) { .crew-head, .crew-head .face { animation: none !important; } }

@media (max-width: 900px) {
  .crew-section { grid-template-columns: 1fr; gap: 36px; }
  .crew-bubble { right: 36%; width: 50%; padding: 9px 11px 10px; }
  .crew-bubble b, .crew-bubble span { font-size: 12px; }
  .crew-head .count { font-size: 9px; }
}
