.touch-test-component {
    font-size: clamp(0.6rem, 1.5vw, 0.9rem);
    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;
    position: relative;
}
.touch-test-component .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#touchTestContainer {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.touch-test-component h2 {
    width: 100%;
    text-align: center;
    margin: 0 0 0.35rem 0;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.2;
    color: #2c3e50;
}
.touch-test-area {
    flex: 0 0 auto;
    position: relative;
    background-color: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    touch-action: none;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
}
.touch-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}
.fullscreen-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
    z-index: 10;
    transition: background 0.2s;
}
.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}