/* =========================================================
   BASE / RESET
========================================================= */
* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    background: #f6f8fa;
    color: #000;
}

.app {
    max-width: 460px;
    margin: 0 auto;
    padding: 32px 16px 56px;
}

/* =========================================================
   HEADER
========================================================= */
.header {
    text-align: center;
}

.logo {
    height: 68px;
    margin: 0 auto 18px;
    display: block;
}

.header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.subtitle {
    margin: 10px 0 22px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

/* =========================================================
   CLUSTER STATUS TABS
========================================================= */
.cluster-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.tab {
    flex: 1;
    padding: 8px 6px;
    text-align: center;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #e5e7eb;
    color: #666;
    user-select: none;
}

.tab.active {
    background: #6da852;
    color: #fff;
}

.tab.done {
    background: #cfe6c9;
    color: #000;
}

/* =========================================================
   CLUSTER INTRO
========================================================= */
.cluster-intro {
    text-align: center;
    margin-bottom: 14px;
}

.cluster-intro-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cluster-intro-text {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

/* =========================================================
   CLUSTER VISUAL
========================================================= */
.cluster-visual {
    margin-bottom: 18px;
}

.cluster-visual img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

/* =========================================================
   CARD CONTAINER
========================================================= */
.card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card+.card {
    margin-top: 24px;
}

.hidden {
    display: none;
}

/* =========================================================
   QUESTION AREA
========================================================= */
.question-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
}

h2 {
    font-size: 1.1rem;
    margin: 12px 0 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* =========================================================
   PROGRESS BAR
========================================================= */
.progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    margin: 12px 0 22px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #6da852;
    border-radius: 999px;
    transition: width 0.25s ease;
}

/* =========================================================
   ANSWERS
========================================================= */
.answers {
    display: grid;
    gap: 12px;
}

.answers button {
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
}

.answers button.selected {
    background: #6da852;
    color: #fff;
    border-color: #6da852;
}

/* =========================================================
   PRIMARY / SECONDARY BUTTONS
========================================================= */
.next {
    margin-top: 24px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #bfc8e6;
    color: #fff;
    font-size: 1rem;
    cursor: default;
}

.next.enabled {
    background: #001f7a;
    cursor: pointer;
}

.restart {
    margin-top: 14px;
    background: none;
    border: none;
    color: #666;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
}

/* =========================================================
   TRANSITION VIEW
========================================================= */
.transition {
    margin-top: 90px;
    text-align: center;
}

.checkmark {
    font-size: 3rem;
    color: #6da852;
    margin-bottom: 10px;
}

/* =========================================================
   RESULT VIEW
========================================================= */
.total-score {
    font-size: 3rem;
    text-align: center;
    color: #6da852;
    font-weight: 600;
    margin-bottom: 6px;
}

.score-rating {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 18px;
}

.result-section-title {
    margin-top: 28px;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.result-hint {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 12px;
}

.ai-summary {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

/* =========================================================
   DETAIL RESULTS
========================================================= */
.detail-block {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.detail-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-score {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 6px;
}

.detail-tips {
    padding-left: 18px;
    margin-top: 6px;
}

.detail-tips li {
    margin-bottom: 4px;
    font-size: 0.9rem;
}

/* =========================================================
   DISCLAIMER
========================================================= */
.disclaimer {
    margin-top: 26px;
    font-size: 0.75rem;
    color: #777;
    line-height: 1.4;
}

/* =========================================================
   RESULT RESTART BUTTON
========================================================= */
.restart.primary {
    margin-top: 28px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: #001f7a;
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}