@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;700;800&display=swap');

.combine-shop-page {
    font-family: 'Pretendard', -apple-system, sans-serif;
    background-color: #f9f5f0;
    color: #4a423d;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.combine-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid #eee1d5;
    box-shadow: 0 20px 50px rgba(74, 66, 61, 0.08);
    position: relative;
}

.combine-container h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #352f2b;
}

.subtitle {
    color: #8e7f75;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.chance-badge {
    display: inline-block;
    background: #fdfaf7;
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid #eee1d5;
    font-weight: 700;
    color: #d4a373;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.input-section {
    margin-bottom: 20px;
}

.input-section input[type="text"] {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #eee1d5;
    background: #faf7f2;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    outline: none;
    transition: all 0.3s;
}

.input-section input[type="text"]:focus {
    border-color: #d4a373;
    background: #fff;
}

.combine-status {
    color: #c0392b;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.combine-visual {
    width: 150px;
    height: 150px;
    margin: 20px auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-icon {
    width: 100px;
    height: 100px;
    background: #fff9f4;
    border-radius: 20px;
    border: 2px dashed #d4a373;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
}

.combining .item-icon {
    animation: shake 0.5s infinite alternate, glow 1s infinite alternate;
}

@keyframes shake {
    from { transform: rotate(-5deg) scale(1); }
    to { transform: rotate(5deg) scale(1.1); }
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(212, 163, 115, 0.2); }
    to { box-shadow: 0 0 30px rgba(212, 163, 115, 0.6); }
}

.result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.result-icon {
    margin-bottom: 20px;
}

.result-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.result-desc {
    color: #8e7f75;
    margin-bottom: 30px;
    padding: 0 40px;
    white-space: pre-line;
}

.success .result-title {
    color: #d4a373;
}

.fail .result-title {
    color: #e74c3c;
}

.btn-combine {
    width: 100%;
    padding: 16px;
    border-radius: 15px;
    background: #352f2b;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-combine:hover:not(:disabled) {
    background: #5a504a;
}

.btn-combine:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-retry {
    padding: 12px 30px;
    border-radius: 12px;
    background: #352f2b;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-retry:hover {
    background: #5a504a;
}
