/* Personality Number Calculator – Simple Style */

#pc-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 680px;
    margin: 24px auto;
    border: 1.5px solid #c8c8e8;
    border-radius: 10px;
    background: #fff;
    padding: 32px 28px 28px;
    box-sizing: border-box;
}

#pc-wrap * {
    box-sizing: border-box;
}

#pc-wrap h2 {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1e2a3a;
    margin: 0 0 24px 0;
}

/* Input */
#pc-name {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #dde3f5;
    border-radius: 6px;
    background: #f0f4ff;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

#pc-name::placeholder {
    color: #aab0cc;
}

#pc-name:focus {
    border-color: #7b83c4;
    background: #fff;
}

/* Button */
#pc-btn {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    background: #5a6ad8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

#pc-btn:hover {
    background: #4757c4;
}

/* Error */
#pc-error {
    display: none;
    color: #c0392b;
    font-size: 13px;
    margin-top: 8px;
}

/* Result */
#pc-result {
    display: none;
    margin-top: 24px;
    border-top: 1px solid #eee;
    padding-top: 24px;
}

/* Number */
.pc-number-box {
    text-align: center;
    margin-bottom: 20px;
}

.pc-number-box .pc-num {
    font-size: 64px;
    font-weight: 700;
    color: #5a6ad8;
    line-height: 1;
}

.pc-number-box .pc-num-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
}

.pc-number-box .pc-name-shown {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

/* Breakdown */
.pc-section-label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.pc-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 16px;
}

.pc-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #dde3f5;
    background: #f0f4ff;
    color: #5a6ad8;
    flex-direction: column;
    line-height: 1.1;
}

.pc-letter span {
    font-size: 10px;
    font-weight: 400;
    color: #999;
}

.pc-letter.vowel {
    background: #fff8e1;
    border-color: #ffe08a;
    color: #b08800;
}

.pc-letter.vowel span {
    color: #b08800;
    opacity: 0.7;
}

/* Steps */
.pc-steps {
    margin-bottom: 18px;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.pc-steps p {
    margin: 0 0 4px 0;
}

/* Traits */
.pc-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}

.pc-trait {
    padding: 5px 13px;
    border-radius: 20px;
    background: #f0f4ff;
    border: 1px solid #dde3f5;
    font-size: 13px;
    color: #5a6ad8;
}

/* Description */
.pc-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    background: #f9faff;
    border-left: 3px solid #5a6ad8;
    padding: 12px 14px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 0;
}

/* Reset */
#pc-reset {
    margin-top: 16px;
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid #dde3f5;
    border-radius: 6px;
    font-size: 14px;
    color: #888;
    cursor: pointer;
}

#pc-reset:hover {
    background: #f5f7ff;
    color: #555;
}

/* Mobile */
@media (max-width: 480px) {
    #pc-wrap {
        padding: 20px 16px;
        border-radius: 8px;
    }
    #pc-wrap h2 {
        font-size: 18px;
    }
    .pc-number-box .pc-num {
        font-size: 52px;
    }
}
