.integrity-journey-open {
    overflow: hidden;
}

body.integrity-journey-open > :not(#integrity-journey-modal) {
    visibility: hidden !important;
    pointer-events: none !important;
}

body.integrity-journey-open > #integrity-journey-modal {
    visibility: visible;
}

.integrity-journey-open .roadmap-hotspot::before,
.integrity-journey-open .roadmap-hotspot::after,
.integrity-journey-open .achievement-subnode-label {
    opacity: 0 !important;
    visibility: hidden !important;
}

.integrity-journey-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    font-family: 'Baloo', cursive;
    transition: opacity 220ms ease;
}

.integrity-journey-modal:not(.is-open) * {
    pointer-events: none !important;
}

.integrity-journey-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.integrity-journey-backdrop {
    position: absolute;
    inset: 0;
    background: #07100b;
}

.integrity-journey-stage {
    position: relative;
    width: min(96vw, calc(96vh * 3344 / 1882));
    aspect-ratio: 3344 / 1882;
    overflow: hidden;
    border-radius: clamp(18px, 2.2vw, 34px);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62), 0 0 0 2px rgba(255, 216, 129, 0.22);
    transform: scale(0.96) translateY(18px);
    transition: transform 280ms cubic-bezier(.2, .9, .2, 1);
}

.integrity-journey-modal.is-open .integrity-journey-stage {
    transform: scale(1) translateY(0);
}

.journey-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.journey-bg { z-index: 1; }
.journey-pedestal { z-index: 2; }
.journey-pedestal.is-locked {
    filter: grayscale(1);
}
.journey-decor { z-index: 3; }
.journey-level-card-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}
.journey-node-track { z-index: 6; }

.journey-highlight-daro {
    position: absolute;
    z-index: 5;
    left: 18.06%;
    top: calc(51.2% + 35px);
    width: 24.28%;
    aspect-ratio: 1373 / 1660;
    object-fit: contain;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 26px 24px rgba(30, 14, 4, 0.6));
    animation: journeyHeroFloat 3.4s ease-in-out infinite;
    pointer-events: none;
}

.journey-node-track {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.journey-node {
    --node-x: 50%;
    --node-y: 80%;
    position: absolute;
    left: var(--node-x);
    top: var(--node-y);
    width: 9.23%;
    aspect-ratio: 342 / 427;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translate(-50%, -50%);
    cursor: pointer;
    filter: drop-shadow(0 22px 14px rgba(36, 18, 7, 0.58));
    transition: transform 180ms ease, filter 180ms ease;
    isolation: isolate;
    pointer-events: auto;
}

.journey-node::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 35%;
    width: 96%;
    height: 58%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 214, 96, 0.42), rgba(255, 182, 39, 0) 70%);
    z-index: 0;
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.journey-node-daro {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: translateY(-15px);
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.journey-level-label {
    position: absolute;
    left: calc(50% + var(--level-label-x, 0px));
    bottom: calc(-9% - 10px);
    transform: translateX(-50%);
    white-space: nowrap;
    color: #006b63;
    font-family: 'Baloo', cursive;
    font-size: clamp(9px, 1.08vw, 17px);
    font-weight: 900;
    line-height: 1;
    text-shadow: none;
    z-index: 2;
    pointer-events: none;
}

.journey-node:not(.is-locked):hover {
    transform: translate(-50%, -54%) scale(1.06);
    filter: drop-shadow(0 26px 16px rgba(36, 18, 7, 0.62)) drop-shadow(0 0 18px rgba(255, 210, 102, 0.5));
}

.journey-node.is-active {
    transform: translate(-50%, -54%) scale(1.05);
    filter: drop-shadow(0 26px 16px rgba(28, 14, 5, 0.6));
    animation: journeyNodeActivePulse 2.2s ease-in-out infinite;
}

.journey-node.is-active::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.journey-node.is-locked {
    cursor: not-allowed;
    filter: grayscale(1);
}

.journey-progress-panel,
.journey-unlocks-panel,
.journey-points-guide {
    position: absolute;
    z-index: 2;
    font-family: 'Baloo', cursive;
    pointer-events: auto;
}

.journey-progress-panel {
    left: calc(24.8% + 200px);
    top: calc(15.4% + 97px);
    width: 34.6%;
    height: 12.2%;
    display: grid;
    align-content: center;
    gap: clamp(3px, 0.35vw, 6px);
    padding: 0 2.4%;
}

.journey-progress-title {
    width: 78%;
    color: #006b63;
    font-size: clamp(13px, 1.55vw, 25px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow: none;
}

.journey-progress-bar {
    position: relative;
    width: 78%;
    height: clamp(16px, 1.65vw, 28px);
    overflow: hidden;
    border: 2px solid #fff2cc;
    border-radius: 999px;
    background: linear-gradient(180deg, #351909, #1d0c04);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(255, 250, 224, 0.35);
}

.journey-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #00a789, #16d1a8 48%, #ffe06b);
    box-shadow: 0 0 12px rgba(22, 209, 168, 0.46);
}

.journey-progress-bar strong {
    position: relative;
    z-index: 1;
    display: grid;
    height: 100%;
    place-items: center;
    color: #fff7d1;
    font-size: clamp(10px, 1vw, 16px);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(20, 8, 2, 0.85);
}

.journey-unlocks-panel {
    left: 21.9%;
    top: 43.8%;
    width: 57.2%;
    height: 32.4%;
    padding: 1.2% 3.2% 2.2%;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: clamp(4px, 0.42vw, 8px);
}

.journey-unlocks-title {
    color: #006b63;
    font-size: clamp(13px, 1.55vw, 25px);
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    text-shadow: none;
    transform: translateY(10px);
}

.journey-demo-counts {
    position: relative;
    z-index: 8;
    display: flex;
    justify-content: center;
    gap: 5px;
    transform: translateY(10px);
}

.journey-demo-counts button {
    width: clamp(18px, 1.55vw, 26px);
    height: clamp(18px, 1.55vw, 26px);
    border: 1px solid rgba(255, 226, 142, 0.55);
    border-radius: 999px;
    color: #ffeebc;
    background: rgba(58, 28, 9, 0.72);
    font-size: clamp(10px, 0.9vw, 14px);
    font-weight: 900;
    cursor: pointer;
    pointer-events: auto;
}

.journey-demo-counts button.is-active {
    color: #492004;
    background: linear-gradient(180deg, #ffe47c, #f4a72b);
}

.journey-feature-grid {
    display: grid;
    align-items: start;
    justify-items: center;
    gap: clamp(6px, 0.8vw, 14px);
    min-height: 0;
    width: 100%;
    align-self: stretch;
    padding-top: clamp(2px, 0.35vw, 7px);
}

.journey-feature-grid-1 {
    position: relative;
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: 100%;
    height: 100%;
}
.journey-feature-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 42%));
    justify-content: center;
    column-gap: clamp(20px, 2.4vw, 42px);
}
.journey-feature-grid-3 {
    grid-template-columns: repeat(3, minmax(110px, 26%));
    justify-content: center;
}
.journey-feature-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 19%));
    justify-content: center;
    column-gap: clamp(0px, 0.28vw, 5px);
}

.journey-feature-card {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: clamp(3px, 0.38vw, 7px);
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 4px 2px;
}

.journey-feature-grid-2 .journey-feature-card {
    grid-template-columns: minmax(124px, 50%) minmax(0, 50%);
    align-items: center;
    justify-items: stretch;
    align-self: start;
    gap: clamp(1px, 0.24vw, 5px);
    text-align: left;
}

.journey-feature-grid-1 .journey-feature-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(158px, 16vw, 250px);
    padding: 0;
    transform: none;
}

.journey-feature-grid-1 .journey-feature-card img {
    position: absolute;
    left: 18.2%;
    top: 11.8%;
    width: 37.5%;
    height: 78.5%;
    object-fit: contain;
}

.journey-feature-grid-1 .journey-feature-copy {
    position: absolute;
    left: 58.4%;
    top: 40.5%;
    width: 31.5%;
    min-width: 0;
    padding: 0;
    display: grid;
    align-content: start;
    gap: clamp(3px, 0.36vw, 7px);
}

.journey-feature-card img {
    width: min(76%, 86px);
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 8px 8px rgba(22, 9, 2, 0.48));
}

.journey-feature-grid-1 .journey-feature-card img { width: 37.5%; }
.journey-feature-grid-2 .journey-feature-card img { width: min(100%, 158px); }
.journey-feature-grid-3 .journey-feature-card img { width: min(72%, 90px); }

.journey-feature-copy {
    display: grid;
    align-content: center;
    gap: clamp(2px, 0.28vw, 5px);
    min-width: 0;
}

.journey-feature-card span {
    max-width: 100%;
    color: #006b63;
    font-size: clamp(8px, 0.75vw, 13px);
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    text-shadow: none;
}

.journey-feature-grid-2 .journey-feature-card span {
    font-size: clamp(10px, 0.92vw, 16px);
    text-align: left;
}

.journey-feature-grid-1 .journey-feature-card span {
    font-size: clamp(11px, 1.08vw, 18px);
    line-height: 1.06;
    text-align: left;
}

.journey-feature-copy p {
    max-width: 20ch;
    margin: 0;
    color: #3d6f58;
    font-size: clamp(7px, 0.58vw, 10px);
    font-weight: 800;
    line-height: 1.22;
    text-align: inherit;
    white-space: normal;
}

.journey-feature-grid-1 .journey-feature-copy p {
    max-width: 18ch;
    line-height: 1.18;
}

.journey-feature-grid-3 .journey-feature-copy,
.journey-feature-grid-4 .journey-feature-copy {
    justify-items: center;
}

.journey-feature-grid-3 .journey-feature-copy p,
.journey-feature-grid-4 .journey-feature-copy p {
    display: none;
}

.journey-points-guide {
    right: calc(8.5% + 40px);
    top: 27.4%;
    width: 15.6%;
    height: 45.2%;
    color: #006b63;
    font-family: 'Baloo', cursive;
    font-weight: 900;
    line-height: 1;
    text-shadow: none;
    pointer-events: none;
}

.journey-point-badge,
.journey-point-reset {
    position: absolute;
    display: inline-grid;
    place-items: center;
    min-width: clamp(34px, 3.1vw, 54px);
    min-height: clamp(20px, 1.8vw, 30px);
    padding: 0 7px;
    border: 2px solid rgba(255, 244, 199, 0.96);
    border-radius: 999px;
    color: #128c2f;
    background: linear-gradient(180deg, rgba(255, 253, 226, 0.96), rgba(255, 219, 115, 0.92));
    box-shadow: 0 2px 0 rgba(122, 71, 16, 0.36), 0 7px 12px rgba(50, 23, 4, 0.18);
    font-size: clamp(13px, 1.28vw, 22px);
    font-weight: 1000;
    white-space: nowrap;
}

.journey-point-report {
    right: 2%;
    top: calc(14.4% - 5px);
}

.journey-point-parent {
    right: 0;
    top: calc(34.4% - 20px);
}

.journey-point-story {
    right: 0;
    top: calc(58.8% - 40px);
}

.journey-point-reset {
    right: 0;
    top: calc(89% - 85px);
    min-width: clamp(34px, 3.1vw, 54px);
    min-height: clamp(20px, 1.8vw, 30px);
    padding: 0 7px;
    color: #c71f13;
    font-size: clamp(13px, 1.28vw, 22px);
    line-height: 1;
}

.journey-point-reset span {
    display: none;
}

.journey-point-reset em {
    display: block;
    font-style: normal;
    color: #a80f09;
    font-size: inherit;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 247, 215, 0.9), 0 4px 8px rgba(122, 25, 10, 0.22);
}

.journey-unlocks-empty {
    align-self: center;
    margin: 0;
    color: #ffe7a2;
    font-size: clamp(12px, 1.1vw, 18px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.journey-nav,
.journey-close {
    position: absolute;
    z-index: 9;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 217, 139, 0.5);
    color: #ffeec2;
    background: linear-gradient(180deg, rgba(89, 51, 21, 0.9), rgba(34, 20, 11, 0.92));
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 14px 26px rgba(0, 0, 0, 0.38);
    font-family: 'Baloo', cursive;
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, opacity 160ms ease, filter 160ms ease;
}

.journey-nav {
    top: 84.8%;
    width: clamp(28px, 3.05vw, 50px);
    height: clamp(28px, 3.05vw, 50px);
    border-radius: 50%;
    font-size: clamp(24px, 3.2vw, 48px);
    line-height: 1;
}

.journey-nav-prev { left: 22.4%; }
.journey-nav-next { right: 2.4%; }

.journey-close {
    top: 3%;
    right: 3%;
    width: clamp(34px, 3.4vw, 58px);
    height: clamp(34px, 3.4vw, 58px);
    border-radius: 18px;
    font-size: clamp(22px, 3vw, 42px);
}

.journey-nav:hover:not(:disabled),
.journey-close:hover {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.12);
}

.journey-nav:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    filter: grayscale(0.8);
}


@keyframes journeyNodeActivePulse {
    0%, 100% { filter: drop-shadow(0 26px 16px rgba(28, 14, 5, 0.58)); }
    50% { filter: drop-shadow(0 28px 18px rgba(28, 14, 5, 0.66)) brightness(1.08); }
}

@keyframes journeyHeroFloat {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 8px)); }
}

@media (max-width: 760px) {
    .integrity-journey-modal {
        padding: 8px;
    }


    .journey-nav-prev { left: 20%; }
    .journey-nav-next { right: 1%; }
}

@media (max-width: 932px) and (orientation: landscape) {
    .integrity-journey-modal {
        padding: 4px;
    }

    .integrity-journey-stage {
        width: min(calc(100vw - 8px), calc((100dvh - 8px) * 3344 / 1882));
        border-radius: 16px;
    }

    .journey-highlight-daro {
        top: 54.5%;
        width: 24.28%;
        animation: journeyHeroFloatMobile 4.2s ease-in-out infinite;
    }

    .journey-progress-panel {
        left: 34.8%;
        top: 25.19%;
        width: 34.6%;
        height: 12.2%;
        gap: 2px;
        padding: 0 1.8%;
        justify-items: center;
    }

    .journey-progress-title {
        width: 82%;
        font-size: 10.5px;
    }

    .journey-progress-bar {
        width: 82%;
        height: 10px;
        border-width: 1px;
    }

    .journey-progress-bar strong {
        font-size: 7px;
    }

    .journey-unlocks-panel {
        top: 43.8%;
        padding: 0.8% 3.4% 1.6%;
        gap: 2px;
    }

    .journey-unlocks-title {
        font-size: 10px;
        transform: translateY(8px);
    }

    .journey-demo-counts {
        gap: 3px;
        transform: translateY(3px);
    }

    .journey-demo-counts button {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }

    .journey-feature-grid {
        gap: 4px;
        padding-top: 10px;
    }

    .journey-feature-grid-1,
    .journey-feature-grid-2,
    .journey-feature-grid-3,
    .journey-feature-grid-4 {
        grid-template-columns: repeat(var(--journey-feature-count, 4), minmax(0, 1fr));
        justify-content: center;
        column-gap: 4px;
        height: auto;
    }

    .journey-feature-grid-1 { --journey-feature-count: 1; }
    .journey-feature-grid-2 { --journey-feature-count: 2; }
    .journey-feature-grid-3 { --journey-feature-count: 3; }
    .journey-feature-grid-4 { --journey-feature-count: 4; }

    .journey-feature-card {
        gap: 2px;
        padding: 2px 1px;
    }

    .journey-feature-grid-1 .journey-feature-card,
    .journey-feature-grid-2 .journey-feature-card {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        align-content: center;
        align-self: stretch;
        width: 100%;
        height: auto;
        min-height: 0;
        text-align: center;
    }

    .journey-feature-card img {
        width: min(72%, 46px);
    }

    .journey-feature-grid-1 .journey-feature-card img,
    .journey-feature-grid-2 .journey-feature-card img {
        position: static;
        width: 44px;
        height: 44px;
    }

    .journey-feature-grid-1 .journey-feature-copy,
    .journey-feature-grid-2 .journey-feature-copy {
        position: static;
        width: auto;
        padding: 0;
        display: grid;
        justify-items: center;
        gap: 1px;
    }

    .journey-feature-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 19%));
        justify-content: center;
        column-gap: 2px;
    }

    .journey-feature-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 26%));
        justify-content: center;
    }

    .journey-feature-grid-4 .journey-feature-card img {
        width: min(70%, 42px);
    }

    .journey-feature-card span {
        font-size: 7px;
        line-height: .95;
    }

    .journey-feature-grid-1 .journey-feature-card span,
    .journey-feature-grid-2 .journey-feature-card span {
        font-size: 7.4px;
        line-height: .98;
        text-align: center;
    }

    .journey-feature-copy p {
        font-size: 6px;
    }

    .journey-feature-grid-1 .journey-feature-copy p,
    .journey-feature-grid-2 .journey-feature-copy p {
        display: none;
    }

    .journey-points-guide {
        right: 10.77%;
        top: 27.4%;
        width: 15.6%;
        height: 45.2%;
    }

    .journey-point-badge,
    .journey-point-reset {
        width: 31px;
        min-width: 31px;
        min-height: 15px;
        padding: 0;
        border-width: 1px;
        font-size: 9px;
        box-shadow: 0 1px 0 rgba(122, 71, 16, 0.28), 0 4px 7px rgba(50, 23, 4, 0.16);
    }

    .journey-point-report {
        right: 0;
        top: 11.8%;
    }

    .journey-point-parent {
        right: 0;
        top: 28.4%;
    }

    .journey-point-story {
        right: 0;
        top: 48.3%;
    }

    .journey-point-reset {
        right: 0;
        top: 72%;
        min-width: 36px;
        min-height: 0;
        padding: 0;
        font-size: 5.5px;
        gap: 1px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .journey-point-reset span {
        display: none;
    }

    .journey-point-reset em {
        display: inline-grid;
        place-items: center;
        width: 31px;
        min-width: 31px;
        min-height: 15px;
        padding: 0;
        border: 1px solid rgba(255, 244, 199, 0.96);
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(255, 253, 226, 0.96), rgba(255, 219, 115, 0.92));
        box-shadow: 0 1px 0 rgba(122, 71, 16, 0.28), 0 4px 7px rgba(50, 23, 4, 0.16);
        font-size: 14px;
    }

    .journey-node {
        width: 9.23%;
        top: var(--node-y);
    }

    .journey-node-daro {
        transform: translateY(-7px);
    }

    .journey-node.is-active {
        transform: translate(-50%, -50%) scale(1);
        animation: none;
        filter: none;
    }

    .journey-level-label {
        bottom: -14%;
        font-size: 8px;
    }

    .journey-nav {
        width: 24px;
        height: 24px;
        border-width: 1px;
        font-size: 24px;
    }

    .journey-nav-prev { left: 22.4%; }
    .journey-nav-next { right: 2.4%; }

    .journey-close {
        top: 3.4%;
        right: 3.2%;
        width: 30px;
        height: 30px;
        border-width: 1px;
        border-radius: 12px;
        font-size: 24px;
    }
}

@keyframes journeyHeroFloatMobile {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 2px)); }
}

@keyframes journeyHeroGlowMobile {
    0%, 100% {
        transform: translate(-50%, -50%);
        filter: drop-shadow(0 18px 16px rgba(30, 14, 4, 0.5));
    }
    50% {
        transform: translate(-50%, -50%);
        filter: drop-shadow(0 18px 16px rgba(30, 14, 4, 0.5)) drop-shadow(0 0 10px rgba(255, 220, 120, 0.28));
    }
}

/* Adventure Notebook — external icon spine and static Photoshop composition */
.integrity-journey-stage *,
.integrity-journey-stage *::before,
.integrity-journey-stage *::after {
    box-sizing: border-box;
}

.integrity-journey-stage {
    width: min(calc(100vw - 126px), calc((100vh - 36px) * 3344 / 1882));
    overflow: visible;
}

.adventure-notebook-panel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    contain: layout paint;
    transition: opacity 90ms linear;
}

.adventure-notebook-panel.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.adventure-notebook-tabs {
    position: absolute;
    z-index: 30;
    top: 50%;
    right: calc(100% - 5px);
    display: flex;
    flex-direction: column;
    gap: 13px;
    transform: translateY(-50%);
}

.adventure-notebook-tabs button {
    position: relative;
    display: grid;
    place-items: center;
    width: 78px;
    height: 86px;
    padding: 8px 14px 8px 8px;
    border: 2px solid #6b421d;
    border-right-color: #3a210e;
    border-radius: 50% 8px 8px 50%;
    background:
        radial-gradient(circle at 34% 27%, rgba(255, 222, 139, .18), transparent 27%),
        linear-gradient(145deg, #58371b 0%, #241307 62%, #130a04 100%);
    color: #d9ad5a;
    box-shadow:
        inset 0 0 0 3px #211006,
        inset 0 0 0 5px rgba(179, 119, 47, .42),
        inset 0 5px 8px rgba(255, 219, 132, .09),
        -7px 9px 18px rgba(0, 0, 0, .58);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 90ms ease, filter 120ms ease, border-color 120ms ease;
}

.adventure-notebook-tabs button::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 17px;
    right: -11px;
    width: 18px;
    height: 50px;
    border-block: 2px solid #6b421d;
    background: linear-gradient(90deg, #2a1609, #56351a 72%, #1a0d05);
    box-shadow: 4px 3px 7px rgba(0, 0, 0, .48);
}

.adventure-notebook-tabs img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .6));
    user-select: none;
    pointer-events: none;
}

.adventure-notebook-tabs span {
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: max-content;
    max-width: 68px;
    transform: translateX(calc(-50% - 3px));
    overflow: hidden;
    color: #ddb667;
    font: 900 9px / 1 "Baloo", cursive;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    text-shadow: 0 2px 2px #100702;
    white-space: nowrap;
    pointer-events: none;
}

.adventure-notebook-tabs button:hover,
.adventure-notebook-tabs button:focus-visible {
    border-color: #e0ad51;
    filter: brightness(1.12);
    outline: 3px solid rgba(255, 220, 139, .3);
    outline-offset: 3px;
    transform: translateX(-4px);
}

.adventure-notebook-tabs button:active {
    transform: translateX(2px) scale(.96);
}

.adventure-notebook-tabs button.is-active {
    border-color: #efc56e;
    background:
        radial-gradient(circle at 34% 27%, rgba(255, 238, 177, .32), transparent 30%),
        linear-gradient(145deg, #9a642b 0%, #503016 58%, #211006 100%);
    box-shadow:
        inset 0 0 0 3px #2b1608,
        inset 0 0 0 5px rgba(255, 210, 105, .58),
        inset 0 6px 10px rgba(255, 235, 170, .16),
        0 0 18px rgba(238, 180, 75, .28),
        -7px 9px 18px rgba(0, 0, 0, .58);
}

.adventure-notebook-tabs button.is-active img {
    filter: brightness(1.08) drop-shadow(0 3px 3px rgba(0, 0, 0, .62));
}

.adventure-notebook-tabs button.is-active span {
    color: #fff0bd;
}

.adventure-notebook-map {
    background: #152017;
}

.resource-map-viewport,
.resource-map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.resource-map-canvas {
    aspect-ratio: 3344 / 1882;
    overflow: hidden;
    background: #152017;
    isolation: isolate;
    backface-visibility: hidden;
}

.resource-map-canvas::before {
    content: '';
    position: absolute;
    z-index: 20;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 235, 179, .1), transparent);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-18%);
}

.resource-map-canvas.is-page-turning {
    pointer-events: none;
    will-change: transform, opacity;
    animation: resource-map-page-glide .36s cubic-bezier(.4, 0, .2, 1) both;
}

.resource-map-canvas.is-page-turning::before {
    animation: resource-map-page-soft-light .36s ease-in-out both;
}

@keyframes resource-map-page-glide {
    0% { opacity: 1; transform: translate3d(0, 0, 0); }
    42% { opacity: .68; transform: translate3d(-1.1%, 0, 0); }
    50% { opacity: .62; transform: translate3d(1%, 0, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes resource-map-page-soft-light {
    0%, 100% { opacity: 0; transform: translate3d(-18%, 0, 0); }
    50% { opacity: 1; transform: translate3d(18%, 0, 0); }
}

.resource-map-canvas::after {
    content: '';
    position: absolute;
    z-index: 1;
    left: 19.5%;
    top: 70.5%;
    width: 61%;
    height: 16%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 214, 119, .16) 0%, rgba(176, 105, 37, .08) 48%, transparent 72%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.resource-map-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

.resource-map-pedestal-layer {
    filter:
        saturate(1.08)
        contrast(1.03)
        drop-shadow(0 .22vw .18vw rgba(72, 43, 18, .34))
        drop-shadow(0 0 .16vw rgba(255, 220, 128, .22));
}

.resource-map-canvas button {
    font: inherit;
}

.resource-map-canvas [hidden] {
    display: none !important;
}

.resource-map-mode-tabs {
    position: absolute;
    z-index: 8;
    top: 2.25%;
    left: 2.1%;
    display: flex;
    align-items: flex-start;
    gap: 1%;
    width: 17%;
    height: 15.4%;
    padding: 0;
    background: transparent;
}

.resource-map-mode-tabs::before {
    display: none;
}

.resource-map-mode-tabs button {
    position: relative;
    flex: 0 0 49.5%;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    filter: brightness(.74) saturate(.78) contrast(.98);
    transform: translateY(2%) scale(.94);
    -webkit-tap-highlight-color: transparent;
    transition: filter .18s ease, transform .18s ease;
}

.resource-map-mode-tabs button img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    filter:
        drop-shadow(0 .12vw .06vw rgba(255, 242, 194, .18))
        drop-shadow(0 .36vw .26vw rgba(48, 29, 13, .42));
    transition: filter .18s ease;
}

.resource-map-mode-tabs button:not(.is-active):hover,
.resource-map-mode-tabs button:not(.is-active):focus-visible {
    z-index: 2;
    outline: none;
    filter: brightness(.88) saturate(.9) contrast(1);
    transform: translateY(0) scale(.975);
}

.resource-map-mode-tabs button:focus-visible {
    outline: clamp(1px, .1vw, 2px) solid rgba(255, 236, 174, .82);
    outline-offset: -.6vw;
    border-radius: 38%;
}

.resource-map-mode-tabs button.is-active {
    z-index: 3;
    filter: brightness(1.1) saturate(1.06) contrast(1.03);
    transform: translateY(-3.5%) scale(1.055);
}

.resource-map-mode-tabs button.is-active img {
    filter:
        drop-shadow(0 .14vw .07vw rgba(255, 247, 207, .3))
        drop-shadow(0 .46vw .32vw rgba(45, 25, 10, .5));
}

.resource-map-energy {
    position: absolute;
    z-index: 4;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.resource-map-energy-link {
    position: absolute;
    left: 49.45%;
    top: 42.05%;
    width: var(--link-length);
    height: clamp(1px, .12vw, 3px);
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 236, 153, .36), rgba(255, 207, 89, .12));
    box-shadow: 0 0 .18vw rgba(255, 224, 124, .26);
    opacity: .7;
    transform: rotate(var(--link-angle));
    transform-origin: 0 50%;
}

.resource-map-energy-link[hidden] {
    display: none;
}

.resource-map-energy-link span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 9%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff4bd;
    box-shadow: 0 0 .32vw #ffc953;
    opacity: 0;
    transform: translate3d(-120%, -50%, 0);
    animation: resourceEnergyFlow 4.5s linear var(--link-delay) infinite;
}

.resource-map-node-slots {
    position: absolute;
    z-index: 5;
    inset: 0;
    pointer-events: none;
}

.resource-map-node-slot {
    position: absolute;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    filter:
        brightness(1.055)
        saturate(1.09)
        contrast(1.035)
        drop-shadow(0 .18vw .1vw rgba(255, 246, 204, .22))
        drop-shadow(0 .42vw .32vw rgba(31, 29, 18, .48));
    transform: translateY(-1.5%) scale(1.018);
    transition: transform .18s ease, filter .18s ease;
}

.resource-map-node-slot::after {
    display: none;
}

.resource-map-node-slot:hover,
.resource-map-node-slot:focus-visible {
    z-index: 3;
    outline: none;
    filter:
        brightness(1.08)
        saturate(1.12)
        contrast(1.04)
        drop-shadow(0 .22vw .12vw rgba(255, 246, 204, .26))
        drop-shadow(0 .52vw .4vw rgba(32, 28, 17, .52));
    transform: translateY(-5%) scale(1.045);
}

.resource-map-node-slot img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

.resource-map-node-slot-1 { left: 46.4115%; top: 19.2879%; width: 5.5323%; height: 9.2986%; }
.resource-map-node-slot-2 { left: 28.9474%; top: 42.1892%; width: 7.8648%; height: 13.3369%; }
.resource-map-node-slot-3 { left: 65.3410%; top: 43.9426%; width: 7.8648%; height: 13.3369%; }
.resource-map-node-slot-4 { left: 24.3122%; top: 27.0988%; width: 6.5191%; height: 10.9989%; }
.resource-map-node-slot-5 { left: 65.1017%; top: 29.8087%; width: 6.2799%; height: 10.6270%; }

.resource-map-copy {
    position: absolute;
    z-index: 4;
    width: 13.4868%;
    height: 13.4868%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5%;
    padding: 2.7% 2.3% 2.1%;
    color: #654019;
    text-align: center;
    pointer-events: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.resource-map-copy > img {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        brightness(1.045)
        saturate(1.035)
        drop-shadow(0 .16vw .08vw rgba(255, 247, 211, .2))
        drop-shadow(0 .42vw .32vw rgba(49, 31, 15, .42));
    pointer-events: none;
}

.resource-map-copy::before,
.resource-map-copy::after {
    display: none;
}

.resource-map-copy strong {
    position: relative;
    z-index: 1;
    max-width: 78%;
    overflow: hidden;
    font-family: 'Baloo', cursive;
    font-size: clamp(6px, .62vw, 13px);
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.resource-map-copy span {
    position: relative;
    z-index: 1;
    max-width: 76%;
    overflow: hidden;
    color: #7c572d;
    font-size: clamp(4px, .38vw, 9px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-map-copy-1 { left: 51.8839%; top: 11.7959%; }
.resource-map-copy-2 { left: 15.4904%; top: 43.7301%; }
.resource-map-copy-3 { left: 73.6842%; top: 44.9511%; }
.resource-map-copy-4 { left: 10.5263%; top: 27.8427%; }
.resource-map-copy-5 { left: 71.3218%; top: 26.3549%; }

.resource-map-featured {
    position: absolute;
    z-index: 6;
    left: 45.7835%;
    top: 35.3348%;
    width: 7.3266%;
    height: 13.5494%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 .5vw .4vw rgba(37, 39, 26, .38));
    animation: resourceFeaturedFloat 3.4s ease-in-out infinite;
}

.resource-map-featured::before,
.resource-map-featured strong {
    display: none;
}

.resource-map-featured img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.resource-map-atmosphere {
    position: absolute;
    z-index: 6;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.resource-map-atmosphere img {
    position: absolute;
    display: block;
    height: auto;
    max-width: none;
    opacity: 1;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.resource-map-atmosphere .resource-map-clouds {
    top: 18%;
    width: 10%;
    opacity: 1;
    filter: none;
}

.resource-map-atmosphere .resource-map-clouds-left {
    left: 1.5%;
    right: auto;
    animation: resourceCloudDriftLeft 13s ease-in-out -4s infinite alternate;
}

.resource-map-atmosphere .resource-map-clouds-right {
    right: 1.5%;
    left: auto;
    top: calc(18% - 40px);
    animation: resourceCloudDriftRight 16s ease-in-out -9s infinite alternate;
}

.resource-map-atmosphere .resource-map-dragon-hover {
    left: 46.5%;
    top: 5%;
    width: 7%;
    opacity: 1;
    filter: drop-shadow(0 .1vw .12vw rgba(38, 32, 18, .3));
    animation: resourceDragonHover 4.8s ease-in-out infinite;
}

.resource-map-atmosphere .resource-map-dragon-crossing {
    left: 0;
    top: 9%;
    width: 12.6%;
    opacity: 0;
    filter: drop-shadow(0 .1vw .12vw rgba(38, 32, 18, .3));
    transform: translate3d(800%, 0, 0);
    animation: resourceDragonCrossing 25s linear 2.5s infinite;
}

.resource-map-rail {
    position: absolute;
    z-index: 7;
    left: 22.1890%;
    top: 71.4134%;
    width: 52.6316%;
    height: 9.6174%;
    display: grid;
    grid-template-columns: repeat(5, 9.9432%);
    justify-content: space-between;
}

.resource-map-resource {
    --resource-icon-scale: 1;
    --resource-icon-lift: 0px;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    filter: saturate(1.05);
    transition: transform .2s ease, filter .2s ease;
}

.resource-map-resource::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: 17%;
    right: 17%;
    bottom: 7%;
    height: 16%;
    border-radius: 50%;
    background: rgba(61, 38, 17, .46);
    filter: blur(.22vw);
    transform: scaleX(1.08);
    opacity: .72;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.resource-map-resource img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    opacity: 1;
    transform: translateY(var(--resource-icon-lift)) scale(var(--resource-icon-scale));
    transform-origin: 50% 78%;
    transition: transform .2s ease;
}

.resource-map-resource[data-resource-key="spirit"] {
    --resource-icon-scale: .93;
}

.resource-map-resource[data-resource-key="flower"] {
    --resource-icon-scale: .81;
    --resource-icon-lift: -20px;
}

.resource-map-resource span {
    position: absolute;
    z-index: 2;
    top: 92%;
    left: 50%;
    max-width: 155%;
    padding: 4% 13%;
    border-radius: 999px;
    color: #ead9a8;
    background: rgba(22, 29, 20, .83);
    font-size: clamp(5px, .45vw, 10px);
    font-weight: 1000;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity .18s ease, transform .18s ease;
}

.resource-map-resource:hover,
.resource-map-resource:focus-visible {
    z-index: 2;
    outline: none;
    filter: saturate(1.07);
}

.resource-map-resource:hover img,
.resource-map-resource:focus-visible img {
    transform: translateY(calc(var(--resource-icon-lift) - 4%)) scale(calc(var(--resource-icon-scale) * 1.025));
}

.resource-map-resource:hover::before,
.resource-map-resource:focus-visible::before {
    opacity: .58;
    transform: scaleX(.96);
}

.resource-map-resource:hover span,
.resource-map-resource:focus-visible span,
.resource-map-resource.is-active span {
    opacity: 1;
    transform: translate(-50%, 0);
}

.resource-map-resource.is-active {
    filter: saturate(1.1);
}

.resource-map-resource.is-active::before {
    opacity: .54;
    transform: scaleX(.92);
}

.resource-map-resource.is-active img {
    opacity: 1;
    transform: translateY(calc(var(--resource-icon-lift) - 7%)) scale(calc(var(--resource-icon-scale) * 1.08));
}

.resource-map-rail-nav {
    position: absolute;
    z-index: 9;
    top: 74.8%;
    width: 2.35%;
    aspect-ratio: 1;
    padding: 0 0 .12em;
    border: clamp(1px, .08vw, 3px) solid #cda95f;
    border-radius: 50%;
    color: #ffe7a2;
    background: linear-gradient(180deg, rgba(71, 58, 32, .96), rgba(27, 35, 23, .97));
    box-shadow: 0 .3vw .55vw rgba(3, 9, 5, .46), inset 0 0 .25vw rgba(255, 227, 154, .2);
    font-family: 'Baloo', cursive;
    font-size: clamp(13px, 1.4vw, 30px);
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, color .18s ease;
}

.resource-map-rail-nav:hover,
.resource-map-rail-nav:focus-visible {
    color: #fff8d3;
    outline: none;
    transform: scale(1.08);
}

.resource-map-rail-prev { left: 18.8%; }
.resource-map-rail-next { right: 18.8%; }

.resource-map-title {
    position: absolute;
    z-index: 7;
    left: 50%;
    top: 88.5%;
    width: 50%;
    margin: 0;
    color: #fff1a8;
    font-family: 'Baloo', cursive;
    font-size: clamp(18px, 2.65vw, 56px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .045em;
    text-align: center;
    text-shadow:
        0 .1vw 0 #d47722,
        0 .2vw 0 #8e4418,
        0 .32vw .42vw rgba(91, 46, 15, .38);
    transform: translateX(-50%);
    pointer-events: none;
}

@keyframes resourceFeaturedFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5%); }
}

@keyframes resourceEnergyFlow {
    0%, 12% { opacity: 0; transform: translate3d(-120%, -50%, 0); }
    18% { opacity: .92; }
    78% { opacity: .68; }
    88%, 100% { opacity: 0; transform: translate3d(1120%, -50%, 0); }
}

@keyframes resourceCloudDriftLeft {
    0% { transform: translate3d(-8%, 1.5%, 0) rotate(-.25deg); }
    100% { transform: translate3d(10%, -3%, 0) rotate(.35deg); }
}

@keyframes resourceCloudDriftRight {
    0% { transform: translate3d(8%, -1%, 0) rotate(.25deg); }
    100% { transform: translate3d(-10%, 3%, 0) rotate(-.35deg); }
}

@keyframes resourceDragonHover {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-.35deg); }
    50% { transform: translate3d(1.1%, -2.1%, 0) rotate(.45deg); }
}

@keyframes resourceDragonCrossing {
    0% { opacity: 1; transform: translate3d(800%, 0, 0); }
    40% { opacity: 1; transform: translate3d(-100%, 2%, 0); }
    40.01%, 100% { opacity: 0; transform: translate3d(-100%, 2%, 0); }
}

@media (max-width: 932px) and (orientation: landscape) {
    .integrity-journey-stage {
        width: min(calc(100vw - 82px), calc((100dvh - 8px) * 3344 / 1882));
    }

    .adventure-notebook-tabs {
        right: calc(100% - 4px);
        gap: 7px;
    }

    .adventure-notebook-tabs button {
        width: 55px;
        height: 59px;
        padding: 5px 10px 5px 5px;
        border-width: 1px;
        border-radius: 50% 6px 6px 50%;
    }

    .adventure-notebook-tabs button::after {
        top: 12px;
        right: -8px;
        width: 13px;
        height: 35px;
        border-width: 1px;
    }

    .adventure-notebook-tabs img {
        width: 36px;
        height: 36px;
    }

    .adventure-notebook-tabs span {
        bottom: 2px;
        max-width: 49px;
        font-size: 7px;
    }

    .resource-map-resource[data-resource-key="flower"] {
        --resource-icon-lift: -8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .adventure-notebook-panel,
    .adventure-notebook-tabs button {
        transition-duration: 1ms !important;
    }

    .resource-map-featured,
    .resource-map-energy-link span,
    .resource-map-clouds,
    .resource-map-dragon-hover,
    .resource-map-dragon-crossing,
    .resource-map-canvas.is-page-turning,
    .resource-map-canvas.is-page-turning::before {
        animation: none;
    }

    .resource-map-dragon-crossing {
        opacity: 1;
        transform: translate3d(18%, 0, 0);
    }
}

/* iPad landscape: preserve one coordinate system for the notebook and its spine tabs. */
@media (min-width: 933px) and (max-width: 1366px) and (orientation: landscape) {
    .integrity-journey-stage {
        --journey-tablet-offset-x: 10px;
    }

    .integrity-journey-modal:not(.is-open) .integrity-journey-stage {
        transform: translateX(var(--journey-tablet-offset-x)) translateY(18px) scale(.96);
    }

    .integrity-journey-modal.is-open .integrity-journey-stage {
        transform: translateX(var(--journey-tablet-offset-x)) translateY(0) scale(1);
    }

    .journey-highlight-daro {
        top: 54.5%;
    }

    .journey-progress-panel {
        left: 34.8%;
        top: 25.19%;
        width: 34.6%;
        height: 12.2%;
        padding-inline: 1.8%;
        justify-items: center;
    }

    .journey-progress-title,
    .journey-progress-bar {
        width: 82%;
    }

    .journey-points-guide {
        right: 10.77%;
        top: 27.4%;
        width: 15.6%;
        height: 45.2%;
    }

    .journey-point-report {
        right: 0;
        top: 11.8%;
    }

    .journey-point-parent {
        right: 0;
        top: 28.4%;
    }

    .journey-point-story {
        right: 0;
        top: 48.3%;
    }

    .journey-point-reset {
        right: 0;
        top: 72%;
    }
}
