.journey-path {
    position: relative;
    height: 330px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg) 88%, black);
}

.journey-path-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
}

.journey-path-canvas.is-hover {
    cursor: grab;
}

.journey-path-canvas.is-dragging {
    cursor: grabbing;
}

.answered-page .content-inner {
    max-width: 1024px;
    padding-top: 150px;
}

.journey {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: color-mix(in srgb, var(--bg) 40%, transparent);
    color: var(--text);
    font-family: var(--font-ui);
}

.journey-head > * {
    margin: 0px;
}

.journey-head {
    gap: .375rem;
    display: flex;
    flex-direction: column;
}

.journey-head h1 {
    font-size: 28px;
    line-height: 36px;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: var(--preview-weight);
}

.journey h2 {
    font-size: 15px;
    line-height: 22px;
    color: var(--text);
    font-family: var(--font-ui);
    font-weight: 600;
    margin: 0px;
}

.journey-head p,
.journey-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 19px;
    margin: 0px;
}

.journey-card {
    gap: .75rem;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background-color: color-mix(in srgb, var(--panel) 55%, transparent);
}

.journey-card-header {
    gap: .1875rem;
    display: flex;
    flex-direction: column;
}

/* Areas */
.journey-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.journey-chip {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .31rem .625rem;
    border: 1px solid var(--border);
    border-radius: .375rem;
    background: transparent;
    color: var(--muted);
    font: 500 12px/16px var(--font-ui);
    cursor: default;
}

.journey-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
}

.journey-chip.is-lit {
    border-color: color-mix(in srgb, var(--accent-strong) 40%, transparent);
    background: color-mix(in srgb, var(--accent-strong) 10%, transparent);
    color: var(--text);
}

.journey-chip.is-lit .journey-chip-dot {
    background: var(--accent-strong);
    box-shadow: 0 0 6px var(--accent-strong);
}

/* Stats */
.journey-stats {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.journey-stat {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: .625rem;
    min-width: 0;
    min-height: 5.875rem;
    padding: 1.125rem 1.375rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--panel) 55%, transparent);
}

.journey-stat p {
    margin: 0;
}

.journey-stat-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .5rem;
}

.journey-stat-value {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    line-height: 28px;
}

.journey-stat-value small {
    color: var(--muted);
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}

.journey-stat-label {
    color: var(--text);
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
}

/* Days */
.journey-stat--days {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.journey-stat-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.journey-stat-icon::before {
    content: "";
    width: 10px;
    height: 14px;
    background-color: color-mix(in srgb, var(--accent-strong) 85%, transparent);
    -webkit-mask: url("../icons/streak-flame.svg") center / contain no-repeat;
    mask: url("../icons/streak-flame.svg") center / contain no-repeat;
}

/* Next stage */
.journey-stat--next {
    justify-content: flex-start;
    gap: .5625rem;
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
    background: color-mix(in srgb, var(--accent-strong) 10%, transparent);
}

.journey-stage-badge.is-locked {
    color: var(--muted);
}

.journey-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.journey-stat-title {
    color: var(--text);
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
}

.journey-stat-count {
    color: var(--accent);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
}

.journey-stage-badge {
    flex: none;
    color: var(--accent-strong);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
}

.journey-stat-note {
    color: var(--muted);
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
}

/* Bars */
.journey-meter,
.journey-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border);
}

.journey-meter>span,
.journey-bar>span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent-strong);
    transition: width .4s ease;
}

/* Activity */
.journey-activity {
    gap: 1.125rem;
}

.journey-activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.journey-period {
    display: flex;
    flex: none;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg) 70%, var(--panel));
}

.journey-period-btn {
    padding: .4375rem 1rem;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.journey-period-btn:hover {
    color: var(--text);
}

.journey-period-btn.is-active {
    background: color-mix(in srgb, var(--accent-strong) 16%, transparent);
    color: var(--accent-strong);
}

.journey-activity p {
    margin: 0;
}

.journey-activity-kicker {
    color: var(--muted);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 10px;
    line-height: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.journey-activity-value {
    display: flex;
    align-items: baseline;
    gap: .3125rem;
    align-items: center;
}

.journey-activity-value strong {
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 30px;
    line-height: 36px;
}

.journey-activity-value small {
    color: var(--muted);
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
}

.journey-activity-range {
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 16px;
}

.journey-activity-chart {
    position: relative;
    width: 100%;
    height: 200px;
}

/* Categories */
.journey-categories {
    gap: 1rem;
    background-color: color-mix(in srgb, var(--panel) 40%, transparent);
}

.journey-category-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: .75rem;
}

.journey-category {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 calc((100% - 2.25rem) / 4);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    padding: .875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 70%, var(--panel));
    cursor: pointer;
}

.journey-category.is-selected {
    border-color: var(--accent-strong);
    background: color-mix(in srgb, var(--accent-strong) 10%, transparent);
}

.journey-category-row {
    display: flex;
    align-self: stretch;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
}

.journey-category-name {
    color: var(--text);
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
}

.journey-category .journey-bar {
    width: 100%;
}

.journey-category .journey-bar > span {
    background: var(--accent);
}

/* Not started */
.journey-category.is-dark {
    opacity: .72;
}

.journey-category.is-dark .journey-category-name,
.journey-category.is-dark .journey-category-count strong {
    color: var(--muted);
}

.journey-category.is-dark .journey-bar {
    opacity: .5;
}

.journey-category.is-dark .journey-bar > span {
    visibility: hidden;
}

/* Continue */
.journey-continue {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    height: 56px;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background-color: var(--accent);
    color: var(--on-accent);
    box-shadow: var(--accent-shadow);
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
}

.journey-continue:hover,
.journey-continue:focus-visible {
    color: var(--on-accent);
    filter: brightness(1.06);
}

@media (max-width: 900px) {
    .journey-stats {
        flex-wrap: wrap;
    }

    .journey-stat {
        flex: 1 1 calc(50% - .5rem);
    }

    .journey-stat--next {
        flex-basis: 100%;
    }

    .journey-category {
        flex-basis: calc((100% - .75rem) / 2);
    }
}

@media (max-width: 560px) {
    .journey-stats {
        flex-direction: column;
    }

    .journey-category {
        flex-basis: 100%;
    }
}