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

body {
    min-height: 100vh;
    font-family: "Segoe UI", sans-serif;
    color: #2f2f2f;

    background:
        linear-gradient(
            135deg,
            #fffdfd 0%,
            #ffe6f2 40%,
            #f4e8ff 75%,
            #ffffff 100%
        );

    padding: 40px 20px;
}

.page-container {
    max-width: 1200px;
    margin: auto;

    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);

    border-radius: 18px;

    padding: 24px;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.08);

    border: 1px solid rgba(255,255,255,0.6);
}

.hero-panel {
    text-align: center;
}

.hero-panel h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.hero-panel p {
    line-height: 1.7;
    max-width: 900px;
    margin: auto;
}

.panel h2 {
    margin-bottom: 18px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.trait-btn {
    border: none;

    background: white;

    padding: 16px;
    border-radius: 12px;

    cursor: pointer;

    font-size: 1rem;

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.trait-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 4px 12px rgba(0,0,0,0.1);
}

.trait-btn.selected {
    background:
        linear-gradient(
            135deg,
            #ffb9dd,
            #d9b3ff
        );

    color: white;
    font-weight: bold;
}

#results,
#interpretations {
    min-height: 120px;
    padding: 12px;

    background: rgba(255,255,255,0.5);

    border-radius: 12px;
}

.result-group {
    margin-bottom: 16px;
}

.result-group h3 {
    margin-bottom: 6px;
}

.reduced-number {
    display: inline-block;

    margin-top: 6px;
    padding: 6px 12px;

    border-radius: 999px;

    background: #ead4ff;

    font-weight: bold;
}

.reduced-result {
    display: inline-block;

    margin-top: 6px;
    padding: 6px 12px;

    border-radius: 999px;

    background: #cad4df;

    font-weight: bold;
}

@media (max-width: 768px) {
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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