.character-creator {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .character-creator {
        margin: 1rem;
        padding: 1rem;
    }
}

.character-sheet {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .character-sheet {
        grid-template-columns: 300px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .character-sheet {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.character-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

@media (max-width: 768px) {
    .character-preview {
        position: relative;
        top: 0;
        margin-bottom: 1rem;
    }
}

.character-avatar {
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    border: 3px dashed rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .avatar-placeholder {
        width: 150px;
        height: 150px;
        font-size: 2.5rem;
    }
}

.character-stats {
    margin-top: 1.5rem;
}

.stat-bar {
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.stat-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    transition: width 0.3s ease;
}

.character-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .character-form {
        padding: 1rem;
    }
}

.form-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.form-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .form-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
}

.suggestion-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.suggestion-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.suggestion-card.selected {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
}

.card-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.4;
}

.input-group {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 1rem;
    color: #fff;
    font-size: 1rem;
    min-height: 44px;
}

.input-group textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.5;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.input-group input.error,
.input-group textarea.error {
    border: 2px solid #ef4444;
}

.submit-answer {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    align-self: flex-end;
}

.submit-answer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.submit-answer:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

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

/* Confetti animation */
@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100px) rotate(360deg);
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    animation: confetti-fall 1s ease-out forwards;
} 