@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;600;800&display=swap');

body {
    font-family: 'Pretendard', sans-serif;
    background-color: #0a0a0a;
    color: #eeeeee;
    touch-action: manipulation;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Test Area Layout */
.test-wrapper {
    position: relative;
    width: min(85vw, 400px);
    height: min(85vw, 400px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Donut Color Wheel - Background will be injected via JS using CIELAB */
.color-wheel {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    cursor: crosshair;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.color-wheel-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    height: 65%;
    background: #0a0a0a;
    border-radius: 50%;
    z-index: 11;
}

/* Fixation Cross */
.fixation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    font-weight: 300;
    color: #444;
    z-index: 15;
    pointer-events: none;
}

/* 다중 타겟 및 마스크용 패턴 */
.pattern-mask {
    background-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3BaseFilter id='n'%3BfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    filter: contrast(180%) brightness(110%);
}

.disabled-wheel {
    opacity: 0.1;
    pointer-events: none;
    transform: scale(0.95);
}

/* Feedback Markers */
.marker {
    position: absolute;
    width: 4px;
    height: 24px;
    z-index: 40;
    pointer-events: none;
    border-radius: 2px;
}

.marker-target {
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.marker-selected {
    background: rgba(255, 255, 255, 0.4);
    height: 16px;
    width: 2px;
}

/* SVG Arc Layer */
#error-svg {
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-card {
    background: #111;
    border: 1px solid #222;
    padding: 1rem;
    border-radius: 1rem;
}