/* Stamp-bought looks (cosmetics.js). Motion stops under body.rm (chrome.css). */

/* ---- fuses: .f1 = the fuse, .f2 = its core. Dash patterns repeat every 24px (or a divisor) so fz-flow loops cleanly ---- */
:is(body[data-fuse="sparkler"] #lines, .cosfuse[data-fuse="sparkler"]) .f1 { animation: fz-sparkler 1.5s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="sparkler"] #lines, .cosfuse[data-fuse="sparkler"]) .f2 { stroke: #fff; stroke-dasharray: 2 10; animation: fz-flow .5s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="rope"] #lines, .cosfuse[data-fuse="rope"]) .f1 { stroke: #b98a50; }
:is(body[data-fuse="rope"] #lines, .cosfuse[data-fuse="rope"]) .f2 { stroke: #5a3a1c; stroke-width: 7px; stroke-linecap: butt; stroke-dasharray: 3 5; animation: fz-flow 3s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="blueflame"] #lines, .cosfuse[data-fuse="blueflame"]) .f1 { animation: fz-blueflame 2s ease-in-out var(--phase, 0ms) infinite; }
:is(body[data-fuse="blueflame"] #lines, .cosfuse[data-fuse="blueflame"]) .f2 { stroke: #e8f7ff; stroke-dasharray: 8 4; animation: fz-flow 1s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="beads"] #lines, .cosfuse[data-fuse="beads"]) .f1 { stroke: #ff7a2f; stroke-dasharray: 0 12; animation: fz-flow 1.5s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="beads"] #lines, .cosfuse[data-fuse="beads"]) .f2 { stroke: #ffe3b0; stroke-width: 3px; stroke-dasharray: 0 12; animation: fz-flow 1.5s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="molten"] #lines, .cosfuse[data-fuse="molten"]) .f1 { animation: fz-molten 3s ease-in-out var(--phase, 0ms) infinite; }
:is(body[data-fuse="molten"] #lines, .cosfuse[data-fuse="molten"]) .f2 { stroke: #ffe27a; stroke-dasharray: 14 10; animation: fz-flow 2s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="wires"] #lines, .cosfuse[data-fuse="wires"]) .f1 { stroke: #22d46e; filter: drop-shadow(0 0 4px #22d46e); }
:is(body[data-fuse="wires"] #lines, .cosfuse[data-fuse="wires"]) .f2 { stroke: #062614; stroke-width: 4px; opacity: 1; }
:is(body[data-fuse="wires"] #lines, .cosfuse[data-fuse="wires"]) .f3 { display: inline; stroke: #eaffef; stroke-width: 3px; stroke-dasharray: 4 20; animation: fz-flow .75s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="candy"] #lines, .cosfuse[data-fuse="candy"]) .f1 { stroke: #ff3d6a; filter: drop-shadow(0 0 3px #ff9ab0); }
:is(body[data-fuse="candy"] #lines, .cosfuse[data-fuse="candy"]) .f2 { stroke: #fff; stroke-width: 7px; stroke-linecap: butt; stroke-dasharray: 6 6; opacity: 1; animation: fz-flow 1s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="dragon"] #lines, .cosfuse[data-fuse="dragon"]) .f1 { animation: fz-dragon 3s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="dragon"] #lines, .cosfuse[data-fuse="dragon"]) .f2 { stroke: #fff6c8; stroke-dasharray: 3 5 10 6; animation: fz-flow .75s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="lightning"] #lines, .cosfuse[data-fuse="lightning"]) .f1 { stroke: #5b9bff; stroke-dasharray: 14 2 5 3; animation: fz-flow .5s steps(4) var(--phase, 0ms) infinite, fz-zap 1.5s steps(2) var(--phase, 0ms) infinite; }
:is(body[data-fuse="lightning"] #lines, .cosfuse[data-fuse="lightning"]) .f2 { stroke: #fff; stroke-dasharray: 7 3 2 4 5 3; opacity: 1; animation: fz-flow .3s steps(3) var(--phase, 0ms) infinite reverse; }
:is(body[data-fuse="starlight"] #lines, .cosfuse[data-fuse="starlight"]) .f1 { stroke: #39408f; animation: fz-halo 3s ease-in-out var(--phase, 0ms) infinite; }
:is(body[data-fuse="starlight"] #lines, .cosfuse[data-fuse="starlight"]) .f2 { stroke: #fff; stroke-width: 4px; stroke-dasharray: 0 8; opacity: 1; filter: drop-shadow(0 0 3px #fff); animation: fz-flow 3s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="starlight"] #lines, .cosfuse[data-fuse="starlight"]) .f3 { display: inline; stroke: #ffe9a0; stroke-width: 7px; stroke-dasharray: 0 24; animation: fz-flow 1.5s linear var(--phase, 0ms) infinite, fz-twinkle .75s ease-in-out infinite alternate; }
.f3 { display: none; }
@keyframes fz-flow { to { stroke-dashoffset: -24; } }
@keyframes fz-sparkler { 0%, 100% { stroke: #ffc93c; } 25% { stroke: #fff4c2; } 50% { stroke: #ff9d2e; } 75% { stroke: #ffe27a; } }
@keyframes fz-blueflame { 0%, 100% { stroke: #2f7bff; } 35% { stroke: #35d6ff; } 70% { stroke: #7a5cff; } }
@keyframes fz-molten { 0%, 100% { stroke: #c81e0a; } 40% { stroke: #ff5a14; } 70% { stroke: #ffa014; } }
@keyframes fz-dragon { 0%, 100% { stroke: #14b86a; } 33% { stroke: #ffc21f; } 66% { stroke: #e8263c; } }
@keyframes fz-zap { 0%, 100% { filter: drop-shadow(0 0 2px #7ab4ff); } 50% { filter: drop-shadow(0 0 9px #cfe4ff); } }
@keyframes fz-halo { 0%, 100% { filter: drop-shadow(0 0 2px #8f9bff); } 50% { filter: drop-shadow(0 0 10px #c8a0ff); } }
@keyframes fz-twinkle { from { opacity: .2; } to { opacity: 1; } }

/* ---- boards: --pat is laid over every tile; the preview swatch uses the same variables ---- */
body[data-board="brick"], .cosprev[data-b="brick"] { --pat: linear-gradient(#e8c9b055 2px, transparent 2px) 0 0 / 100% 25%, linear-gradient(90deg, #e8c9b055 2px, transparent 2px) 0 0 / 50% 50%, linear-gradient(90deg, transparent 50%, #00000026 50%) 0 0 / 50% 50%; --tr: 3px; --tb: 2px solid; }
body[data-board="grid"], .cosprev[data-b="grid"] { --pat: linear-gradient(#cfe7ff3d 1px, transparent 1px) 0 0 / 9px 9px, linear-gradient(90deg, #cfe7ff3d 1px, transparent 1px) 0 0 / 9px 9px; --tr: 0; --tb: 2px solid; }
body[data-board="cobble"], .cosprev[data-b="cobble"] { --pat: radial-gradient(ellipse at 50% 40%, #ffffff2e 0 45%, #00000066 62%, transparent 70%) 0 0 / 22px 18px, radial-gradient(ellipse at 50% 50%, #ffffff1f 0 40%, #00000055 60%, transparent 68%) 11px 9px / 22px 18px; --tr: 42%; --tb: 2px solid; }
body[data-board="planks"], .cosprev[data-b="planks"] { --pat: linear-gradient(90deg, #2a1604aa 2px, transparent 2px) 0 0 / 33.34% 100%, repeating-linear-gradient(88deg, #00000022 0 2px, transparent 2px 5px, #ffe0a81a 5px 6px, transparent 6px 11px); --tr: 4px; --tb: 2px solid; }
body[data-board="chalk"], .cosprev[data-b="chalk"] { --pat: repeating-linear-gradient(45deg, transparent 0 7px, #ffffff14 7px 8px, transparent 8px 17px), radial-gradient(circle, #ffffff33 0 1px, transparent 1.5px) 0 0 / 13px 11px; --tr: 12px; --tb: 2px dashed; }
body[data-board="circuit"], .cosprev[data-b="circuit"] { --pat: radial-gradient(circle, #7dffc0 0 2px, transparent 3px) 0 0 / 24px 24px, linear-gradient(#35d98a55 1px, transparent 1px) 0 12px / 24px 24px, linear-gradient(90deg, #35d98a55 1px, transparent 1px) 12px 0 / 24px 24px; --tr: 5px; --tb: 2px solid; }
body[data-board="marble"], .cosprev[data-b="marble"] { --pat: linear-gradient(122deg, transparent 30%, #ffffff55 32%, transparent 35%, transparent 58%, #ffffff33 60%, #00000022 62%, transparent 66%) 0 0 / 100% 100%, linear-gradient(32deg, transparent 62%, #ffffff40 64%, transparent 68%) 0 0 / 100% 100%; --tr: 6px; --tb: 3px double; }
body[data-board="steel"], .cosprev[data-b="steel"] { --pat: radial-gradient(circle at 7px 7px, #fff 0 1px, #8a99a8 2px 3px, #0006 4px, transparent 5px) 0 0 / 100% 100%, radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), #fff 0 1px, #8a99a8 2px 3px, #0006 4px, transparent 5px) 0 0 / 100% 100%, radial-gradient(circle at calc(100% - 7px) 7px, #fff 0 1px, #8a99a8 2px 3px, #0006 4px, transparent 5px) 0 0 / 100% 100%, radial-gradient(circle at 7px calc(100% - 7px), #fff 0 1px, #8a99a8 2px 3px, #0006 4px, transparent 5px) 0 0 / 100% 100%, repeating-linear-gradient(180deg, #ffffff12 0 1px, transparent 1px 3px); --tr: 7px; --tb: 2px solid; }
body[data-board="lava"], .cosprev[data-b="lava"] { --pat: linear-gradient(64deg, transparent 46%, #ff7a1fcc 48%, #ffd24a 49%, #ff7a1fcc 50%, transparent 52%) 0 0 / 100% 100%, linear-gradient(150deg, transparent 63%, #ff5a14bb 65%, transparent 68%) 0 0 / 100% 100%, radial-gradient(circle at 20% 90%, #ff5a1488, transparent 40%) 0 0 / 100% 100%; --tr: 14px 6px 16px 8px; --tb: 2px solid; }
body[data-board="stars"], .cosprev[data-b="stars"] { --pat: radial-gradient(circle at 18% 22%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 78% 30%, #cfd6ff 0 1px, transparent 2px), radial-gradient(circle at 66% 82%, #fff 0 2px, transparent 3.5px), radial-gradient(circle at 24% 72%, #ffe9a0 0 1px, transparent 2px), radial-gradient(circle at 50% 12%, #fff 0 1px, transparent 2px), radial-gradient(circle at 100% 100%, #8a5cff66, transparent 65%); --tr: 12px; --tb: 1px solid; }
body[data-board="gilded"], .cosprev[data-b="gilded"] { --pat: linear-gradient(115deg, transparent 35%, #fff6c455 47%, transparent 60%) 0 0 / 100% 100%, radial-gradient(circle at 0 0, #ffd666 0 9px, transparent 10px), radial-gradient(circle at 100% 0, #ffd666 0 9px, transparent 10px), radial-gradient(circle at 0 100%, #ffd666 0 9px, transparent 10px), radial-gradient(circle at 100% 100%, #ffd666 0 9px, transparent 10px); --tr: 8px; --tb: 4px double; --glow: 0 0 9px #ffd66688; }
body[data-board] .cell .tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--pat, none); pointer-events: none; }
:where(body[data-board]) .cell .tile { border-radius: var(--tr, 9px); border: var(--tb, 1px solid) var(--tileedge); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), var(--glow, 0 0 transparent); }
.cosprev[data-b] { position: relative; overflow: hidden; }
.cosprev[data-b] i { position: absolute; top: 4px; bottom: 4px; width: 34px; background: var(--pat, none), linear-gradient(160deg, var(--a), var(--b)); border: var(--tb, 1px solid) var(--e); border-radius: var(--tr, 9px); box-shadow: var(--glow, none); left: calc(50% - 37px); }
.cosprev[data-b] i + i { left: calc(50% + 3px); }

/* ---- maps: the chapter map and the mini previews (.mapmini) share these ---- */
.chap.pager[data-mapstyle="lanterns"] .pgrid .node { border-radius: 38% 38% 46% 46%; border-width: 3px 2px; border-color: #ffcf6b; box-shadow: 0 -4px 0 -1px #5a3a1c, 0 0 14px #ffb347aa; }
.chap.pager[data-mapstyle="lanterns"] svg.road path:first-child { stroke: #7a5230; stroke-width: 3; stroke-dasharray: none; }
.chap.pager[data-mapstyle="lanterns"] { background: radial-gradient(circle at 25% 15%, #ffb34733, transparent 30%), radial-gradient(circle at 80% 70%, #ffb34729, transparent 32%), linear-gradient(180deg, #2a1c33, #130d18); }
.chap.pager[data-mapstyle="crates"] .pgrid .node { border-radius: 5px; border: 3px solid #c08a4c; box-shadow: inset 0 0 0 3px #4a2f14, 0 4px 0 #2a1a0b; background: linear-gradient(45deg, transparent 46%, #c08a4c88 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #c08a4c88 46% 54%, transparent 54%), #6b4521; }
.chap.pager[data-mapstyle="crates"] .pgrid .node.done { border-color: #ffb347; }
.chap.pager[data-mapstyle="crates"] .pgrid .node.locked { filter: grayscale(.9); }
.chap.pager[data-mapstyle="crates"] svg.road path:first-child { stroke: #c08a4c; stroke-width: 8; stroke-dasharray: 10 6; stroke-linecap: butt; }
.chap.pager[data-mapstyle="crates"] { background: repeating-linear-gradient(180deg, #3a2410 0 26px, #2b1a0a 26px 29px); }
.chap.pager[data-mapstyle="trail"] .pgrid .node { border: 3px dotted #ffd24a; box-shadow: 0 0 10px #ff8a3d88; }
.chap.pager[data-mapstyle="trail"] svg.road path:first-child { stroke: #ffd24a; stroke-width: 6; stroke-dasharray: 0 11; filter: drop-shadow(0 0 5px #ff8a3d); animation: fz-flow 1s linear infinite; }
.chap.pager[data-mapstyle="trail"] svg.road path:last-child { stroke: none; }
.chap.pager[data-mapstyle="trail"] { background: radial-gradient(circle at 50% 100%, #7a2e0a, #1a0b05 65%); }
.chap.pager[data-mapstyle="mine"] .pgrid .node { border-radius: 14px 14px 4px 4px; border: 3px solid #9aa3ad; background: #2c3036; box-shadow: 0 5px 0 -1px #6b4521; }
.chap.pager[data-mapstyle="mine"] .pgrid .node.done { background: #5a3410; border-color: #ffb347; }
.chap.pager[data-mapstyle="mine"] svg.road path:first-child { stroke: #7a5230; stroke-width: 15; stroke-dasharray: 4 8; stroke-linecap: butt; }
.chap.pager[data-mapstyle="mine"] svg.road path:last-child { stroke: #b9c2cc; stroke-width: 7; }
.chap.pager[data-mapstyle="mine"] { background: radial-gradient(circle at 20% 30%, #ffffff12 0 8%, transparent 9%), radial-gradient(circle at 75% 65%, #ffffff0f 0 12%, transparent 13%), linear-gradient(180deg, #2b2420, #14100d); }
.chap.pager[data-mapstyle="slate"] .pgrid .node { background: transparent; border: 3px solid #eef6f0; border-radius: 50% 46% 52% 44%; box-shadow: none; }
.chap.pager[data-mapstyle="slate"] .pgrid .node.done { border-color: #ffe27a; background: #ffe27a22; }
.chap.pager[data-mapstyle="slate"] .pgrid .node.locked { border-style: dotted; opacity: .7; background: transparent; }
.chap.pager[data-mapstyle="slate"] svg.road path:first-child { stroke: #eef6f0; stroke-width: 3; stroke-dasharray: 11 5 3 5; }
.chap.pager[data-mapstyle="slate"] svg.road path:last-child { stroke: none; }
.chap.pager[data-mapstyle="slate"] { background: repeating-linear-gradient(35deg, transparent 0 15px, #ffffff0a 15px 17px), linear-gradient(180deg, #23463a, #142a22); }
.chap.pager[data-mapstyle="toffee"] .pgrid .node { border: 4px solid #fff; background: repeating-conic-gradient(#ff5d8f 0 30deg, #ffd0de 30deg 60deg); color: #4a0b20; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.chap.pager[data-mapstyle="toffee"] .pgrid .node.done { background: repeating-conic-gradient(#ff9d2e 0 30deg, #ffe2a8 30deg 60deg); }
.chap.pager[data-mapstyle="toffee"] .pgrid .node.locked { background: #b9a8ad; }
.chap.pager[data-mapstyle="toffee"] svg.road path:first-child { stroke: #fff; stroke-width: 10; stroke-dasharray: none; }
.chap.pager[data-mapstyle="toffee"] svg.road path:last-child { stroke: #ff5d8f; stroke-width: 10; stroke-dasharray: 8 8; stroke-linecap: butt; }
.chap.pager[data-mapstyle="toffee"] { background: repeating-linear-gradient(135deg, #7a2f4c 0 16px, #692441 16px 32px); }
.chap.pager[data-mapstyle="wiring"] .pgrid .node { border-radius: 6px; border: 2px solid #35d98a; background: #06170f; box-shadow: 0 0 8px #35d98a99, inset 0 0 0 3px #0d3b28; }
.chap.pager[data-mapstyle="wiring"] .pgrid .node.done { background: #0f5a38; border-color: #b6ffd6; }
.chap.pager[data-mapstyle="wiring"] .pgrid .node.locked { border-color: #4d6b5c; box-shadow: none; }
.chap.pager[data-mapstyle="wiring"] svg.road path:first-child { stroke: #35d98a; stroke-width: 7; stroke-dasharray: none; }
.chap.pager[data-mapstyle="wiring"] svg.road path:last-child { stroke: #eaffef; stroke-width: 3; stroke-dasharray: 6 18; animation: fz-flow .8s linear infinite; }
.chap.pager[data-mapstyle="wiring"] { background: radial-gradient(circle, #35d98a40 0 1.5px, transparent 2px) 0 0 / 18px 18px, #081c12; }
.chap.pager[data-mapstyle="river"] .pgrid .node { border: 3px solid #2a1712; border-radius: 40% 55% 45% 50%; background: radial-gradient(circle at 40% 30%, #5a3a30, #251410); box-shadow: 0 0 12px #ff5a14cc; }
.chap.pager[data-mapstyle="river"] .pgrid .node.done { background: radial-gradient(circle at 50% 60%, #ff9d2e, #8a1f06 75%); }
.chap.pager[data-mapstyle="river"] svg.road path:first-child { stroke: #ff4d0f; stroke-width: 20; stroke-dasharray: none; filter: drop-shadow(0 0 8px #ff7a1f); }
.chap.pager[data-mapstyle="river"] svg.road path:last-child { stroke: #ffd24a; stroke-width: 6; stroke-dasharray: 14 10; animation: fz-flow 1.6s linear infinite; }
.chap.pager[data-mapstyle="river"] { background: radial-gradient(circle at 15% 80%, #ff4d0f44, transparent 30%), radial-gradient(circle at 85% 20%, #ff4d0f33, transparent 28%), linear-gradient(180deg, #1c0d09, #090302); }
.chap.pager[data-mapstyle="frost"] .pgrid .node { border-radius: 0; border: 0; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); background: linear-gradient(150deg, #f2fcff, #7cc4ee 55%, #3b7fbf); color: #08233f; box-shadow: none; text-shadow: 0 0 4px #fff; }
.chap.pager[data-mapstyle="frost"] .pgrid .node.done { background: linear-gradient(150deg, #fff, #b7f0ff 50%, #4fd0e8); }
.chap.pager[data-mapstyle="frost"] .pgrid .node.current { background: linear-gradient(150deg, #fff3c4, #ffb347); }
.chap.pager[data-mapstyle="frost"] .pgrid .node.locked { background: linear-gradient(150deg, #8fa3b5, #47586a); color: #eef4fa; text-shadow: none; }
.chap.pager[data-mapstyle="frost"] svg.road path:first-child { stroke: #cdeeff; stroke-width: 10; stroke-dasharray: none; filter: drop-shadow(0 0 6px #8fd8ff); }
.chap.pager[data-mapstyle="frost"] svg.road path:last-child { stroke: #fff; stroke-width: 4; stroke-dasharray: 2 10; animation: fz-flow 2.4s linear infinite; }
.chap.pager[data-mapstyle="frost"] { background: radial-gradient(circle, #ffffffaa 0 1px, transparent 2px) 0 0 / 37px 29px, radial-gradient(circle, #ffffff66 0 1.5px, transparent 2.5px) 19px 13px / 53px 41px, linear-gradient(180deg, #1d4a73, #0b1c33); }
.chap.pager[data-mapstyle="zodiac"] .pgrid .node { border: 0; border-radius: 0; background: #c8d0ff; color: #0a0d28; clip-path: polygon(50% 0, 64% 31%, 98% 35%, 73% 58%, 80% 91%, 50% 75%, 20% 91%, 27% 58%, 2% 35%, 36% 31%); box-shadow: none; transform: scale(1.18); }
.chap.pager[data-mapstyle="zodiac"] .pgrid .node.done { background: #ffd666; }
.chap.pager[data-mapstyle="zodiac"] .pgrid .node.current { background: #fff; }
.chap.pager[data-mapstyle="zodiac"] .pgrid .node.locked { background: #5a6090; color: #fff; }
.chap.pager[data-mapstyle="zodiac"] .pgrid .node .nst { display: none; }
.chap.pager[data-mapstyle="zodiac"] svg.road path:first-child { stroke: #9aa8ff; stroke-width: 1.5; stroke-dasharray: none; filter: drop-shadow(0 0 4px #9aa8ff); }
.chap.pager[data-mapstyle="zodiac"] svg.road path:last-child { stroke: #fff; stroke-width: 4; stroke-dasharray: 0 24; animation: fz-flow 2s linear infinite; }
.chap.pager[data-mapstyle="zodiac"] { background: radial-gradient(circle, #fff 0 1px, transparent 1.6px) 0 0 / 41px 47px, radial-gradient(circle, #ffe9a0 0 1px, transparent 1.6px) 23px 17px / 67px 59px, radial-gradient(ellipse at 70% 30%, #6a3fb066, transparent 55%), #070a1f; }
.chap.pager[data-mapstyle="goldroad"] .pgrid .node { border: 4px double #fff3c4; background: radial-gradient(circle at 35% 30%, #fff6c8, #ffc21f 45%, #8a5a00); color: #3a2400; text-shadow: 0 1px 0 #fff3c4; box-shadow: 0 0 14px #ffd666cc, 0 4px 0 #5a3a00; }
.chap.pager[data-mapstyle="goldroad"] .pgrid .node .nst { color: #3a2400; }
.chap.pager[data-mapstyle="goldroad"] .pgrid .node.locked { background: radial-gradient(circle at 35% 30%, #b8a880, #5a4a28); color: #fff; border-color: #a8935a; box-shadow: 0 4px 0 #2a2008; text-shadow: none; }
.chap.pager[data-mapstyle="goldroad"] svg.road path:first-child { stroke: #ffc21f; stroke-width: 16; stroke-dasharray: none; filter: drop-shadow(0 0 8px #ffd666); }
.chap.pager[data-mapstyle="goldroad"] svg.road path:last-child { stroke: #fff8d8; stroke-width: 5; stroke-dasharray: 3 21; animation: fz-flow 1.2s linear infinite; }
.chap.pager[data-mapstyle="goldroad"] { background: linear-gradient(115deg, transparent 20%, #ffd6661f 35%, transparent 50%, #ffd66614 70%, transparent 80%), radial-gradient(circle, #ffd66666 0 1.5px, transparent 2px) 0 0 / 31px 31px, linear-gradient(180deg, #3a2a06, #171002); }
.cosprev.mapbox { padding: 0; overflow: hidden; }
.chap.pager.mapmini { display: block; position: relative; width: 100%; height: 40px; min-height: 0; margin: 0; padding: 0; border-radius: 10px; overflow: hidden; --nd: 15px; --tint: #8a5a30; }
.chap.pager.mapmini .pgrid { display: block; position: absolute; left: 50%; top: 0; width: 90px; height: 40px; margin-left: -45px; }
.chap.pager.mapmini .pgrid .node { display: block; box-sizing: border-box; border-width: 2px; }
.chap.pager.mapmini.big { height: 96px; }
.chap.pager.mapmini.big .pgrid { transform: scale(2.4); transform-origin: 50% 0; }
#askPrev .cosprev { width: 220px; height: 90px; margin: 0 auto; }
#askPrev .cosprev i { width: 80px; left: calc(50% - 86px); }
#askPrev .cosprev i + i { left: calc(50% + 6px); }
#askPrev .chap.pager.mapmini.big { width: 230px; margin: 0 auto; }

:is(body[data-fuse="sunfire"] #lines, .cosfuse[data-fuse="sunfire"]) .f1 { animation: fz-sun 2s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="sunfire"] #lines, .cosfuse[data-fuse="sunfire"]) .f2 { stroke: #fff; stroke-dasharray: 9 3; opacity: 1; animation: fz-flow .4s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="sunfire"] #lines, .cosfuse[data-fuse="sunfire"]) .f3 { display: inline; stroke: #ffef8a; stroke-width: 14px; stroke-dasharray: 0 24; opacity: .55; animation: fz-flow .8s linear var(--phase, 0ms) infinite reverse; }
@keyframes fz-sun { 0%, 100% { stroke: #ffb000; } 33% { stroke: #fff1a8; } 66% { stroke: #ff6a00; } }

/* ---- price tiers: effects stack as the price rises ---- */
/* fuses: 1 glow, 2 pulsing halo, 3 orbiting sparks, 4 a second orbit */
.halo, .o1, .o2 { display: none; }
:is(body:is([data-ftier="1"], [data-ftier="2"], [data-ftier="3"], [data-ftier="4"]) #lines, .cosfuse:not([data-ftier="0"])) .halo { display: inline; opacity: .22; }
:is(body:is([data-ftier="2"], [data-ftier="3"], [data-ftier="4"]) #lines, .cosfuse:is([data-ftier="2"], [data-ftier="3"], [data-ftier="4"])) .halo { animation: fz-pulse 1.5s ease-in-out var(--phase, 0ms) infinite; }
:is(body:is([data-ftier="3"], [data-ftier="4"]) #lines, .cosfuse:is([data-ftier="3"], [data-ftier="4"])) .o1 { display: inline; stroke-dasharray: 0 48; filter: drop-shadow(0 0 4px var(--fuseglow)); animation: fz-orbit 1.2s linear var(--phase, 0ms) infinite; }
:is(body[data-ftier="4"] #lines, .cosfuse[data-ftier="4"]) .o2 { display: inline; stroke: #ffe27a; stroke-dasharray: 0 24; filter: drop-shadow(0 0 5px #ffd666); animation: fz-orbit .6s linear var(--phase, 0ms) infinite reverse; }
@keyframes fz-orbit { to { stroke-dashoffset: -48; } }
@keyframes fz-pulse { 0%, 100% { opacity: .1; } 50% { opacity: .45; } }
body.rm .halo, body.rm .o1, body.rm .o2, body.rm .f3 { display: none !important; }
.cosfuse.big .halo { stroke-width: 20px; }

/* boards: 1 breathing glow, 2 bright edge, 3 a sweep of light, 4 twinkles. All sit on the tile's overlay, under the number. */
body:is([data-btier="1"], [data-btier="2"], [data-btier="3"], [data-btier="4"]) .cell .tile::before, .cosprev:not([data-btier="0"])[data-b] i { box-shadow: inset 0 0 8px var(--tileedge, var(--e)); }
body:is([data-btier="2"], [data-btier="3"], [data-btier="4"]) .cell .tile, .cosprev:is([data-btier="2"], [data-btier="3"], [data-btier="4"])[data-b] i { filter: drop-shadow(0 0 4px var(--tileedge, var(--e))); }
body:is([data-btier="1"], [data-btier="2"], [data-btier="3"], [data-btier="4"]) .cell .tile::after, .cosprev:not([data-btier="0"])[data-b] i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 12px var(--tileedge, var(--e)); animation: bt-breathe 3s ease-in-out infinite; }
body:is([data-btier="3"], [data-btier="4"]) .cell .tile::after, .cosprev:is([data-btier="3"], [data-btier="4"])[data-b] i::after { background: linear-gradient(115deg, transparent 38%, #ffffff40 50%, transparent 62%) 0 0 / 300% 100% no-repeat; animation: bt-breathe 3s ease-in-out infinite, bt-sweep 3s linear infinite; }
body[data-btier="4"] .cell .tile::after, .cosprev[data-btier="4"][data-b] i::after { background: radial-gradient(circle at 22% 24%, #fff 0 1.5px, transparent 3px), radial-gradient(circle at 80% 74%, #fff 0 1.5px, transparent 3px), linear-gradient(115deg, transparent 38%, #ffffff55 50%, transparent 62%) 0 0 / 300% 100% no-repeat; }
@keyframes bt-breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes bt-sweep { from { background-position: 0 0, 0 0, 100% 0; } to { background-position: 0 0, 0 0, -50% 0; } }

/* maps: 1 flowing road, 2 glowing stops, 3 twinkling stars, 4 a sweep of light */
.chap.pager:where([data-mtier="1"], [data-mtier="2"], [data-mtier="3"], [data-mtier="4"]) svg.road path:last-child { stroke: #fff6d8; stroke-width: 3; stroke-dasharray: 2 22; stroke-linecap: round; animation: fz-flow 1.4s linear infinite; }
.chap.pager:is([data-mtier="2"], [data-mtier="3"], [data-mtier="4"]) .pgrid .node:not(.locked) { filter: drop-shadow(0 0 6px #ffd27a); }
.chap.pager:is([data-mtier="3"], [data-mtier="4"]) .pgrid::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, #fff 0 1.5px, transparent 3px) 0 0 / 67px 83px, radial-gradient(circle, #ffe9a0 0 1.5px, transparent 3px) 31px 41px / 97px 71px; animation: bt-breathe 2s ease-in-out infinite; }
.chap.pager[data-mtier="4"] .pgrid::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, #ffffff30 50%, transparent 60%) 0 0 / 300% 100% no-repeat; animation: mt-sweep 3.5s linear infinite; }
@keyframes mt-sweep { from { background-position: 100% 0; } to { background-position: -50% 0; } }
body.rm .cell .tile::after, body.rm .cosprev[data-b] i::after, body.rm .chap.pager .pgrid::before, body.rm .chap.pager .pgrid::after { display: none; }

/* more Stamp-bought fuses */
:is(body[data-fuse="stitch"] #lines, .cosfuse[data-fuse="stitch"]) .f1 { stroke: #7a5a34; }
:is(body[data-fuse="stitch"] #lines, .cosfuse[data-fuse="stitch"]) .f2 { stroke: #fff0d0; stroke-width: 3px; stroke-dasharray: 8 4; opacity: 1; animation: fz-flow 4s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="chain"] #lines, .cosfuse[data-fuse="chain"]) .f1 { stroke: #aeb9ca; stroke-dasharray: 7 12 ; }
:is(body[data-fuse="chain"] #lines, .cosfuse[data-fuse="chain"]) .f2 { stroke: #2a303a; stroke-width: 3px; stroke-dasharray: 7 12; opacity: 1; }
:is(body[data-fuse="chain"] #lines, .cosfuse[data-fuse="chain"]) .f3 { display: inline; stroke: #e8edf5; stroke-width: 2px; stroke-dasharray: 12 12; }
:is(body[data-fuse="morse"] #lines, .cosfuse[data-fuse="morse"]) .f1 { stroke: #12483c; }
:is(body[data-fuse="morse"] #lines, .cosfuse[data-fuse="morse"]) .f2 { stroke: #7dffd8; stroke-width: 5px; stroke-dasharray: 10 4 1 4 1 4; opacity: 1; animation: fz-flow 2s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="aurora"] #lines, .cosfuse[data-fuse="aurora"]) .f1 { animation: fz-aurora 6s ease-in-out var(--phase, 0ms) infinite; }
:is(body[data-fuse="aurora"] #lines, .cosfuse[data-fuse="aurora"]) .f2 { stroke: #eafff8; stroke-dasharray: 18 6; opacity: .8; animation: fz-flow 1.5s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="aurora"] #lines, .cosfuse[data-fuse="aurora"]) .f3 { display: inline; stroke: #b48cff; stroke-width: 12px; stroke-dasharray: 12 12; opacity: .4; animation: fz-flow 3s linear var(--phase, 0ms) infinite reverse; }
:is(body[data-fuse="comet"] #lines, .cosfuse[data-fuse="comet"]) .f1 { stroke: #2456c8; filter: drop-shadow(0 0 6px #4a8cff); }
:is(body[data-fuse="comet"] #lines, .cosfuse[data-fuse="comet"]) .f2 { stroke: #e8f6ff; stroke-width: 4px; stroke-dasharray: 1 3 3 3 8 6; opacity: 1; animation: fz-flow .4s linear var(--phase, 0ms) infinite; }
:is(body[data-fuse="comet"] #lines, .cosfuse[data-fuse="comet"]) .f3 { display: inline; stroke: #fff; stroke-width: 9px; stroke-dasharray: 0 24; filter: drop-shadow(0 0 6px #bfe0ff); animation: fz-flow .4s linear var(--phase, 0ms) infinite; }
@keyframes fz-aurora { 0%, 100% { stroke: #3fd0c0; } 33% { stroke: #5a8cff; } 66% { stroke: #8be05a; } }
/* more boards */
body[data-board="linen"], .cosprev[data-b="linen"] { --pat: repeating-linear-gradient(0deg, #fff7e01f 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, #0000002b 0 1px, transparent 1px 4px); --tr: 6px; --tb: 1px solid; }
body[data-board="checker"], .cosprev[data-b="checker"] { --pat: conic-gradient(#ffffff2b 25%, transparent 0 50%, #ffffff2b 0 75%, transparent 0) 0 0 / 22px 22px; --tr: 4px; --tb: 2px solid; }
body[data-board="hive"], .cosprev[data-b="hive"] { --pat: radial-gradient(circle, transparent 0 6px, #ffd66655 7px 8px, transparent 9px) 0 0 / 18px 16px, radial-gradient(circle, transparent 0 6px, #ffd66655 7px 8px, transparent 9px) 9px 8px / 18px 16px; --tr: 30%; --tb: 2px solid; }
body[data-board="tartan"], .cosprev[data-b="tartan"] { --pat: repeating-linear-gradient(90deg, transparent 0 9px, #1f7a4a66 9px 15px, transparent 15px 18px, #ffd66655 18px 19px, transparent 19px 26px), repeating-linear-gradient(0deg, transparent 0 9px, #1f7a4a66 9px 15px, transparent 15px 18px, #ffd66655 18px 19px, transparent 19px 26px); --tr: 3px; --tb: 1px solid; }
body[data-board="bamboo"], .cosprev[data-b="bamboo"] { --pat: repeating-linear-gradient(90deg, #00000055 0 2px, #ffffff24 2px 6px, transparent 6px 14px, #00000033 14px 16px), linear-gradient(transparent 46%, #00000066 48%, #e8ffb055 52%, transparent 54%) 0 0 / 100% 100%; --tr: 10px; --tb: 2px solid; }
body[data-board="icecrystal"], .cosprev[data-b="icecrystal"] { --pat: linear-gradient(60deg, transparent 47%, #ffffff55 49% 51%, transparent 53%) 0 0 / 20px 34px, linear-gradient(-60deg, transparent 47%, #ffffff3d 49% 51%, transparent 53%) 0 0 / 20px 34px, radial-gradient(circle at 25% 20%, #ffffff88, transparent 30%) 0 0 / 100% 100%; --tr: 4px 14px; --tb: 2px solid; }
body[data-board="scales"], .cosprev[data-b="scales"] { --pat: radial-gradient(circle at 50% 0, transparent 0 7px, #8dffd966 8px 9px, transparent 10px) 0 0 / 18px 10px, radial-gradient(circle at 50% 0, transparent 0 7px, #8dffd944 8px 9px, transparent 10px) 9px 5px / 18px 10px; --tr: 8px 8px 45% 45%; --tb: 2px solid; }
body[data-board="neongrid"], .cosprev[data-b="neongrid"] { --pat: linear-gradient(#ff4fd877 2px, transparent 2px) 0 100% / 100% 12px, linear-gradient(90deg, #4fe8ff66 2px, transparent 2px) 50% 0 / 16px 100%; --tr: 2px; --tb: 2px solid; --glow: 0 0 9px #ff4fd8aa; }
body[data-board="aurorahall"], .cosprev[data-b="aurorahall"] { --pat: linear-gradient(105deg, transparent 10%, #5affc055 30%, transparent 45%, #8a7aff66 66%, transparent 82%) 0 0 / 100% 100%, radial-gradient(circle, #ffffffaa 0 1px, transparent 2px) 0 0 / 21px 19px; --tr: 16px; --tb: 3px double; --glow: 0 0 10px #7dffd0aa; }
/* more maps */
.chap.pager[data-mapstyle="pebbles"] { background: radial-gradient(circle at 20% 25%, #6f9a4a55 0 9%, transparent 10%), radial-gradient(circle at 75% 70%, #6f9a4a44 0 12%, transparent 13%), linear-gradient(180deg, #26401f, #16260f); }
.chap.pager[data-mapstyle="pebbles"] .pgrid .node { border-radius: 46% 54% 48% 52%; border: 3px solid #cfd4c4; background: radial-gradient(circle at 35% 30%, #b9bfae, #6d7364); box-shadow: 0 4px 0 #1c2416; }
.chap.pager[data-mapstyle="pebbles"] .pgrid .node.locked { filter: grayscale(.85) brightness(.75); }
.chap.pager[data-mapstyle="pebbles"] .pgrid .node.done { background: radial-gradient(circle at 35% 30%, #ffd27a, #9a5a14); }
.chap.pager[data-mapstyle="pebbles"] svg.road path:first-child { stroke: #8a8f7c; stroke-width: 8; stroke-dasharray: 2 14; }
.chap.pager[data-mapstyle="pebbles"] svg.road path:last-child { stroke: none; }
.chap.pager[data-mapstyle="parchment"] { background: radial-gradient(circle at 50% 50%, #e8d3a2, #a8895a); }
.chap.pager[data-mapstyle="parchment"] .pgrid .node { border-radius: 50%; border: 3px double #5a3a14; background: #f4e4b8; color: #3a2208; box-shadow: none; }
.chap.pager[data-mapstyle="parchment"] .pgrid .node.locked { filter: grayscale(.85) brightness(.75); }
.chap.pager[data-mapstyle="parchment"] .pgrid .node.done { background: #d9593a; color: #fff; }
.chap.pager[data-mapstyle="parchment"] .pgrid .node .nst { color: inherit; }
.chap.pager[data-mapstyle="parchment"] svg.road path:first-child { stroke: #7a2a14; stroke-width: 3; stroke-dasharray: 9 7; }
.chap.pager[data-mapstyle="parchment"] svg.road path:last-child { stroke: none; }
.chap.pager[data-mapstyle="honey"] { background: radial-gradient(circle, transparent 0 11px, #ffc94826 12px 14px, transparent 15px) 0 0 / 34px 30px, linear-gradient(180deg, #4a3005, #241702); }
.chap.pager[data-mapstyle="honey"] .pgrid .node { border-radius: 0; border: 0; clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%); background: linear-gradient(160deg, #ffd666, #c8860a); color: #3a2400; box-shadow: none; }
.chap.pager[data-mapstyle="honey"] .pgrid .node.locked { filter: grayscale(.85) brightness(.75); }
.chap.pager[data-mapstyle="honey"] .pgrid .node.done { background: linear-gradient(160deg, #fff0b0, #ffb000); }
.chap.pager[data-mapstyle="honey"] .pgrid .node .nst { color: #3a2400; }
.chap.pager[data-mapstyle="honey"] svg.road path:first-child { stroke: #c8860a; stroke-width: 6; stroke-dasharray: none; }
.chap.pager[data-mapstyle="honey"] svg.road path:last-child { stroke: #ffe7a0; stroke-width: 2; }
.chap.pager[data-mapstyle="domino"] { background: linear-gradient(180deg, #14502f, #0a2b19); }
.chap.pager[data-mapstyle="domino"] .pgrid .node { border-radius: 7px; border: 2px solid #111; background: linear-gradient(180deg, #fbf6ea 47%, #111 47% 53%, #fbf6ea 53%); color: #111; text-shadow: 0 0 3px #fff, 0 0 3px #fff; box-shadow: 0 4px 0 #06180d; }
.chap.pager[data-mapstyle="domino"] .pgrid .node.locked { filter: grayscale(.85) brightness(.75); }
.chap.pager[data-mapstyle="domino"] .pgrid .node.done { border-color: #ffb347; background: linear-gradient(180deg, #ffe2a8 47%, #111 47% 53%, #ffe2a8 53%); }
.chap.pager[data-mapstyle="domino"] .pgrid .node .nst { color: #7a4a00; }
.chap.pager[data-mapstyle="domino"] svg.road path:first-child { stroke: #fbf6ea; stroke-width: 4; stroke-dasharray: 10 9; stroke-linecap: butt; }
.chap.pager[data-mapstyle="domino"] svg.road path:last-child { stroke: none; }
.chap.pager[data-mapstyle="buttons"] { background: repeating-linear-gradient(90deg, #ffffff0d 0 2px, transparent 2px 8px), linear-gradient(180deg, #3b4a78, #1e2744); }
.chap.pager[data-mapstyle="buttons"] .pgrid .node { border: 4px solid #ffd0de; background: radial-gradient(circle at 36% 18%, #3a1020 0 3px, transparent 4px), radial-gradient(circle at 64% 18%, #3a1020 0 3px, transparent 4px), #e0567e; box-shadow: inset 0 0 0 3px #ffffff44, 0 4px 0 #121830; }
.chap.pager[data-mapstyle="buttons"] .pgrid .node.locked { filter: grayscale(.85) brightness(.75); }
.chap.pager[data-mapstyle="buttons"] .pgrid .node.done { background: radial-gradient(circle at 36% 18%, #3a1020 0 3px, transparent 4px), radial-gradient(circle at 64% 18%, #3a1020 0 3px, transparent 4px), #e8a01a; }
.chap.pager[data-mapstyle="buttons"] svg.road path:first-child { stroke: #ffd0de; stroke-width: 2.5; stroke-dasharray: 8 5; }
.chap.pager[data-mapstyle="buttons"] svg.road path:last-child { stroke: none; }
.chap.pager[data-mapstyle="arcade"] { background: linear-gradient(#ff4fd833 1px, transparent 1px) 0 0 / 100% 18px, linear-gradient(90deg, #4fe8ff29 1px, transparent 1px) 0 0 / 24px 100%, linear-gradient(180deg, #1a0833, #05020d); }
.chap.pager[data-mapstyle="arcade"] .pgrid .node { border-radius: 10px; border: 3px solid #4fe8ff; background: #0c0420; box-shadow: 0 0 10px #4fe8ff, inset 0 0 8px #4fe8ff; }
.chap.pager[data-mapstyle="arcade"] .pgrid .node.locked { filter: grayscale(.85) brightness(.75); }
.chap.pager[data-mapstyle="arcade"] .pgrid .node.done { border-color: #ff4fd8; box-shadow: 0 0 10px #ff4fd8, inset 0 0 8px #ff4fd8; }
.chap.pager[data-mapstyle="arcade"] svg.road path:first-child { stroke: #ff4fd8; stroke-width: 6; stroke-dasharray: none; filter: drop-shadow(0 0 6px #ff4fd8); }
.chap.pager[data-mapstyle="arcade"] svg.road path:last-child { stroke: #fff; stroke-width: 2; stroke-dasharray: 6 18; animation: fz-flow .6s linear infinite; }
.chap.pager[data-mapstyle="clouds"] { background: radial-gradient(ellipse at 22% 22%, #ffffff77 0 10%, transparent 20%), radial-gradient(ellipse at 78% 62%, #ffffff66 0 12%, transparent 24%), linear-gradient(180deg, #4f8fd8, #9cc8f0); }
.chap.pager[data-mapstyle="clouds"] .pgrid .node { border-radius: 44% 56% 40% 60% / 60% 60% 40% 40%; border: 0; background: radial-gradient(circle at 50% 30%, #fff, #d6e8fb); color: #17416e; box-shadow: 0 7px 12px #17416e66; }
.chap.pager[data-mapstyle="clouds"] .pgrid .node.locked { filter: grayscale(.85) brightness(.75); }
.chap.pager[data-mapstyle="clouds"] .pgrid .node.done { background: radial-gradient(circle at 50% 30%, #fff8e0, #ffd27a); }
.chap.pager[data-mapstyle="clouds"] .pgrid .node .nst { color: #8a5a00; }
.chap.pager[data-mapstyle="clouds"] svg.road path:first-child { stroke: #ffffff; stroke-width: 9; stroke-dasharray: 0 13; }
.chap.pager[data-mapstyle="clouds"] svg.road path:last-child { stroke: #ffffff; stroke-width: 3; stroke-dasharray: 2 22; animation: fz-flow 2s linear infinite; }
.chap.pager[data-mapstyle="deepsea"] { background: radial-gradient(circle, transparent 0 3px, #bfeaff66 4px, transparent 5px) 0 0 / 57px 73px, radial-gradient(circle, transparent 0 2px, #bfeaff44 3px, transparent 4px) 23px 31px / 41px 47px, linear-gradient(180deg, #0a5a7a, #021421); }
.chap.pager[data-mapstyle="deepsea"] .pgrid .node { border: 2px solid #bfeaff; background: radial-gradient(circle at 32% 28%, #ffffffcc 0 9%, transparent 22%), radial-gradient(circle, #2aa8c855, #0a4a6a); box-shadow: 0 0 12px #5ad8ff88; }
.chap.pager[data-mapstyle="deepsea"] .pgrid .node.locked { filter: grayscale(.85) brightness(.75); }
.chap.pager[data-mapstyle="deepsea"] .pgrid .node.done { background: radial-gradient(circle at 32% 28%, #ffffffcc 0 9%, transparent 22%), radial-gradient(circle, #ffb34788, #7a3a0a); }
.chap.pager[data-mapstyle="deepsea"] svg.road path:first-child { stroke: #1fb6c9; stroke-width: 5; stroke-dasharray: none; filter: drop-shadow(0 0 5px #5ad8ff); }
.chap.pager[data-mapstyle="deepsea"] svg.road path:last-child { stroke: #e8fbff; stroke-width: 3; stroke-dasharray: 0 12; animation: fz-flow 1.8s linear infinite; }
.chap.pager[data-mapstyle="dragonpath"] { background: radial-gradient(circle at 50% 0, transparent 0 11px, #59e0b822 12px 14px, transparent 15px) 0 0 / 28px 16px, linear-gradient(180deg, #12352a, #06130e); }
.chap.pager[data-mapstyle="dragonpath"] .pgrid .node { border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; border: 3px solid #ffd666; background: radial-gradient(circle, #111 0 8%, #ffb000 10% 30%, #14805a 55%, #08361f); box-shadow: 0 0 12px #59e0b8aa; }
.chap.pager[data-mapstyle="dragonpath"] .pgrid .node.locked { filter: grayscale(.85) brightness(.75); }
.chap.pager[data-mapstyle="dragonpath"] .pgrid .node b { text-shadow: 0 0 3px #000, 0 0 5px #000; }
.chap.pager[data-mapstyle="dragonpath"] svg.road path:first-child { stroke: #1fa876; stroke-width: 17; stroke-dasharray: 0 11; filter: drop-shadow(0 0 5px #59e0b8); }
.chap.pager[data-mapstyle="dragonpath"] svg.road path:last-child { stroke: #ffd666; stroke-width: 4; stroke-dasharray: 4 20; animation: fz-flow 1s linear infinite; }

.cosgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cos { min-width: 0; }
.cosprev canvas { display: block; width: 100%; height: 100%; border-radius: inherit; }
.cosprev svg { max-width: 100%; }
/* light maps: the line above the map needs its own backing */
.chap.pager:is([data-mapstyle="clouds"], [data-mapstyle="parchment"]) .chsub .gate { flex: 0 1 auto; margin-right: auto; background: rgba(0,0,0,.55); border-radius: 999px; padding: 2px 8px; }

:is(body[data-fuse="hazard"] #lines, .cosfuse[data-fuse="hazard"]) .f1 { stroke: #ffc400; }
:is(body[data-fuse="hazard"] #lines, .cosfuse[data-fuse="hazard"]) .f2 { stroke: #17130a; stroke-width: 8px; stroke-linecap: butt; stroke-dasharray: 4 8; opacity: 1; animation: fz-flow 2s linear var(--phase, 0ms) infinite; }

/* ---------- cosmetics bar (owner, 1 Dec 2026) ---------- */
/* fuse pieces fill their card */
#cosColours .cosprev { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; }
#cosColours svg.cosfuse { width: 100%; max-width: 100px; height: 52px; overflow: visible; }
.pspark { transform-box: view-box; }
/* the earned boards have a surface of their own, in menu and in play, faint enough to keep numbers clear */
body[data-board="forge"], .cosprev[data-b="forge"] { --pat: radial-gradient(circle at 6px 6px, #f6e7cf66 0 1.4px, #0006 2.2px, transparent 3px), radial-gradient(circle at calc(100% - 6px) 6px, #f6e7cf66 0 1.4px, #0006 2.2px, transparent 3px), radial-gradient(circle at 6px calc(100% - 6px), #f6e7cf66 0 1.4px, #0006 2.2px, transparent 3px), radial-gradient(circle at calc(100% - 6px) calc(100% - 6px), #f6e7cf66 0 1.4px, #0006 2.2px, transparent 3px), repeating-linear-gradient(135deg, #ffffff08 0 2px, transparent 2px 7px); }
body[data-board="autumn"], .cosprev[data-b="autumn"] { --pat: radial-gradient(ellipse 7px 3.5px at 22% 24%, #ff9a3c55 0 90%, transparent), radial-gradient(ellipse 3.5px 7px at 78% 36%, #ffc34d44 0 90%, transparent), radial-gradient(ellipse 6px 3px at 34% 78%, #e0562f55 0 90%, transparent), radial-gradient(ellipse 3px 6px at 70% 80%, #ffb04744 0 90%, transparent); }
body[data-board="dusk"], .cosprev[data-b="dusk"] { --pat: linear-gradient(180deg, transparent 45%, #ff9ec722 62%, #ffb36b2b 78%, transparent), repeating-linear-gradient(180deg, transparent 0 7px, #d9b8ff1c 7px 9px); }
body[data-board="winter"], .cosprev[data-b="winter"] { --pat: linear-gradient(0deg, transparent 47%, #ffffff2e 48% 52%, transparent 53%) 18% 22% / 11px 11px no-repeat, linear-gradient(90deg, transparent 47%, #ffffff2e 48% 52%, transparent 53%) 18% 22% / 11px 11px no-repeat, linear-gradient(45deg, transparent 47%, #ffffff2e 48% 52%, transparent 53%) 80% 74% / 13px 13px no-repeat, linear-gradient(-45deg, transparent 47%, #ffffff2e 48% 52%, transparent 53%) 80% 74% / 13px 13px no-repeat, radial-gradient(circle at 70% 22%, #fff5 0 1.5px, transparent 2.5px), radial-gradient(circle at 28% 72%, #fff4 0 1.5px, transparent 2.5px), linear-gradient(160deg, #ffffff1f, transparent 40%); }
body[data-board="night"], .cosprev[data-b="night"] { --pat: radial-gradient(circle at 76% 22%, transparent 0 4px, #dfe7ff55 4.5px 6.5px, transparent 7.5px), radial-gradient(circle at 20% 30%, #fff6 0 1px, transparent 2px), radial-gradient(circle at 36% 76%, #fff4 0 1px, transparent 2px), radial-gradient(circle at 68% 68%, #fff5 0 1px, transparent 2px); }
body[data-board="desert"], .cosprev[data-b="desert"] { --pat: repeating-radial-gradient(ellipse 140% 90% at 20% 135%, transparent 0 7px, #ffe0a02e 7.5px 9px, transparent 9.5px 13px); }
body[data-board="volcano"], .cosprev[data-b="volcano"] { --pat: linear-gradient(62deg, transparent 47%, #ff6a2f66 49% 50%, transparent 52%), linear-gradient(145deg, transparent 63%, #ff9a3c55 65% 66%, transparent 68%), radial-gradient(ellipse at 50% 115%, #ff5a1f44 0 35%, transparent 70%); }
body[data-board="blossom"], .cosprev[data-b="blossom"] { --pat: radial-gradient(circle at 24% 21%, #ffc4da66 0 3px, transparent 3.5px), radial-gradient(circle at 18% 28%, #ffc4da66 0 3px, transparent 3.5px), radial-gradient(circle at 30% 28%, #ffc4da66 0 3px, transparent 3.5px), radial-gradient(circle at 24% 27%, #ffe27a99 0 2px, transparent 2.5px), radial-gradient(circle at 76% 70%, #ff9fc355 0 3px, transparent 3.5px), radial-gradient(circle at 70% 77%, #ff9fc355 0 3px, transparent 3.5px), radial-gradient(circle at 82% 77%, #ff9fc355 0 3px, transparent 3.5px), radial-gradient(circle at 76% 76%, #ffe27a88 0 2px, transparent 2.5px); }
body[data-board="midnight"], .cosprev[data-b="midnight"] { --pat: repeating-linear-gradient(45deg, transparent 0 8px, #8fa2ff26 8px 9px), repeating-linear-gradient(-45deg, transparent 0 8px, #8fa2ff26 8px 9px); }
/* price steps on the cards: line, glow, brighter glow, moving gold */
#cosOverlay .cos[data-tier="1"] { border-color: color-mix(in srgb, var(--accent2) 40%, var(--line)); }
#cosOverlay .cos[data-tier="2"] { border-color: color-mix(in srgb, var(--accent2) 65%, var(--line)); box-shadow: 0 0 8px -2px color-mix(in srgb, var(--accent2) 55%, transparent); }
#cosOverlay .cos[data-tier="3"] { border-color: var(--accent2); box-shadow: 0 0 12px -1px color-mix(in srgb, var(--accent2) 75%, transparent), inset 0 0 10px -4px var(--accent2); }
#cosOverlay .cos[data-tier="4"] { border: 2px solid #ffe08a; box-shadow: 0 0 14px 0 #ffcf5e99, inset 0 0 12px -3px #ffcf5e; animation: cos-gold 2.4s ease-in-out infinite alternate; }
@keyframes cos-gold { from { border-color: #ffb347; box-shadow: 0 0 8px -1px #ffb34788, inset 0 0 8px -4px #ffb347; } to { border-color: #fff0b8; box-shadow: 0 0 18px 1px #ffe08acc, inset 0 0 14px -3px #ffe08a; } }
body.rm #cosOverlay .cos[data-tier="4"] { animation: none; }
