:host {
display: block;
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
background-color: #0d0d0d;
touch-action: none;
cursor: grab;
}
:host(.grabbing) {
cursor: grabbing;
}
canvas {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
object-fit: cover;
pointer-events: none;
}
.interaction-overlay {
position: absolute;
inset: 0;
z-index: 999;
user-select: none;
touch-action: pan-y;
}
.loader-overlay {
position: absolute;
inset: 0;
z-index: 1000;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
pointer-events: none;
opacity: 0;
transition: opacity 0.3s ease;
}
.loader-overlay.active {
opacity: 1;
}
/* Frozen snapshot of the previous frame — shown while new assets load
so the canvas never flashes black between colour/variant changes. */
.snapshot-bg {
position: absolute;
inset: 0;
z-index: 1;
width: 100%;
height: 100%;
object-fit: contain;
pointer-events: none;
opacity: 0;
transition: opacity 0.15s ease;
}
.snapshot-bg.visible {
opacity: 1;
}
.loader-infinity {
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
width: 128px;
height: 64px;
}
.loader-infinity svg {
width: 100%;
height: 100%;
}
.loader-label {
margin-top: 12px;
font-size: 11px;
letter-spacing: 0.12em;
text-transform: uppercase;
opacity: 0.7;
}
@keyframes infinity-path {
0% { stroke-dashoffset: 400; }
100% { stroke-dashoffset: 0; }
}
.animate-infinity-path {
animation: infinity-path 2s linear infinite;
}
.screenshot-overlay {
position: absolute;
inset: 0;
z-index: 1010;
display: none;
background: rgba(0, 0, 0, 0.4);
cursor: crosshair;
user-select: none;
touch-action: none;
}
.screenshot-overlay.active {
display: block;
}
.screenshot-crop-box {
position: absolute;
border: 2px dashed #00e676;
box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
display: none;
cursor: move;
}
.screenshot-actions {
position: absolute;
display: none;
gap: 6px;
z-index: 1020;
background: #ffffff;
padding: 6px;
border-radius: 6px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
border: 1px solid rgba(0, 0, 0, 0.1);
pointer-events: auto;
transition: left 0.05s ease-out, top 0.05s ease-out;
}
.screenshot-actions.active {
display: flex;
}
.btn-screenshot {
width: 36px;
height: 36px;
border-radius: 4px;
cursor: pointer;
border: none;
outline: none;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
color: #333333;
transition: background-color 0.15s ease;
}
.btn-screenshot:hover {
background-color: #f0f0f0;
}
.btn-screenshot-cancel {
color: #ea4335;
}
.btn-screenshot-download {
color: #0f9d58;
}


