.cv-quest-page {
    --quest-blue: #1d63f2;
    --quest-text: #0d1b3d;
    --quest-muted: #53627d;
    --quest-border: #cfe0ff;
    --quest-surface: rgba(255, 255, 255, 0.92);
    --quest-shadow: 0 18px 46px rgba(24, 74, 157, 0.12);
    display: grid;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 8px 24px;
    color: var(--quest-text);
    overflow-x: clip;
    overflow-y: visible;
}

body.home-page-shell {
    overflow-x: clip;
    overflow-y: visible;
}

body.home-page-shell .main-content,
body.home-page-shell .content-shell {
    overflow: visible;
}

.cv-quest-hero,
.cv-quest-overview,
.cv-world-card,
.cv-level-panel {
    border: 1px solid var(--quest-border);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.94)),
        radial-gradient(circle at 90% 15%, rgba(37, 99, 235, 0.12), transparent 30%);
    box-shadow: var(--quest-shadow);
}

.cv-quest-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 104px;
    padding: 14px 18px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 247, 255, 0.96) 52%, rgba(219, 234, 254, 0.9) 100%),
        radial-gradient(circle at 78% 18%, rgba(37, 99, 235, 0.2), transparent 34%);
}

.cv-quest-hero-copy {
    display: grid;
    grid-template-columns: minmax(220px, 0.76fr) minmax(520px, 1.24fr);
    gap: 6px 18px;
    align-items: center;
    min-width: 0;
}

.cv-quest-hero h1 {
    grid-column: 1;
    margin: 0;
    color: #061536;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: 0;
}

.cv-quest-hero p {
    grid-column: 1;
    max-width: 820px;
    margin: 0;
    color: #294164;
    font-size: 14px;
    line-height: 1.34;
}

.cv-quest-hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.cv-quest-hero-actions .home-primary-button,
.cv-quest-hero-actions .home-secondary-button {
    min-width: 120px;
    min-height: 38px;
    padding: 0 14px;
    justify-content: center;
    font-size: 14px;
}

.cv-quest-stats {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-content: center;
    margin: 0;
}

.cv-quest-stat {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border: 1px solid rgba(147, 197, 253, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.cv-quest-stat span {
    display: block;
    color: var(--stat-color, var(--quest-blue));
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.cv-quest-stat strong {
    display: block;
    margin-top: 0;
    color: #314462;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.cv-quest-stat--completed { --stat-color: #089981; }
.cv-quest-stat--mechanism { --stat-color: #2563eb; }
.cv-quest-stat--inference { --stat-color: #0891b2; }
.cv-quest-stat--frontier { --stat-color: #7c3aed; }
.cv-quest-stat--planned { --stat-color: #64748b; }
.cv-quest-stat--worlds { --stat-color: #f97316; }

.cv-quest-overview {
    min-width: 0;
    overflow: hidden;
    padding: 7px 14px 8px;
    border-radius: 16px;
}

.cv-quest-overview .cv-quest-section-head {
    display: none;
}

.cv-quest-section-head {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 14px;
}

.cv-quest-section-head span {
    display: block;
    color: var(--quest-blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cv-quest-section-head h2 {
    margin: 4px 0 0;
    color: #07173c;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

.cv-quest-section-head p {
    margin: 0;
    color: var(--quest-muted);
    font-size: 14px;
}

.cv-quest-overview-route {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow-x: auto;
    min-height: 42px;
    padding: 0 2px;
    scrollbar-width: thin;
}

.overview-step {
    --step-color: #2563eb;
    position: relative;
    flex: 0 0 102px;
    display: grid;
    gap: 3px;
    justify-items: center;
    color: #12325a;
}

.overview-step span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 2px solid color-mix(in srgb, var(--step-color) 70%, #ffffff);
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    background: var(--step-color);
    box-shadow: 0 5px 14px color-mix(in srgb, var(--step-color) 20%, transparent);
}

.overview-step strong {
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.overview-step--completed { --step-color: #089981; }
.overview-step--mechanism { --step-color: #2563eb; }
.overview-step--inference { --step-color: #0891b2; }
.overview-step--frontier { --step-color: #7c3aed; }
.overview-step--planned {
    --step-color: #94a3b8;
    opacity: 0.78;
}

.overview-step.is-current::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 35px;
    height: 35px;
    border: 2px solid color-mix(in srgb, var(--step-color) 45%, transparent);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: questPulse 2.4s ease-in-out infinite;
    pointer-events: none;
}

.overview-link {
    position: relative;
    flex: 0 0 44px;
    height: 2px;
    margin: 0 -6px 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #7db2ff;
}

.overview-link::after,
.world-path-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    transform: translateX(-100%);
    animation: questFlow 2.6s linear infinite;
}

.overview-link--planned {
    height: 0;
    border-top: 2px dashed rgba(148, 163, 184, 0.8);
    background: transparent;
}

.overview-link--planned::after {
    content: none;
}

.cv-quest-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 12px;
    align-items: start;
    min-width: 0;
}

.cv-quest-worlds {
    min-width: 0;
}

.cv-quest-world-list {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.cv-quest-worlds > .cv-quest-section-head {
    margin-bottom: 8px;
    align-items: center;
}

.cv-quest-worlds > .cv-quest-section-head span {
    display: none;
}

.cv-quest-worlds > .cv-quest-section-head h2 {
    margin: 0;
    font-size: 21px;
}

.cv-quest-worlds > .cv-quest-section-head p {
    font-size: 14px;
}

.cv-world-card {
    --world-color: var(--quest-blue);
    --world-bg-image: none;
    --world-bg-left: 224px;
    --world-bg-opacity: 0.38;
    position: relative;
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    overflow: hidden;
    padding: 18px;
    border-color: color-mix(in srgb, var(--world-color) 28%, #dbeafe);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82) 28%, color-mix(in srgb, var(--world-color) 8%, #ffffff) 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.cv-world-card::before,
.cv-world-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cv-world-card::before {
    inset: 12px 12px 12px var(--world-bg-left);
    border-radius: 18px;
    opacity: var(--world-bg-opacity);
    background: var(--world-bg-image) center / cover no-repeat;
    filter: saturate(0.95) contrast(1.04);
    mix-blend-mode: multiply;
}

.cv-world-card::after {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.5) 34%, rgba(255, 255, 255, 0.34) 72%, rgba(255, 255, 255, 0.62) 100%),
        radial-gradient(circle at 18% 28%, color-mix(in srgb, var(--world-color) 9%, transparent), transparent 21%),
        radial-gradient(circle at 82% 64%, color-mix(in srgb, var(--world-color) 10%, transparent), transparent 26%);
}

.cv-world-card--world-01 {
    --world-bg-image: url("../assets/img/world1.webp");
    --world-bg-opacity: 0.42;
}

.cv-world-card--world-02 {
    --world-bg-image: url("../assets/img/world2.webp");
    --world-bg-opacity: 0.4;
}

.cv-world-card--world-03 {
    --world-bg-image: url("../assets/img/world3.webp");
    --world-bg-opacity: 0.38;
}

.cv-world-card--world-04 {
    --world-bg-image: url("../assets/img/world4.webp");
    --world-bg-opacity: 0.4;
}

.cv-world-card--world-01::before {
    background: var(--world-bg-image) center / cover no-repeat;
}

.cv-world-card--world-02::before {
    background: var(--world-bg-image) center / cover no-repeat;
}

.cv-world-card--world-03::before {
    background: var(--world-bg-image) center / cover no-repeat;
}

.cv-world-card--world-04::before {
    background: var(--world-bg-image) center / cover no-repeat;
}

.cv-world-card.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.cv-world-card.is-focused {
    border-color: var(--world-color);
    box-shadow: 0 20px 48px color-mix(in srgb, var(--world-color) 18%, transparent);
}

.cv-world-meta {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: start;
    gap: 11px;
    padding: 4px 0 4px 2px;
}

.cv-world-title-button {
    display: grid;
    gap: 4px;
    padding: 0;
    border: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.cv-world-title-button span {
    color: var(--world-color);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cv-world-title-button strong {
    color: #07173c;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.12;
}

.cv-world-title-button:hover strong {
    color: var(--world-color);
}

.cv-world-meta p {
    margin: 0;
    color: #53627d;
    font-size: 14px;
    line-height: 1.42;
}

.cv-world-progress {
    display: grid;
    gap: 6px;
}

.cv-world-progress div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #4f607d;
    font-size: 13px;
    font-weight: 800;
}

.cv-world-progress strong {
    color: var(--world-color);
}

.cv-world-progress i {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef8;
}

.cv-world-progress b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--world-color), color-mix(in srgb, var(--world-color) 55%, #93c5fd));
}

.cv-world-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.cv-world-meta-grid span {
    min-width: 0;
    padding: 7px 6px;
    border: 1px solid color-mix(in srgb, var(--world-color) 16%, #dbeafe);
    border-radius: 10px;
    color: #53627d;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    background: color-mix(in srgb, var(--world-color) 6%, #ffffff);
}

.cv-world-meta-grid strong {
    display: block;
    color: var(--world-color);
    font-size: 16px;
    line-height: 1.1;
}

.cv-world-map {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0px 0 0px;
    scrollbar-width: thin;
}

.cv-world-track {
    position: relative;
    box-sizing: border-box;
    max-width: none;
    border-radius: 18px;
}

.world-route-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.map-route-base {
    fill: none;
    stroke: rgba(148, 163, 184, 0.28);
    stroke-width: 8;
    stroke-linecap: round;
}

.map-route-segment {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 1 0;
}

.map-route-branch {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    opacity: 0.72;
}

.map-route-branch--active {
    stroke: color-mix(in srgb, var(--world-color) 42%, #60a5fa);
    stroke-dasharray: 7 10;
    animation: mapRouteFlow 4.6s linear infinite;
}

.map-route-branch--planned {
    stroke: rgba(148, 163, 184, 0.55);
    stroke-dasharray: 6 12;
}

.map-route-branch.is-bright {
    stroke: var(--world-color);
    stroke-width: 4;
    opacity: 1;
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--world-color) 40%, transparent));
}

.map-route-segment--active {
    stroke: color-mix(in srgb, var(--world-color) 70%, #38bdf8);
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--world-color) 28%, transparent));
    stroke-dasharray: 18 12;
    animation: mapRouteFlow 2.8s linear infinite;
}

.map-route-segment--planned {
    stroke: rgba(148, 163, 184, 0.72);
    stroke-dasharray: 8 11;
}

.map-route-segment.is-bright {
    stroke: var(--world-color);
    stroke-width: 6;
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--world-color) 46%, transparent));
}

.world-level-node {
    --node-color: #2563eb;
    --badge-size: 50px;
    position: absolute;
    left: var(--node-x);
    top: var(--node-y);
    display: block;
    width: 90px;
    height: 56px;
    padding: 0;
    border: 0;
    color: #102246;
    text-align: center;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px));
    transition: opacity 0.24s ease, transform 0.24s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.world-level-node.is-revealed {
    opacity: 1;
    transform: translate(-50%, -50%);
    transition-delay: calc(var(--reveal-index, 0) * 20ms);
}

.world-level-node:hover,
.world-level-node.is-selected {
    z-index: 12;
}

.world-level-node.is-selected {
    transform: translate(-50%, calc(-50% - 3px));
}

.world-level-node:hover {
    transform: translate(-50%, calc(-50% - 4px)) scale(1.04);
}

.world-level-node.is-current::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--badge-size) + 18px);
    height: calc(var(--badge-size) + 18px);
    border: 2px solid color-mix(in srgb, var(--node-color) 48%, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: questPulse 2.2s ease-in-out infinite;
    pointer-events: none;
}

.world-level-node--completed { --node-color: #089981; }
.world-level-node--mechanism { --node-color: #2563eb; }
.world-level-node--inference { --node-color: #0891b2; }
.world-level-node--frontier { --node-color: #7c3aed; }
.world-level-node--planned {
    --node-color: #94a3b8;
    color: #64748b;
}

.level-node-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: var(--badge-size);
    height: var(--badge-size);
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    background:
        conic-gradient(from -24deg, color-mix(in srgb, var(--node-color) 86%, #ffffff), color-mix(in srgb, var(--node-color) 32%, #ffffff), color-mix(in srgb, var(--node-color) 88%, #ffffff)),
        radial-gradient(circle at 50% 50%, #ffffff 0 54%, color-mix(in srgb, var(--node-color) 17%, #ffffff) 55% 100%);
    box-shadow:
        0 8px 20px color-mix(in srgb, var(--node-color) 18%, transparent),
        inset 0 0 0 4px rgba(255, 255, 255, 0.86),
        inset 0 0 0 8px color-mix(in srgb, var(--node-color) 11%, #ffffff);
}

.level-node-marker::before,
.level-node-marker::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.level-node-marker::before {
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, 0.94);
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), color-mix(in srgb, var(--node-color) 11%, #ffffff));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--node-color) 16%, #ffffff);
}

.level-node-marker::after {
    inset: -5px;
    border: 2px solid color-mix(in srgb, var(--node-color) 26%, transparent);
}

.world-level-node--completed .level-node-marker::after {
    border-color: color-mix(in srgb, var(--node-color) 16%, transparent);
}

.world-level-node.is-key {
    --badge-size: 58px;
    width: 102px;
    height: 62px;
}

.world-level-node.is-key .level-node-marker::after {
    inset: -8px;
    border-width: 2px;
    border-style: solid;
    border-color: color-mix(in srgb, var(--node-color) 40%, transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--node-color) 20%, transparent);
}

.world-level-node--completed.is-key .level-node-marker::after {
    border-color: color-mix(in srgb, var(--node-color) 24%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--node-color) 12%, transparent);
}

.world-level-node--planned .level-node-marker {
    background:
        repeating-conic-gradient(from -20deg, rgba(148, 163, 184, 0.72) 0 12deg, transparent 12deg 24deg),
        radial-gradient(circle at 50% 50%, #ffffff 0 58%, #f8fafc 59% 100%);
    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, 0.88),
        inset 0 0 0 8px #f1f5f9;
}

.world-level-node.is-selected .level-node-marker {
    box-shadow:
        0 0 0 5px color-mix(in srgb, var(--node-color) 15%, transparent),
        0 16px 30px color-mix(in srgb, var(--node-color) 28%, transparent),
        inset 0 0 0 4px rgba(255, 255, 255, 0.9),
        inset 0 0 0 8px color-mix(in srgb, var(--node-color) 13%, #ffffff);
}

.world-level-node.is-boss {
    --badge-size: 72px;
    width: 120px;
    height: 76px;
}

.world-level-node.is-boss .level-node-marker {
    border-radius: 18px;
    clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
    box-shadow:
        0 0 0 7px color-mix(in srgb, var(--node-color) 12%, transparent),
        0 0 28px color-mix(in srgb, var(--node-color) 28%, transparent),
        0 18px 34px color-mix(in srgb, var(--node-color) 30%, transparent),
        inset 0 0 0 4px rgba(255, 255, 255, 0.9),
        inset 0 0 0 10px color-mix(in srgb, var(--node-color) 13%, #ffffff);
}

.world-level-node.is-boss .level-node-marker::after {
    border-radius: 20px;
    clip-path: inherit;
    inset: -11px;
    border-color: color-mix(in srgb, var(--node-color) 50%, transparent);
    box-shadow: 0 0 26px color-mix(in srgb, var(--node-color) 28%, transparent);
}

.level-boss-badge {
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    display: inline-flex;
    transform: translateX(-50%);
    padding: 1px 6px;
    border: 1px solid color-mix(in srgb, var(--node-color) 38%, #ffffff);
    border-radius: 999px;
    color: var(--node-color);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 7px 14px color-mix(in srgb, var(--node-color) 16%, transparent);
}

.level-icon {
    position: absolute;
    z-index: 3;
    top: -6px;
    right: -9px;
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 17px;
    padding: 0 5px;
    border: 1px solid color-mix(in srgb, var(--node-color) 28%, #ffffff);
    border-radius: 999px;
    color: var(--node-color);
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 5px 12px color-mix(in srgb, var(--node-color) 14%, transparent);
}

.level-node-marker b {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--node-color);
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
}

.world-level-node strong {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    display: block;
    min-height: 28px;
    width: 110px;
    max-width: 110px;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.08;
}

.world-level-node.is-boss strong {
    top: calc(100% + 16px);
}

.world-level-node em {
    position: absolute;
    top: calc(100% + 39px);
    left: 50%;
    width: fit-content;
    max-width: 100%;
    transform: translateX(-50%);
    padding: 2px 6px;
    overflow: hidden;
    border-radius: 999px;
    color: color-mix(in srgb, var(--node-color) 82%, #102246);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: color-mix(in srgb, var(--node-color) 10%, #ffffff);
}

.world-level-node.is-boss em {
    top: calc(100% + 50px);
}

.world-level-node em:empty,
.cv-level-status:empty {
    display: none;
}

.level-tooltip {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: calc(100% + 8px);
    width: 220px;
    max-width: 240px;
    padding: 7px 9px;
    border: 1px solid color-mix(in srgb, var(--node-color) 28%, #dbeafe);
    border-radius: 10px;
    color: #102246;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.34;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    opacity: 0;
    transform: translate(-50%, 4px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    visibility: hidden;
}

.world-level-node:hover .level-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

.cv-level-panel {
    position: sticky;
    top: 76px;
    align-self: start;
    display: grid;
    gap: 8px;
    height: fit-content;
    max-height: none;
    min-width: 0;
    overflow: visible;
    padding: 16px;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cv-level-panel.is-updating {
    opacity: 0.82;
    transform: translateY(3px);
}

.cv-level-panel-head {
    display: grid;
    gap: 5px;
}

.cv-level-panel-head > span {
    color: var(--quest-blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cv-level-panel h2 {
    margin: 0;
    color: #07173c;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.1;
}

.cv-level-status {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--panel-status, var(--quest-blue));
    font-size: 13px;
    font-weight: 900;
    background: color-mix(in srgb, var(--panel-status, var(--quest-blue)) 10%, #ffffff);
}

.cv-level-status--completed { --panel-status: #089981; }
.cv-level-status--mechanism { --panel-status: #2563eb; }
.cv-level-status--inference { --panel-status: #0891b2; }
.cv-level-status--frontier { --panel-status: #7c3aed; }
.cv-level-status--planned { --panel-status: #64748b; }

.cv-level-stars {
    display: flex;
    gap: 4px;
    color: #cbd5e1;
    font-size: 17px;
}

.cv-level-stars span.is-active {
    color: #f59e0b;
}

.cv-level-task {
    margin: 0;
    padding: 8px 10px;
    border-left: 3px solid var(--quest-blue);
    border-radius: 0 12px 12px 0;
    color: #2b4567;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.34;
    background: #f5f9ff;
}

.cv-level-detail-list {
    display: grid;
    gap: 6px;
    margin: 0;
}

.cv-level-detail-list div {
    padding: 7px 9px;
    border: 1px solid #dbe8fb;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
}

.cv-level-detail-list dt {
    margin: 0 0 4px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.cv-level-detail-list dd {
    margin: 0;
    color: #102246;
    font-size: 14px;
    font-weight: 760;
    line-height: 1.3;
}

.cv-level-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cv-level-tags span {
    display: inline-flex;
    padding: 2px 6px;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 900;
    background: #edf4ff;
}

.cv-level-enter {
    justify-content: center;
    width: 100%;
}

.cv-level-enter--disabled {
    color: #64748b;
    background: #e2e8f0;
    box-shadow: none;
    cursor: not-allowed;
}

.cv-quest-error {
    padding: 24px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    color: #991b1b;
    font-weight: 900;
    background: #fff7f7;
}

@keyframes questFlow {
    to {
        transform: translateX(100%);
    }
}

@keyframes mapRouteFlow {
    to {
        stroke-dashoffset: -60;
    }
}

@keyframes questPulse {
    0%,
    100% {
        opacity: 0.28;
        transform: translateX(-50%) scale(0.95);
    }
    50% {
        opacity: 0.9;
        transform: translateX(-50%) scale(1.08);
    }
}

.world-level-node.is-current::before {
    animation-name: questNodePulse;
}

@keyframes questNodePulse {
    0%,
    100% {
        opacity: 0.28;
        transform: translate(-50%, -50%) scale(0.96);
    }
    50% {
        opacity: 0.88;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

@media (max-width: 1440px) {
    .cv-quest-stats {
        max-width: 760px;
    }

    .cv-quest-board {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .cv-world-card {
        --world-bg-left: 216px;
        grid-template-columns: 188px minmax(0, 1fr);
    }
}

@media (max-width: 1120px) {
    .cv-quest-hero,
    .cv-quest-board {
        grid-template-columns: 1fr;
    }

    .cv-quest-hero-copy {
        grid-template-columns: 1fr;
    }

    .cv-quest-stats {
        grid-column: 1;
        grid-row: auto;
        max-width: none;
    }

    .cv-quest-hero-actions {
        justify-content: flex-start;
    }

    .cv-level-panel {
        position: static;
        max-height: none;
    }
}

@media (max-width: 820px) {
    .cv-quest-page {
        padding: 10px 8px 18px;
    }

    .cv-quest-hero,
    .cv-quest-overview,
    .cv-world-card,
    .cv-level-panel {
        border-radius: 18px;
    }

    .cv-quest-hero {
        padding: 16px;
        min-height: 0;
    }

    .cv-quest-hero h1 {
        font-size: 30px;
    }

    .cv-quest-hero p {
        font-size: 14px;
    }

    .cv-quest-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cv-quest-hero-actions .home-primary-button,
    .cv-quest-hero-actions .home-secondary-button {
        width: 100%;
        min-width: 0;
    }

    .cv-quest-stats {
        gap: 6px;
    }

    .cv-quest-section-head {
        display: grid;
        align-items: start;
    }

    .cv-world-card {
        --world-bg-left: 10px;
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .cv-world-card::before {
        inset: 132px 10px 10px var(--world-bg-left);
    }

    .cv-world-meta-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cv-world-map {
        padding-top: 14px;
    }
}

@media (max-width: 520px) {
    .cv-quest-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .cv-quest-stat {
        justify-content: space-between;
    }

    .cv-world-meta-grid {
        grid-template-columns: 1fr;
    }

    .overview-step {
        flex-basis: 120px;
    }

    .overview-link {
        flex-basis: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .overview-link::after,
    .map-route-segment--active,
    .overview-step.is-current::after,
    .world-level-node.is-current::before {
        animation: none;
    }

    .cv-world-card,
    .world-level-node,
    .cv-level-panel {
        transition: none;
    }
}
