/* public/assets/css/tools/game/game-personality.css */
.gpt-wrapper {
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border: none;
    border-radius: 20px;
    padding: 40px 20px;
    color: #f8fafc;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.gpt-screen {
    width: 100%;
    max-width: 600px;
    display: none;
    flex-direction: column;
    align-items: center;
    animation: gptFadeIn 0.4s ease forwards;
}
.gpt-screen-active { display: flex; }

@keyframes gptFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 按钮通用 */
.gpt-btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
}
.gpt-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.gpt-btn-primary { background: linear-gradient(90deg, #6366f1, #8b5cf6); color: #fff; box-shadow: 0 4px 15px rgba(99,102,241,0.4); }
.gpt-btn-primary:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 6px 20px rgba(99,102,241,0.6); }
.gpt-btn-ghost { background: rgba(255,255,255,0.1); color: #cbd5e1; border: 1px solid rgba(255,255,255,0.2); }
.gpt-btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.2); color: #fff; }
.gpt-pulse { animation: gptPulse 2s infinite; }
@keyframes gptPulse { 0% { box-shadow: 0 0 0 0 rgba(99,102,241,0.7); } 70% { box-shadow: 0 0 0 15px rgba(99,102,241,0); } 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); } }

/* Welcome Screen */
.gpt-hero-icon { font-size: 5rem; margin-bottom: 20px; filter: drop-shadow(0 0 20px rgba(99,102,241,0.8)); }
.gpt-title { font-size: 2.2rem; font-weight: 900; margin-bottom: 16px; text-align: center; background: linear-gradient(to right, #a78bfa, #38bdf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.gpt-subtitle { font-size: 1.05rem; color: #94a3b8; text-align: center; margin-bottom: 40px; line-height: 1.6; max-width: 480px; }

/* Quiz Screen */
.gpt-progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin-bottom: 30px; overflow: hidden; }
.gpt-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #38bdf8, #8b5cf6); transition: width 0.3s ease; }
.gpt-question-header { align-self: flex-start; margin-bottom: 12px; }
.gpt-q-num { font-size: 1.5rem; font-weight: 900; color: #38bdf8; }
.gpt-q-count { font-size: 1rem; color: #64748b; margin-left: 5px; }
.gpt-question-text { font-size: 1.3rem; font-weight: 600; line-height: 1.5; margin-bottom: 32px; width: 100%; }

.gpt-options { width: 100%; display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.gpt-option { background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1); padding: 16px 20px; border-radius: 12px; cursor: pointer; transition: all 0.2s; font-size: 1.05rem; color: #e2e8f0; display: flex; align-items: center; }
.gpt-option:hover { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.5); transform: translateX(5px); }
.gpt-option.selected { background: rgba(99,102,241,0.3); border-color: #8b5cf6; color: #fff; box-shadow: 0 0 15px rgba(139,92,246,0.3); }

.gpt-quiz-actions { width: 100%; display: flex; justify-content: flex-start; }

/* Loading */
.gpt-loader { width: 60px; height: 60px; border: 4px solid rgba(255,255,255,0.1); border-top-color: #8b5cf6; border-radius: 50%; animation: gptSpin 1s linear infinite; margin-bottom: 20px; }
@keyframes gptSpin { to { transform: rotate(360deg); } }

/* Result */
.gpt-result-card { width: 100%; max-width: 400px; margin-bottom: 30px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.gpt-result-card img { width: 100%; display: block; height: auto; }
#gptCanvas { display: none; }
.gpt-result-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 600px) {
    .gpt-title { font-size: 1.8rem; }
    .gpt-option { padding: 14px 16px; font-size: 0.95rem; }
}