/* «Перемотка»: the 3D viewer and the launcher list. */
.rv { position: relative; height: 100%; min-height: 360px; border-radius: 14px; overflow: hidden; background: #0b1020; }
.rv-canvas { display: block; width: 100%; height: 100%; min-height: 360px; cursor: grab; touch-action: none; }
.rv-canvas:active { cursor: grabbing; }
.rv-top { position: absolute; top: 12px; left: 14px; display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: #0b1228cc; backdrop-filter: blur(6px); color: #fff; pointer-events: none; }
.rv-top small { color: #a9b6d8; font-size: 12px; }
.rv-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #0b1228e6; box-shadow: inset 0 0 0 1px #ffffff14; }
.rv-time { flex: 1; accent-color: #ffcb45; }
.rv-clock { min-width: 86px; font: 12px var(--font-digits, monospace); color: #dbe2fb; text-align: right; }
.rv-btn, .rv-speed { min-height: 30px; padding: 0 10px; border: 0; border-radius: 8px; color: #fff; background: #1d2a52; font: 600 12px var(--font-body, sans-serif); cursor: pointer; }
.rv-btn:hover, .rv-speed:hover { background: #2a3b70; }
.rv-btn.wide { white-space: nowrap; }
.rv-hint { position: absolute; top: 14px; right: 14px; margin: 0; font-size: 11px; color: #93a0bf; pointer-events: none; }
.replay-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; background: #0f1630; color: #fff; box-shadow: 0 30px 80px -20px #000, inset 0 0 0 1px #ffffff18; }
.replay-dialog::backdrop { background: #04060fcc; backdrop-filter: blur(4px); }
.replay-dialog:has(.wide) { width: min(1100px, calc(100vw - 32px)); }
.replay-box { display: grid; gap: 12px; padding: 16px; }
.replay-box header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.replay-box h2 { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 18px; }
.replay-stage { height: min(620px, calc(100vh - 140px)); }
.replay-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 60vh; overflow: auto; }
.replay-list button { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; text-align: left; color: #fff; background: #16203f; cursor: pointer; }
.replay-list button:hover { background: #1f2c57; }
.replay-list small { color: #93a0bf; }
.inst-head-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* «Мгновенный старт» card on the home screen */
.instant-card:empty { display: none; }
.instant-card { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 16px; border-radius: 14px; background: linear-gradient(90deg, #12324a, #111936); box-shadow: inset 0 0 0 1px #5ee2ff33; }
.instant-copy { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; }
.instant-copy div { display: grid; gap: 2px; }
.instant-copy b { color: #fff; font-size: 14px; }
.instant-copy small { color: #a9c3dc; font-size: 12px; line-height: 1.45; }
.instant-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #3ad37a; box-shadow: 0 0 0 4px #3ad37a33; animation: instant-pulse 2s ease-in-out infinite; }
.instant-dot.bad { background: #ff5468; box-shadow: 0 0 0 4px #ff546833; }
@keyframes instant-pulse { 50% { box-shadow: 0 0 0 8px #3ad37a10; } }
/* «Сборка по видео» */
.vp-banner { display: flex; align-items: center; gap: 14px; width: 100%; margin: 10px 0 4px; padding: 12px 16px; border: 0; border-radius: 14px; text-align: left; color: #fff; background: linear-gradient(100deg, #3b1f6e, #14204a 60%); box-shadow: inset 0 0 0 1px #b685ff40; cursor: pointer; transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s; }
.vp-banner:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #b685ff80, 0 16px 30px -18px #b685ff; }
.vp-banner-art { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: #ff3d5a; font-size: 16px; }
.vp-banner > span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.vp-banner small { color: #c9b8ec; font-size: 12px; }
.vp-banner-go { font-weight: 700; color: #d9c6ff; white-space: nowrap; }
.vp-dialog { width: min(720px, calc(100vw - 32px)); }
.vp-box { display: grid; gap: 12px; padding: 18px; max-height: calc(100vh - 60px); overflow: auto; }
.vp-box header { display: flex; justify-content: space-between; align-items: center; }
.vp-box h2 { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 19px; }
.vp-lead { margin: 0; color: #a9b6d8; font-size: 13px; line-height: 1.5; }
.vp-drop { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; min-height: 120px; padding: 18px; border: 2px dashed #3a4d80; border-radius: 14px; text-align: center; cursor: pointer; flex-direction: column; }
.vp-drop:has(img) { flex-direction: row; }
.vp-drop img { width: 160px; height: 90px; object-fit: cover; border-radius: 8px; }
.vp-drop small { color: #93a0bf; }
.vp-busy { display: flex; gap: 10px; align-items: center; margin: 0; color: #c9b8ec; }
.vp-busy i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #b685ff; border-right-color: transparent; animation: vp-spin .8s linear infinite; }
@keyframes vp-spin { to { transform: rotate(360deg); } }
.vp-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #4a1f2a; color: #ffb3bd; }
.vp-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.vp-fields label { display: grid; gap: 4px; font-size: 12px; color: #93a0bf; }
.vp-fields input, .vp-fields select { min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px; color: #fff; background: #0b1228; box-shadow: inset 0 0 0 1px #2d3d70; }
.vp-result h3 { margin: 12px 0 6px; font-size: 14px; color: #dbe2fb; }
.vp-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.vp-list label { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #111936; cursor: pointer; }
.vp-list li.missing label { opacity: .55; cursor: default; }
.vp-list img { width: 32px; height: 32px; border-radius: 6px; }
.vp-list span { display: grid; gap: 2px; min-width: 0; }
.vp-list small { color: #93a0bf; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .instant-dot, .vp-busy i { animation: none; } }
