.mouse-test-component {
    padding: 1%;
    background: var(--container-bg, #f8f9fa);
    border-radius: 8px;
    border: 1px solid var(--container-border, #dee2e6);
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    container-type: size;
    font-size: clamp(0.6rem, 1.5vw, 0.9rem);
    --cursor-aspect-ratio: 1;
}
.mouse-header {
    text-align: center;
    flex-shrink: 0;
}
.mouse-header h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.2;
    color: #2c3e50;
}
.mouse-content {
    flex: 1;
    --mouse-gap: 4px;
    --mouse-pad: 2px;
    --mouse-panel-size: min(
        calc((100cqw - (2 * var(--mouse-pad)) - var(--mouse-gap)) / 2),
        calc((100cqh - (2 * var(--mouse-pad)) - var(--mouse-gap)) / 2)
    );
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    grid-template-areas:
        "panel-1 panel-2"
        "panel-3 panel-3";
    gap: var(--mouse-gap);
    min-height: 0;
    padding: var(--mouse-pad);
    align-items: start;
    justify-items: center;
    align-content: center;
    container-type: size;
}
.mouse-panel {
    background: #2c3e50;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    width: var(--mouse-panel-size);
    height: var(--mouse-panel-size);
    aspect-ratio: 1 / 1;
    max-width: 100%;
    max-height: 100%;
}
.mouse-panel:nth-child(1) {
    grid-area: panel-1;
}
.mouse-panel:nth-child(2) {
    grid-area: panel-2;
}
.mouse-panel:nth-child(3) {
    grid-area: panel-3;
    justify-self: center;
    aspect-ratio: var(--cursor-aspect-ratio);
    width: min(100%, calc(var(--mouse-panel-size) * var(--cursor-aspect-ratio)));
    height: auto;
}
.panel-title {
    color: white;
    font-size: clamp(8px, 2cqw, 14px);
    font-weight: 600;
    margin-bottom: 3px;
    text-align: center;
}
.panel-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
}
.mouse-canvas {
    width: 100%;
    height: 100%;
    background: #1a252f;
    border-radius: 4px;
    display: block;
}
.click-test-area {
    width: 100%;
    height: 100%;
    background: #667eea;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}
.mouse-visual {
    max-width: 80%;
    max-height: 80%;
    width: 400px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}
.left-btn, .right-btn {
    transition: fill 0.1s ease;
}
.left-btn.active {
    fill: #e74c3c !important;
}
.right-btn.active {
    fill: #3498db !important;
}
.reset-button {
    margin-top: clamp(2px, 1cqh, 6px);
    padding: clamp(6px, 1.5cqh, 10px) clamp(10px, 3cqw, 20px);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 6px;
    color: white;
    font-size: clamp(10px, 2cqw, 14px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.reset-button:hover {
    background: white;
    color: #667eea;
}
.delta-indicator {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 10;
}
.delta-line-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9;
}
