/* Chapter map as a hand-painted ink scroll: paper with rollers, brush path, ink-circle / vermilion-seal chapter buttons. */
#map{background:radial-gradient(ellipse at 50% 40%,rgba(236,229,214,.97),rgba(218,208,188,.97))}
.mapTop{padding-right:58px}
.mapHead h1{margin:0;font-family:var(--brush);font-size:23px;font-weight:700;letter-spacing:.06em;line-height:1.15}
html[lang="en"] .mapHead h1{font-size:18px;letter-spacing:.02em}
.hSeal{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-left:6px;vertical-align:4px;
  background:url(../assets/seal-red.webp) center/contain no-repeat;color:#fbf3e6;font:700 14px/1 var(--brush);font-style:normal;letter-spacing:0;
  transform:rotate(-8deg);filter:saturate(.8) brightness(.95)}
.mapHead p{font-family:var(--brush);font-size:13.5px;color:rgba(46,45,56,.62);opacity:1;letter-spacing:.06em}
#map .iconBtn{background:url(../assets/ink-ring.webp) center/100% 100% no-repeat;box-shadow:none}

/* the scroll: paper between two rollers */
#scroll{flex:1;min-height:0;position:relative;display:flex;flex-direction:column;margin:6px 2px 8px}
#scroll::before{content:"";position:absolute;inset:13px 8px;background:#f3ecdc url(../assets/map-paper.webp) center/cover no-repeat;
  box-shadow:0 0 0 1px rgba(80,90,120,.18),0 6px 18px rgba(60,50,35,.22);pointer-events:none}
#chapList{position:relative;z-index:1;margin:15px 8px;padding:10px 12px 18px}
.rod{position:absolute;left:-4px;right:-4px;height:34px;z-index:2;pointer-events:none;
  background:url(../assets/scroll-rod.webp) center/100% auto no-repeat;filter:drop-shadow(0 3px 2px rgba(40,30,20,.3))}
.rod.top{top:-4px}
.rod.bot{bottom:-4px}

/* islands: light watercolor washes on the scroll paper */
.isle{background:
    radial-gradient(ellipse 60% 20% at 28% 12%,rgba(var(--tint),.26),transparent 70%),
    radial-gradient(ellipse 50% 28% at 76% 52%,rgba(var(--tint),.2),transparent 70%),
    radial-gradient(ellipse 66% 24% at 34% 88%,rgba(var(--tint),.22),transparent 70%),
    radial-gradient(ellipse at 50% 50%,rgba(255,252,244,.35),rgba(255,252,244,0) 75%);
  box-shadow:inset 0 0 40px rgba(var(--tint),.22)}
.isleHead b{font-family:var(--brush);font-size:23px;font-weight:700;letter-spacing:.16em;padding:2px 22px;border-radius:50%;
  background:radial-gradient(ellipse at 50% 60%,rgba(var(--tint),.38),rgba(var(--tint),0) 72%);box-shadow:none}
.isleHead small{font-family:var(--brush);font-size:12.5px;color:rgba(46,45,56,.6);opacity:1}

/* the path: a faint wide ink wash under a dry-brush line */
.isle svg.path path{stroke-dasharray:none}
.isle svg.path path.wash{stroke:rgba(60,64,86,.08);stroke-width:13}
.isle svg.path path.ink{stroke:rgba(46,45,56,.36);stroke-width:3.2;stroke-dasharray:44 7 18 5 64 10 24 6}
.isle svg.path path.dry{stroke:rgba(46,45,56,.2);stroke-width:1.3;stroke-dasharray:2 7;transform:translate(3px,2px)}
.strait path{stroke:rgba(70,84,118,.55);stroke-width:2.4;stroke-dasharray:30 6 12 5}

/* chapter buttons: number in a brush-drawn ink circle, name in brush script */
.node{border-radius:44px 30px 40px 34px}
.ring{flex:0 0 62px;height:62px;border-radius:50%;position:relative;box-shadow:none;
  background:url(../assets/ink-ring.webp) center/100% 100% no-repeat;font-family:var(--brush);color:var(--ink)}
.ring::before{content:"";position:absolute;inset:9px;border-radius:50%;background:radial-gradient(circle,rgba(255,253,246,.92) 45%,rgba(255,253,246,0) 72%)}
.ring em{position:relative;font-style:normal;font-size:24px;font-weight:700}
.nt small{font-family:var(--brush);font-size:13px;color:rgba(46,45,56,.56);opacity:1;font-weight:400;letter-spacing:.06em}
.nt b,.isle .node .nt b{font-family:var(--brush);font-size:20px;font-weight:700;letter-spacing:.05em;line-height:1.18}
html[lang="en"] .isle .node .nt b{font-size:17px;letter-spacing:0}

/* cleared: stamped with the vermilion seal */
.node.done .ring{background:url(../assets/seal-red.webp) center/88% 88% no-repeat;box-shadow:none;color:#fbf3e6;transform:rotate(-6deg);filter:saturate(.78) brightness(.93)}
.node.done .ring::before{display:none}
.node.done .nt small{color:rgba(168,64,44,.8)}
.seal{display:none!important}

/* next to play: a soft indigo wash breathes behind the ink circle */
.node.next .ring{animation:none}
.node.next .ring::after{content:"";position:absolute;inset:-9px;border-radius:50%;z-index:-1;
  background:radial-gradient(circle,rgba(61,79,122,.32),rgba(61,79,122,0) 68%);animation:inkBreath 1.8s ease-in-out infinite}
@keyframes inkBreath{0%,100%{transform:scale(.88);opacity:.6}50%{transform:scale(1.08);opacity:1}}

/* locked (made, not yet reached) and not made yet: pale ink */
.node.locked > .ring,.node.locked > .nt{opacity:.42;filter:grayscale(1)}
.node.soon .ring{border:0;background:url(../assets/ink-ring.webp) center/100% 100% no-repeat;opacity:.3;color:var(--ink);font-size:inherit}
.node.soon .nt{opacity:.45}
.ring .lk{right:-2px;bottom:0;z-index:1}

/* keyboard / pad focus: a clear vermilion brush frame */
.node.kfocus{outline:3px solid var(--red)!important;outline-offset:2px;background:rgba(200,85,61,.07)}

/* bag row and shop button wear the scroll's panel and brush-stroke button */
#bagRow.panel{border:16px solid transparent;border-image:url(../assets/ui-panel.webp) 210 fill / 24px;background:none;box-shadow:none;border-radius:0;padding:0 4px}
.bagTitle{font-family:var(--brush)}
#map .btn.small{background:url(../assets/ui-button.webp) center/100% 290% no-repeat;color:var(--ink);text-shadow:0 1px 0 rgba(255,255,255,.7);box-shadow:none;font-family:var(--brush);padding:4px 20px}
