.chinese-journey {
    --map-ink: #233f34;
    --map-paper: #fff8e7;
    margin-bottom: 22px;
    border: 1px solid #c8b890;
    border-radius: 22px;
    background: var(--map-paper);
    box-shadow: 0 8px 24px #56462c13;
    overflow: clip;
}
.chinese-journey-head {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 6px 12px; padding: 9px clamp(14px, 2vw, 24px);
    color: #fff9e6; background: #204f46; border-bottom: 3px solid #ddbd78;
}
.chinese-journey-head h2 { flex: 1; color: inherit; font-size: clamp(1.28rem, 2vw, 1.75rem); }
.chinese-tally img { object-fit: contain; transform: rotate(-6deg); }
.chinese-tally {
    display: inline-flex; align-items: center; gap: 5px;
    border-radius: 18px; padding: 4px 12px; color: #fff3cf;
    background: #133e38; border: 1px solid #74958a; font-size: .9rem; font-weight: 720;
}
.chinese-map-controls { display: flex; align-items: center; gap: 4px; }
.chinese-map-controls .button {
    width: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: #fff5d9; color: #244c3e;
}
.chinese-map-controls .button:disabled { opacity: .45; }
.chinese-course .chinese-map-controls .button:focus-visible { outline-color: #ffdc88; outline-offset: 2px; }
.chinese-map { background: #a5e0c8 url('/assets/images/tools/chinese/journey/lake.webp') center / cover; }
.chinese-course .chinese-islands {
    display: grid; grid-auto-flow: column; grid-auto-columns: max(134px, calc(100% / 6));
    align-items: center; position: relative; margin: 0; list-style: none; padding: 11px 0;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
    scrollbar-width: thin; scrollbar-color: #458273 #cce8cb;
}
.chinese-islands li { position: relative; min-width: 0; padding: 2px 5px; scroll-snap-align: start; }
.chinese-islands li:not(:last-child)::before {
    content: ''; position: absolute; left: 65%; width: 70%; top: 38%; height: 12px;
    border-top: 3px dotted #387a64; border-radius: 50%; transform: rotate(-5deg); pointer-events: none;
}
.chinese-islands li:nth-child(even)::before { transform: rotate(5deg); }
.chinese-islands li:nth-child(odd) .chinese-island-link { top: 3px; }
.chinese-islands li:nth-child(even) .chinese-island-link { top: -3px; }
.chinese-island-link {
    display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1;
    width: fit-content; max-width: 100%; margin: auto; padding: 2px 3px 5px; border-radius: 16px;
    text-align: center; color: #273e2d; text-decoration: none;
}
.chinese-island-art { display: block; position: relative; width: min(100%,clamp(72px,6.5vw,96px)); }
.chinese-land {
    display: block; width: 100%; height: auto;
    filter: drop-shadow(0 4px 3px #0d5c5836); transition: transform .18s ease;
}
.chinese-island-link:hover .chinese-land, .chinese-island-link:focus-visible .chinese-land { transform: translateY(-4px); }
.chinese-island-caption {
    display: inline-flex; align-items: center; gap: 5px; margin-top: -2px; position: relative;
    max-width: 100%; padding: 4px 8px 4px 4px; border: 1px solid #ad976b; border-radius: 12px;
    background: #fff8e6; box-shadow: 0 2px 0 #3d67433b;
    font-size: clamp(.76rem,1.12vw,.98rem); line-height: 1.16; font-weight: 720; text-wrap: balance;
}
.chinese-island-number {
    display: grid; place-items: center; flex: 0 0 23px; height: 23px; border-radius: 50%;
    background: #e8d9ac; color: #493f27; font-size: .8rem; font-weight: 800;
}
.chinese-island-link.is-next .chinese-island-number { background: #ad482a; color: white; }
.chinese-island-link.is-next .chinese-island-caption { border: 2px solid #a74f2a; }
.chinese-island-state {
    display: block; padding: 1px 8px; margin-top: 3px; border-radius: 10px;
    background: #eff9ecd9; color: #304d3f; font-size: .73rem; font-weight: 680; line-height: 1.35;
}
.chinese-island-link.is-earned .chinese-island-state { background: #21553e; color: #fff6da; }
.chinese-earned-sticker { object-fit: contain; filter: drop-shadow(0 2px 2px #60452155); pointer-events: none; }
.chinese-island-art .chinese-earned-sticker {
    position: absolute; right: -3%; top: 1%; width: 47%; height: auto; transform: rotate(9deg);
}
.chinese-album {
    border-top: 2px solid #ceaf76;
    background-color: var(--map-paper);
    background-image: radial-gradient(#a97b391f .8px, transparent .8px);
    background-size: 8px 8px;
}
.chinese-album summary { cursor: pointer; list-style: none; }
.chinese-album summary::-webkit-details-marker { display: none; }
.chinese-album > summary { display: flex; align-items: center; gap: 10px; padding: 10px clamp(14px,2vw,24px); color: var(--map-ink); }
.chinese-album-label { display: inline-flex; align-items: center; gap: 8px; font: 700 clamp(1.16rem,2vw,1.5rem)/1.2 Georgia,serif; }
.chinese-rank-summary { margin-left: auto; text-align: right; font-size: .87rem; color: #62503a; }
.chinese-album-chevron { flex: none; }
.chinese-album[open] > summary .chinese-album-chevron { transform: rotate(180deg); }
.chinese-course .chinese-ranks {
    display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: start; gap: 10px;
    padding: 0 clamp(12px,2vw,26px) 18px; list-style: none;
}
.chinese-sticker-detail { color: #493d30; text-align: center; }
.chinese-sticker-detail summary { display: flex; flex-direction: column; align-items: center; border-radius: 14px; padding: 6px; }
.chinese-sticker-space {
    position: relative; display: grid; place-items: center; width: min(85%,96px); aspect-ratio: 1;
    border: 1px dashed #baa171; border-radius: 45% 53% 48% 54%; background: #f2e6cabb;
}
.chinese-sticker-space img {
    width: 95%; height: 95%; object-fit: contain; transform: rotate(-6deg);
    filter: saturate(.66) drop-shadow(1px 3px 1px #705a3d44);
}
.chinese-ranks li:nth-child(even) .chinese-sticker-space img { transform: rotate(6deg); }
.chinese-ranks .is-earned .chinese-sticker-space { background: #ffdfa0; border: 1px solid #cb9541; }
.chinese-ranks .is-earned img { filter: drop-shadow(1px 3px 1px #705a3d55); }
.chinese-sticker-detail strong { margin-top: 7px; font-size: .95rem; line-height: 1.22; text-wrap: balance; }
.chinese-sticker-detail small { margin-top: 4px; color: #6a5a42; font-size: .76rem; }
.chinese-sticker-detail small::after { content: '▾'; margin-left: 4px; }
.chinese-sticker-detail[open] small::after { content: '▴'; }
.chinese-sticker-detail summary:hover, .chinese-sticker-detail[open] { background: #fffcf0; border-radius: 14px; }
.chinese-album .chinese-sticker-detail p { font-size: .86rem; line-height: 1.45; padding: 0 9px 10px; }
.chinese-ranks .is-earned small { color: #286144; font-weight: 700; }
.chinese-journey-foot { background: #fffaf0; color: #3b5142; }
.chinese-journey-foot > :not([hidden]) { padding: 7px clamp(15px,2.5vw,32px); border-top: 1px solid #e4d6b8; }
.chinese-result-award { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.chinese-result-award img { object-fit: contain; transform: rotate(-6deg); filter: drop-shadow(0 2px 2px #60452140); }
.chinese-result .chinese-return-map { display: flex; width: fit-content; margin: 6px 0 12px; }

@media (max-width: 910px) {
    .chinese-course .chinese-ranks { grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 12px; }
}
@media (max-width: 560px) {
    .chinese-journey { border-radius: 16px; }
    .chinese-journey-head { padding: 7px 12px; display: grid; grid-template-columns: 1fr auto; column-gap: 6px; }
    .chinese-journey-head h2 { grid-column: 1; }
    .chinese-tally { grid-column: 1; justify-self: start; font-size: .79rem; padding: 3px 8px; }
    .chinese-map-controls { grid-area: 1 / 2 / span 2; }
    .chinese-course .chinese-islands { grid-auto-columns: 128px; padding-block: 7px; }
    .chinese-island-caption { font-size: .83rem; }
    .chinese-album > summary { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; }
    .chinese-rank-summary { margin: 0; grid-area: 2 / 1; text-align: left; }
    .chinese-album-chevron { grid-area: 1 / 2 / span 2; }
    .chinese-course .chinese-ranks { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .chinese-land { transition: none; }
    .chinese-island-link:hover .chinese-land, .chinese-island-link:focus-visible .chinese-land { transform: none; }
}
