@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-light: #f8f9ff;
    --bg-card: #ffffff;
    --primary: #6366f1;
    --secondary: #ec4899;
    --accent: #10b981;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --gradient-cyber: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #10b981 100%);
    --gradient-soft: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 50%, #d1fae5 100%);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 90%, rgba(236, 72, 153, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.header-logo {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 100;
}

.header-logo img {
    height: 40px;
    width: auto;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

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

.start-content {
    text-align: center;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 40px);
}

.start-content::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: var(--gradient-soft);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
}

.logo {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-cyber);
    border-radius: 2px;
}

.title span {
    display: inline;
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.85;
    margin-left: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    margin-top: 20px;
}

.tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tag {
    background: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

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

.description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1rem;
    padding: 0 20px;
}

.btn-start {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-start:hover::before {
    left: 100%;
}

.btn-start:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.45);
}

.btn-start:active {
    transform: scale(0.98);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-cyber);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.question-container {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.08), 0 0 0 1px rgba(99, 102, 241, 0.05);
    position: relative;
    overflow: hidden;
}

.question-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-cyber);
}

.question-text {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-primary);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-color);
    padding: 20px 24px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: left;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.option::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.5s ease;
}

.option:hover::after {
    left: 100%;
}

.option:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12);
}

.option.selected {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

.option::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--text-secondary);
    border-radius: 50%;
    margin-right: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.option.selected::before {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 0 12px rgba(99, 102, 241, 0.4);
}

.result-content {
    text-align: center;
    padding: 20px;
    animation: resultFadeIn 0.8s ease;
}

@keyframes resultFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: var(--gradient-cyber);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.result-image-container {
    margin-bottom: 20px;
}

.result-image {
    width: 280px;
    height: 280px;
    object-fit: cover;
}

.result-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-keywords {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.result-keywords span {
    background: white;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.result-keywords span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}



.result-persona {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 18px;
    text-align: left;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.06);
    position: relative;
    overflow: hidden;
}

.result-persona::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-cyber);
}

.result-persona h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--primary);
    padding-left: 12px;
}

.result-persona p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    padding-left: 12px;
}

.result-quotes {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 18px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.result-quotes h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--primary);
    padding-left: 8px;
}

#result-quotes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-quote-item {
    background: white;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    padding-left: 28px;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.result-quote-item:nth-child(2) {
    animation-delay: 0.15s;
}

.result-quote-item:nth-child(3) {
    animation-delay: 0.3s;
}

.result-quote-item::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.5;
}

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

.btn-restart {
    margin-top: 30px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.btn-restart:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.creator {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 20px;
    opacity: 0.6;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .title {
        font-size: 2rem;
    }

    .title span {
        font-size: 1.2rem;
    }

    .question-container {
        padding: 30px 20px;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .result-title {
        font-size: 1.8rem;
    }

    .result-image {
        width: 240px;
        height: 240px;
    }

    .tag {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}