* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle linear infinite;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #667eea;
}

.author-photo {
    width: 300px;
    height: 300px;
    max-width: 80%;
    border-radius: 3%;
    margin: 0 auto 25px;
    display: block;
    object-fit: cover;
}

.title-main {
    color: #667eea;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.title {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.intro-text p {
    margin-bottom: 15px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.planet-block {
    margin-bottom: 50px;
    padding: 35px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.planet-block:hover {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.planet-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.planet-icon {
    font-size: 36px;
}

.question-item {
    margin-bottom: 20px;
    padding: 18px 22px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.question-item:hover {
    background: #f8f9ff;
    border-color: #667eea;
}

.question-item.checked {
    background: linear-gradient(135deg, #e8f0ff 0%, #f0f5ff 100%);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.checkbox-wrapper {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.question-checkbox {
    appearance: none;
    width: 28px;
    height: 28px;
    border: 3px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.question-checkbox:hover {
    border-color: #667eea;
}

.question-checkbox:checked {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: #667eea;
}

.question-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.question-text {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    flex: 1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.planet-score {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 12px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.submit-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 50px auto 0;
    margin-bottom:65px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.result {
    display: none;
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 20px;
    border: 3px solid #667eea;
}

.result-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.result-planet {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-planet-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8e8e8;
    flex-wrap: wrap;
}

.result-planet-name {
    font-size: 22px;
    font-weight: 700;
    flex: 1;
}

.planet-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    margin-bottom: 8px;
}

.planet-item .planet-icon {
    font-size: 28px;
}

.planet-item-name {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.planet-item-score {
    font-size: 20px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    color: white;
}

.result-planet-score {
    font-size: 32px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 12px;
    min-width: 80px;
    text-align: center;
}

.level-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    display: inline-block;
}

.score-0-2 {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
}

.score-3-5 {
    background: linear-gradient(135deg, #ffd93d, #f6b93b);
    color: white;
}

.score-6-8 {
    background: linear-gradient(135deg, #6bcf7f, #51cf66);
    color: white;
}

.score-9-10 {
    background: linear-gradient(135deg, #4dabf7, #339af0);
    color: white;
}

.result-interpretation {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-top: 10px;
}

.conclusion {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.conclusion-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.conclusion-text {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

.restart-btn {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px auto 0;
    display: block;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
}

.image-container {
    margin: 0px 0px 40px 0px;
    text-align: center;
    padding: 0px;
    background: white;
    border-radius: 15px;
}

.generated-image {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin: 20px 0;
}

.copy-btn {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

.copy-success {
    display: inline-block;
    color: #27ae60;
    font-weight: 600;
    margin: 0px 10px 10px 10px;
    animation: fadeOut 2s ease-out forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

.promo-block {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 3px solid #ffc107;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.promo-icon {
    font-size: 64px;
    margin-bottom: 15px;
    display: block;
}

.promo-text {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
}

.title-link {
    font-size: 16px;
    margin-bottom: 20px;
}

.title-link a {
    color: #667eea;
    text-decoration: none;
}

.promo-link {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.promo-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
}

.promo-highlight {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
    margin-top: 25px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 768px) {
    .promo-block {
        padding: 25px 20px;
        margin: 20px 0;
    }

    .promo-icon {
        font-size: 48px;
    }

    .promo-text {
        font-size: 16px;
    }

    .promo-link {
        font-size: 16px;
        padding: 12px 25px;
    }

    .promo-highlight {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    #stars-container {
        display: none;
    }

    .container {
        padding: 30px 20px;
        border-radius: 0;
    }

    .author-photo {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }

    .title-main {
        font-size: 18px;
    }

    .title {
        font-size: 26px;
    }

    .intro-text {
        font-size: 15px;
        padding: 20px;
    }

    .planet-block {
        padding: 25px 20px;
    }

    .planet-title {
        font-size: 24px;
    }

    .question-item {
        padding: 15px;
    }

    .question-text {
        font-size: 15px;
    }

    .result-planet-score {
        font-size: 28px;
    }

    .level-title {
        font-size: 20px;
        padding: 10px 15px;
    }

    .planet-item {
        margin-right: 10px;
    }

    .planet-item .planet-icon {
        font-size: 24px;
    }

    .planet-item-name {
        font-size: 18px;
    }

    .planet-item-score {
        font-size: 18px;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .container {
        padding: 20px 15px;
        border-radius: 0;
    }

    .author-photo {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
        border: 4px solid #667eea;
    }

    .title-main {
        font-size: 16px;
    }

    .title {
        font-size: 22px;
    }

    .planet-title {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .level-title {
        font-size: 18px;
        padding: 8px 12px;
    }

    .planet-item {
        margin-right: 8px;
        margin-bottom: 10px;
    }

    .planet-item .planet-icon {
        font-size: 20px;
    }

    .planet-item-name {
        font-size: 16px;
    }

    .planet-item-score {
        font-size: 16px;
        padding: 3px 8px;
    }
}

