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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Start Screen */
#start-screen {
    text-align: center;
    color: white;
}

.logo {
    font-size: 100px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.btn-start {
    background: white;
    color: #667eea;
    border: none;
    padding: 18px 50px;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-start:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Quiz Screen */
.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: white;
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.question-counter {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1rem;
    opacity: 0.9;
}

.question-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.question-card h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 30px;
    line-height: 1.4;
}

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

.option-btn {
    background: #f8f9fa;
    border: 3px solid #e9ecef;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: #333;
}

.option-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateX(10px);
}

.option-btn.selected {
    background: #764ba2;
    border-color: #764ba2;
    color: white;
}

/* Result Screen */
.result-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-align: center;
}

.result-type {
    font-size: 4rem;
    margin-bottom: 10px;
}

.result-title {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 20px;
    font-weight: bold;
}

.result-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.result-traits {
    margin: 30px 0;
}

.trait {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    gap: 15px;
}

.trait-label {
    font-weight: bold;
    color: #333;
    min-width: 30px;
}

.trait-bar {
    flex: 1;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.trait-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
    width: 50%;
}

.trait:nth-child(1) .trait-fill {
    background: linear-gradient(90deg, #ff6b6b, #667eea);
}

.trait:nth-child(2) .trait-fill {
    background: linear-gradient(90deg, #feca57, #48dbfb);
}

.trait:nth-child(3) .trait-fill {
    background: linear-gradient(90deg, #ff9ff3, #54a0ff);
}

.trait:nth-child(4) .trait-fill {
    background: linear-gradient(90deg, #00d2d3, #5f27cd);
}

.btn-restart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-restart:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Chart Section */
.chart-section {
    margin: 35px 0 25px;
}

.chart-title {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

#radar-chart {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Dimension Blocks */
.dim-blocks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.dim-block {
    display: flex;
    align-items: stretch;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dim-block:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
}

.dim-block-bar {
    width: 8px;
    flex-shrink: 0;
}

.dim-block-content {
    flex: 1;
    padding: 16px 20px;
}

.dim-block-title {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    margin-bottom: 6px;
}

.dim-block-active {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.dim-block-pct {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.dim-block-label {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
}

.dim-block-desc {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.dim-block-progress {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.dim-block-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease;
}

/* Share Section */
.share-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.share-label {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn.telegram:hover {
    background: #006da3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.share-btn.copy {
    background: #333;
    color: white;
}

.share-btn.copy:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.toast {
    display: none;
    margin-top: 12px;
    padding: 10px;
    background: #28a745;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    animation: toastIn 0.3s ease;
}

.toast.show {
    display: inline-block;
}

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

/* Schedule Section */
.schedule-section {
    margin: 30px 0;
    text-align: left;
}

.schedule-section .chart-title {
    text-align: center;
}

.schedule-timeline {
    position: relative;
    padding-left: 60px;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea, #764ba2, #ff6b6b, #feca57, #48dbfb, #00d2d3);
    border-radius: 3px;
}

.schedule-item {
    position: relative;
    margin-bottom: 18px;
    padding: 14px 18px;
    background: #f8f9fa;
    border-radius: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: none;
}

.schedule-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.schedule-item::before {
    content: '';
    position: absolute;
    left: -42px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    z-index: 1;
}

.schedule-item.morning::before { border-color: #feca57; background: #feca57; }
.schedule-item.forenoon::before { border-color: #48dbfb; background: #48dbfb; }
.schedule-item.midday::before { border-color: #ff6b6b; background: #ff6b6b; }
.schedule-item.afternoon::before { border-color: #667eea; background: #667eea; }
.schedule-item.evening::before { border-color: #764ba2; background: #764ba2; }
.schedule-item.night::before { border-color: #2d3436; background: #2d3436; }

.schedule-time {
    font-weight: 800;
    font-size: 0.85rem;
    color: #667eea;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.schedule-activity {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.schedule-tip {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
}

@media (max-width: 500px) {
    h1 { font-size: 1.8rem; }
    .question-card { padding: 25px; }
    .result-card { padding: 25px; }
    .result-type { font-size: 3rem; }
}
