/* The waiting screen (js/waitview.js): where you are in line, how long it will probably take, something moving, a way out. */
.wv { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); max-width: 640px; width: 100%; min-width: 0; }
.wv-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wv-main { min-width: 0; flex: 1; }
.wv-head { font-weight: 600; font-size: 1.05em; overflow-wrap: anywhere; }
.wv-sub { overflow-wrap: anywhere; min-height: 1.2em; }
.wv-orb { position: relative; width: 38px; height: 38px; flex: none; }
.wv-orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent-2); opacity: 0; animation: wv-ping 2.4s ease-out infinite; }
.wv-orb i:nth-child(2) { animation-delay: .8s; } .wv-orb i:nth-child(3) { animation-delay: 1.6s; }
.wv-orb::after { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: var(--accent); }
@keyframes wv-ping { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1.1); opacity: 0; } }
.wv-bar { height: 8px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.wv-fill { display: block; height: 100%; width: 8%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-d), var(--accent-2), var(--accent-d)); background-size: 200% 100%; animation: wv-shimmer 1.6s linear infinite; transition: width .9s ease; }
.wv-bar.indet .wv-fill { width: 35% !important; animation: wv-shimmer 1.6s linear infinite, wv-slide 1.8s ease-in-out infinite alternate; }
@keyframes wv-shimmer { to { background-position: -200% 0; } }
@keyframes wv-slide { from { margin-left: 0; } to { margin-left: 65%; } }
.wv-count { color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wv-steps { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--faint); font-size: .86em; }
.wv-steps li { display: inline-flex; align-items: center; gap: 6px; }
.wv-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line-2); }
.wv-steps li.done { color: var(--ok); } .wv-steps li.done .wv-dot { background: var(--ok); border-color: var(--ok); }
.wv-steps li.cur { color: var(--text); } .wv-steps li.cur .wv-dot { border-color: var(--accent-2); animation: wv-blink 1.2s ease-in-out infinite; }
@keyframes wv-blink { 50% { background: var(--accent-2); } }
.wv-tip { min-height: 2.6em; opacity: 0; } .wv-tip.in { animation: wv-fadein .8s ease forwards; }
@keyframes wv-fadein { to { opacity: 1; } }
.wv-actions:empty { display: none; }
.wv[data-state='fail'] { border-color: rgba(255, 107, 107, .5); } .wv[data-state='fail'] .wv-orb i { animation: none; } .wv[data-state='fail'] .wv-orb::after { background: var(--danger); } .wv[data-state='fail'] .wv-fill { background: var(--danger); animation: none; }
.wv[data-state='ok'] { border-color: rgba(62, 207, 142, .5); } .wv[data-state='ok'] .wv-orb i { animation: none; } .wv[data-state='ok'] .wv-orb::after { background: var(--ok); } .wv[data-state='ok'] .wv-fill { background: var(--ok); animation: none; }
@media (max-width: 480px) { .wv { padding: 12px; } .wv-steps { gap: 4px 10px; } }
@media (prefers-reduced-motion: reduce) { .wv-orb i, .wv-fill, .wv-steps li.cur .wv-dot, .wv-bar.indet .wv-fill { animation: none; } .wv-tip { opacity: 1; animation: none; } }
