/* 히어로 요약 */
.pct-hero {
    text-align: center;
    margin-bottom: 24px;
    padding: 28px 16px 20px;
}

.pct-hero-division {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 4px;
    transition: all 0.3s;
}

.pct-hero-event {
    display: block;
    font-size: 72px;
    font-weight: 900;
    color: var(--accent-primary);
    line-height: 1;
    letter-spacing: -3px;
    transition: all 0.3s;
}

.pct-hero-sub {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-top: 10px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

/* 섹션 */
.pct-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.pct-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* 조건 행 */
.pct-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.pct-field {
    flex: 1;
}

.pct-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.pct-field select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7684' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.pct-field select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* 토글 버튼 그룹 */
.pct-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 3px;
    border-radius: 8px;
}

.pct-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.pct-btn:hover {
    color: var(--text-primary);
}

.pct-btn.active {
    background: var(--accent-primary);
    color: #1a1a1a;
}

/* 이벤트 설명 */
.pct-event-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: 16px;
}

.pct-event-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 4px 8px;
    background: rgba(224, 253, 83, 0.1);
    color: var(--accent-primary);
    border-radius: 4px;
    white-space: nowrap;
}

.pct-event-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pct-event-rx {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-left: auto;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .pct-event-info {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pct-event-rx {
        margin-left: 0;
        width: 100%;
    }
}

/* 점수 타입 라디오 */
.pct-score-type {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    overflow: visible;
}

.pct-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.pct-radio input[type="radio"] {
    accent-color: var(--accent-primary);
    -webkit-appearance: radio;
    width: 16px;
    height: 16px;
    margin: 0;
}

.pct-radio input[type="radio"]:checked + span {
    color: var(--text-primary);
}

/* 점수 입력 */
.pct-input-area {
    margin-bottom: 20px;
}

.pct-time-input,
.pct-reps-input {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pct-time-input input,
.pct-reps-input input {
    width: 80px;
    height: 48px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.pct-time-input input:focus,
.pct-reps-input input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(224, 253, 83, 0.15);
}

.pct-sep {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
}

.pct-unit {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.pct-reps-input input {
    width: 120px;
}

/* 확인 버튼 */
.pct-calc-btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    background: var(--accent-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.pct-calc-btn:hover {
    background: var(--accent-tertiary);
}

.pct-calc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 로딩 */
.pct-loading {
    text-align: center;
    padding: 40px 0;
}

.pct-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pct-loading p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 결과 */
.pct-result-section {
    text-align: center;
}

.pct-percentile-display {
    margin-bottom: 24px;
}

.pct-label-top {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.pct-big-number {
    font-size: 64px;
    font-weight: 900;
    color: var(--accent-primary);
    line-height: 1.1;
    margin: 8px 0;
    letter-spacing: -2px;
}

.pct-label-sub {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* 퍼센타일 바 */
.pct-bar-wrap {
    max-width: 400px;
    margin: 0 auto 20px;
}

.pct-bar {
    position: relative;
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    overflow: visible;
}

.pct-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #e0fd53, #53fdc8, #53c8fd, #6b7684);
    transition: width 0.6s ease;
}

.pct-bar-marker {
    position: absolute;
    top: -4px;
    width: 4px;
    height: 20px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(224, 253, 83, 0.5);
    transition: left 0.6s ease;
}

.pct-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.pct-meta {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* 에러 */
.pct-error {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
}

/* 노트 */
.pct-note {
    text-align: center;
    padding: 16px;
}

.pct-note p {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* 반응형 */
@media (max-width: 768px) {
    .pct-hero-event {
        font-size: 56px;
    }

    .pct-row {
        flex-direction: column;
        gap: 12px;
    }

    .pct-field {
        width: 100%;
    }

    .pct-toggle {
        width: 100%;
    }

    .pct-btn {
        padding: 10px 0;
        font-size: 14px;
    }

    .pct-section {
        padding: 18px;
    }

    .pct-big-number {
        font-size: 48px;
    }

    .pct-time-input input,
    .pct-reps-input input {
        font-size: 16px;
        height: 44px;
    }
}
