/* ---------- story mode (24 Oct 2026): the Addu map, the island panel, the Ghoul's night ---------- */
.hfeat{grid-template-columns:repeat(4,minmax(0,1fr))}
.hfeat .ftile{grid-template-columns:42px minmax(0,1fr); gap:8px; padding-right:10px !important}
.hfeat .ftile::after{display:none}
.hfeat .ftile .ficon{width:42px; height:42px}
.hfeat .ftile b{font-size:15.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hfeat .ftile small{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
@media (max-width:620px){ .hfeat{grid-template-columns:repeat(2,minmax(0,1fr))} }

.storyov{padding:0; place-items:stretch; background:radial-gradient(ellipse at 35% 45%, #0f6f8f 0%, #0a4a68 40%, #062a40 100%)}
.storyov::before{content:""; position:absolute; inset:0; pointer-events:none; opacity:.25;
  background:repeating-radial-gradient(ellipse at 30% 50%, rgba(255,255,255,.08) 0 2px, rgba(255,255,255,0) 2px 26px)}
.stx{position:relative; display:grid; grid-template-rows:auto minmax(0,1fr); height:100%; min-height:0; padding:8px 14px 10px; box-sizing:border-box; gap:6px}
.stbar{display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px}
.stbar b{font-family:var(--f-display); font-weight:400; font-size:22px; color:#ffe7a8; text-shadow:0 2px 6px rgba(0,0,0,.6); text-align:center}
.stbar .ghost{padding:6px 14px}
.sttotal{display:flex; align-items:center; gap:6px; font-weight:800; color:#fff3c4; background:rgba(0,0,0,.35); padding:4px 12px; border-radius:999px}
.ststar1{width:18px; height:18px; background:url(../art/story/star.webp) center/contain no-repeat; display:inline-block}

.stbody{display:grid; grid-template-columns:auto minmax(0,1fr); gap:14px; min-height:0; align-items:center}
.stmap{position:relative; height:100%; max-height:100%; aspect-ratio:1439/1093; max-width:62vw; justify-self:center}
.stmapimg{position:absolute; inset:0; width:100%; height:100%; filter:drop-shadow(0 8px 18px rgba(0,0,0,.45)); user-select:none; -webkit-user-drag:none}
.stroute{position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible}
.stroute path{fill:none; stroke:rgba(255,255,255,.55); stroke-width:.7; stroke-dasharray:1.6 1.6; stroke-linecap:round}
.stroute path.open{stroke:#ffd25a; stroke-width:.9; filter:drop-shadow(0 0 1.2px #ffb400); animation:stdash 1.6s linear infinite}
.stroute path.done{stroke:#ffd25a; stroke-width:.9; stroke-dasharray:none; opacity:.85; filter:drop-shadow(0 0 1px #ffb400)}
@keyframes stdash{to{stroke-dashoffset:-3.2}}

.stpin{position:absolute; width:9.5%; aspect-ratio:160/220; transform:translate(-50%,-92%); background:none; border:0; padding:0; cursor:pointer; z-index:2}
.stpin img{width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 3px 4px rgba(0,0,0,.5)); transition:transform .2s}
.stpin.boss{width:11.5%}
.stpin.here .stpimg{animation:stbob 1.4s ease-in-out infinite}
.stpin.sel .stpimg{transform:scale(1.18); filter:drop-shadow(0 0 6px #fff6b0) drop-shadow(0 3px 4px rgba(0,0,0,.5))}
.stpin.boss:not(.locked) .stpimg{filter:drop-shadow(0 0 8px #ff2a2a) drop-shadow(0 3px 4px rgba(0,0,0,.5))}
.stpin .ststars{position:absolute; left:50%; bottom:-14%; transform:translateX(-50%)}
@keyframes stbob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8%)}}

.ststars{display:inline-flex; gap:1px}
/* (14 Nov 2026, step 12) the user's stars: the empty star for stars not won (no grey filter any more), the gold star, the special boss star for the two bosses */
.ststars i{width:14px; height:14px; background:url(../art/story/star-empty.webp) center/contain no-repeat; display:block}
.ststars i.on{background-image:url(../art/story/star.webp)}
.ststars.boss i.on{background-image:url(../art/story/star-boss.webp)}
.ststars.big i{width:40px; height:40px}
.ststars.big i:nth-child(2){transform:translateY(-8px)}

.stdeco{position:absolute; pointer-events:none; transform:translate(-50%,-50%); filter:drop-shadow(0 3px 3px rgba(0,0,0,.35))}
.stdhoni{width:8%; z-index:1}
.stdhoni img{width:100%; display:block; animation:stbob 2s ease-in-out infinite}
.stdhoni.flip img{scale:-1 1}
.stcloud{width:24%; top:6%; left:0; opacity:.9; animation:stcloud 38s linear infinite}
@keyframes stcloud{from{left:-12%}to{left:112%}}

.stpanel{align-self:center; display:grid; gap:7px; justify-items:center; text-align:center; color:#f3ead6; background:linear-gradient(180deg, rgba(20,12,6,.78), rgba(12,8,4,.86));
  border:2px solid rgba(240,192,138,.45); border-radius:18px; padding:10px 14px 12px; max-height:100%; overflow:auto; box-sizing:border-box; box-shadow:0 10px 24px rgba(0,0,0,.45)}
.stsign{width:min(220px,80%); margin-top:-4px}
.stwho{display:flex; align-items:center; gap:8px; text-align:left}
.stwho .av{width:38px; height:38px; flex:none}
.stwho b{display:block; font-size:15px} .stwho small{display:block; font-size:12px; color:#c9b89c}
.stshadow{background:#050505 !important; color:#7a1010; font-family:var(--f-display); font-size:22px; box-shadow:0 0 10px #600}
.stintro{margin:0; font-size:13px; line-height:1.35; color:#e9dcc4; text-wrap:pretty}
.sttasks{list-style:none; margin:0; padding:0; display:grid; gap:3px; justify-items:start; font-size:13px}
.sttasks li{display:flex; align-items:center; gap:7px; color:#cdbfa6}
.sttasks li i{width:16px; height:16px; background:url(../art/story/star-empty.webp) center/contain no-repeat}
.sttasks li.got{color:#fff3c4} .sttasks li.got i{background-image:url(../art/story/star.webp)} .sttasks.boss li.got i{background-image:url(../art/story/star-boss.webp)}
.stpanel .btn{min-width:160px}
.btn.stboss{background:linear-gradient(180deg,#b3141b,#6a0508); color:#ffe9e0; box-shadow:0 0 14px rgba(255,40,40,.55)}
.stpanel .note{margin:0; font-size:12px}

/* results of a story match (inside the round panel) */
.stresult{display:grid; justify-items:center; gap:4px; margin:6px 0}
.stresult b{font-family:var(--f-display); font-weight:400; font-size:22px; color:var(--saffron)}
.stresult small{color:#c9b89c}
#roundPanel .sttasks{justify-self:center; margin:4px auto 8px; width:max-content}

/* the Ghoul's night: intro before the boss match, and the prize screen after */
.stnight{position:fixed; inset:0; z-index:60; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); align-items:center; gap:16px; padding:14px 22px; box-sizing:border-box;
  background:radial-gradient(ellipse at 30% 40%, #1c2a4a 0%, #070a14 70%); color:#f3ead6; animation:stfade .5s ease-out}
.stnight[hidden]{display:none}
.sngrave{width:100%; max-height:calc(100vh - 28px); object-fit:contain; border-radius:14px; box-shadow:0 0 40px rgba(120,160,255,.25)}
.snghoul{max-height:calc(100vh - 28px); justify-self:center; filter:drop-shadow(0 0 24px rgba(255,40,40,.35))}
.sntext{display:grid; gap:8px; text-align:center; justify-items:center}
.sntext h2{font-family:var(--f-display); font-weight:400; font-size:30px; line-height:1.15; margin:0; color:#ff6b5b; text-shadow:0 0 12px rgba(255,0,0,.4)}
.sntext p{margin:0; line-height:1.4; text-wrap:pretty}
.stprizes{display:flex; gap:16px; align-items:flex-end; justify-content:center; margin:6px 0}
.stprizes>span{display:grid; gap:6px; justify-items:center}
.stprizes small{font-size:12px; color:#e9dcc4}
.stprizes .av{width:46px; height:46px; position:relative}
.stprizes .tthumb{width:110px; height:52px; border-radius:6px; display:block}
.stprizes .dthumb{width:40px; height:56px; border-radius:4px; display:block; background-size:cover}
@keyframes stfade{from{opacity:0}to{opacity:1}}

.stflash{position:fixed; inset:0; z-index:70; display:grid; place-items:center; pointer-events:none; background:rgba(0,0,0,.55)}
.stflash[hidden]{display:none}
.stflash img{max-width:86vw; max-height:86vh; border-radius:12px; box-shadow:0 0 50px rgba(255,0,0,.45)}
.stflash.go img{animation:stlunge 1.5s ease-out both}
@keyframes stlunge{0%{transform:scale(.4); opacity:0} 18%{transform:scale(1.06); opacity:1} 30%{transform:scale(1)} 80%{opacity:1} 100%{opacity:0; transform:scale(1.04)}}

@media (max-height:430px){
  .stbar b{font-size:19px}
  .stpanel{gap:4px; padding:6px 12px 8px}
  .stsign{width:min(170px,70%)}
  .stwho .av{width:32px; height:32px}
  .stintro{font-size:12px; line-height:1.3} .sttasks{font-size:12px; gap:1px}
  .stpanel .btn{padding-top:7px; padding-bottom:7px}
}

/* (24 Oct) atolls: arrows and dots in the title, and the next atoll "coming soon" */
.stch{display:flex; align-items:center; justify-content:center; gap:10px}
.stch>span{display:grid; justify-items:center; gap:2px}
.starr{width:34px; height:34px; border-radius:50%; border:1px solid rgba(240,192,138,.5); background:rgba(0,0,0,.35); color:#ffe7a8; font-size:22px; line-height:1; cursor:pointer}
.starr:disabled{opacity:.3; cursor:default}
.stdots{display:flex; gap:5px}
.stdots i{width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.35)}
.stdots i.on{background:#ffd25a}
.stsoonmap{filter:grayscale(.6) brightness(.75) blur(1px) drop-shadow(0 8px 18px rgba(0,0,0,.45))}
.stsoon{position:absolute; inset:0; display:grid; place-items:center; pointer-events:none}
.stsoon b{font-family:var(--f-display); font-weight:400; font-size:32px; color:#ffe7a8; background:rgba(8,20,30,.7); padding:8px 22px; border-radius:999px; border:1px solid rgba(255,210,90,.55); text-shadow:0 2px 6px #000; transform:rotate(-6deg)}
.stsoonh{font-family:var(--f-display); font-weight:400; font-size:26px; margin:0; color:var(--saffron)}
.stsoonh+.stintro{max-width:260px}

/* (24 Oct) the Ghoul's night: fog, flicker, lightning and his face, over the table while you play him */
#ghoulFx{position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden}
#ghoulFx[hidden]{display:none}
#ghoulFx i{position:absolute; inset:0; display:block}
#ghoulFx .gvig{background:radial-gradient(ellipse 70% 65% at 50% 48%, rgba(0,0,0,0) 28%, rgba(25,0,0,.55) 62%, rgba(5,0,0,.92) 100%); animation:gflicker 6s infinite steps(1)}
#ghoulFx .gfog.g2{background:radial-gradient(ellipse 40% 25% at 50% 90%, rgba(140,10,10,.4), rgba(0,0,0,0) 70%), radial-gradient(ellipse 30% 20% at 20% 20%, rgba(80,80,100,.3), rgba(0,0,0,0) 70%)}
#ghoulFx .gfog{inset:-30%; opacity:.75; background:radial-gradient(ellipse 30% 18% at 30% 60%, rgba(120,20,20,.35), rgba(0,0,0,0) 70%), radial-gradient(ellipse 35% 20% at 70% 40%, rgba(90,90,110,.25), rgba(0,0,0,0) 70%)}
#ghoulFx .g1{animation:gdrift 38s linear infinite alternate}
#ghoulFx .g2{animation:gdrift 52s linear infinite alternate-reverse; opacity:.35}
#ghoulFx .gface{background:url(../art/story/ghoul-scream.webp) center/auto 92% no-repeat; opacity:0; mix-blend-mode:screen; filter:grayscale(.4) contrast(1.2)}
#ghoulFx .gflash{background:rgba(200,215,255,.9); opacity:0; mix-blend-mode:overlay}
@keyframes gdrift{from{transform:translate(-6%,2%)}to{transform:translate(6%,-3%)}}
@keyframes gflicker{0%,100%{opacity:1} 41%{opacity:.82} 42%{opacity:1} 77%{opacity:.88} 78%{opacity:1} 79%{opacity:.8} 80%{opacity:1}}

/* (24 Oct) the story scenes, in the Thaas look (user: "make all the story scenes fit the theme, don't use different colours"):
   the story map's ocean behind, a velvet panel in the carved lacquer frame, gold edges, cream speech bubbles, Rozha One */
.stcomic{position:fixed; inset:0; z-index:62; display:grid; place-items:center; padding:12px 18px; box-sizing:border-box; cursor:pointer; font-family:var(--f-body);
  background:radial-gradient(ellipse at 35% 45%, #0f6f8f 0%, #0a4a68 40%, #062a40 100%); animation:stfade .35s ease-out}
.stcomic::before{content:""; position:absolute; inset:0; pointer-events:none; opacity:.25; background:repeating-radial-gradient(ellipse at 30% 50%, rgba(255,255,255,.08) 0 2px, rgba(255,255,255,0) 2px 26px)}
.stcomic[hidden]{display:none}
.stcomic:has(.evil), .stcomic:has(.night){background:radial-gradient(ellipse at 70% 18%, rgba(170,200,255,.16), rgba(0,0,0,0) 32%), radial-gradient(ellipse at 40% 50%, #0b3346 0%, #061b28 50%, #02080d 100%)}
.cframe{position:relative; width:min(760px,100%); height:min(300px,calc(100vh - 64px)); display:grid; grid-template-columns:36% 1fr; align-items:center; gap:22px; box-sizing:border-box;
  border:13px solid transparent; border-image:url(../art/ui/lq-cushion-orig-warm.webp) 190 180 / 13px 12px / 0 round;
  background:radial-gradient(ellipse at 50% 30%, rgba(90,60,36,.28), rgba(0,0,0,0) 70%), url(../art/ui/velvet.webp) center/cover, #120c08; background-clip:padding-box;
  padding:10px 22px 10px 12px; box-shadow:0 18px 40px rgba(0,0,0,.55); color:#f3ead6; animation:cpop .4s cubic-bezier(.2,1.2,.4,1)}
.cframe.evil{background:radial-gradient(ellipse at 30% 50%, rgba(160,20,20,.22), rgba(0,0,0,0) 65%), url(../art/ui/velvet.webp) center/cover, #0a0605; background-clip:padding-box}
.cface{height:100%; display:grid; place-items:center}
.cface img{width:min(100%,220px); aspect-ratio:1; object-fit:cover; border-radius:50%; border:4px solid #d39a5e; box-shadow:0 0 0 4px #4a2a10, 0 0 0 6px #b07a48, 0 12px 24px rgba(0,0,0,.6); animation:cbob 3s ease-in-out infinite}
.cframe.evil .cface img{box-shadow:0 0 0 4px #4a2a10, 0 0 0 6px #b07a48, 0 0 26px rgba(255,40,30,.45)}
.cbubble{position:relative; background:linear-gradient(180deg,#fbf7ef,#efe4cf); border:2px solid #b07a48; border-radius:22px; padding:14px 20px 16px; box-shadow:0 0 0 3px #4a2a10, 0 10px 22px rgba(0,0,0,.45)}
.cbubble::before{content:""; position:absolute; left:-27px; top:44%; border:13px solid transparent; border-right:20px solid #4a2a10}
.cbubble::after{content:""; position:absolute; left:-19px; top:calc(44% + 3px); border:10px solid transparent; border-right:16px solid #f5eedf}
.cname{display:block; font-family:var(--f-display); font-weight:400; font-size:22px; line-height:1.1; color:#8a4a1c; margin-bottom:4px}
.cframe.evil .cname{color:#a3191f}
.cbubble p{margin:0; font-size:17px; line-height:1.4; color:#2b1d16; font-weight:600; min-height:4.2em; text-wrap:pretty}
.cframe.wide{display:block; padding:0; overflow:hidden; background:#06141c}
.cbg{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; animation:czoom 9s ease-out both}
.ccap{position:absolute; left:14px; top:12px; max-width:64%; z-index:2; background:linear-gradient(180deg,rgba(28,17,8,.92),rgba(14,9,4,.92)); border:2px solid rgba(240,192,138,.6); border-radius:14px; padding:8px 16px; box-shadow:0 8px 18px rgba(0,0,0,.5)}
.ccap p{margin:0; font-family:var(--f-display); font-weight:400; font-size:19px; line-height:1.3; color:#ffe7a8; text-shadow:0 2px 4px rgba(0,0,0,.6)}
/* (31 Oct) every face fits the frame (--n = how many): six at 20% each overflowed it, so Addu's cheer lost its outer faces */
.cpics{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:2%; padding:64px 3% 34px}
.cpics img{flex:0 0 auto; width:min(calc((94% - 2% * (var(--n,3) - 1)) / var(--n,3)), 20%, 140px); aspect-ratio:1; border-radius:50%; border:4px solid #d39a5e; box-shadow:0 0 0 3px #4a2a10, 0 10px 20px rgba(0,0,0,.55); animation:cjump 1.2s ease-in-out var(--d) infinite alternate}
.cpics~.cpow{width:104px; height:104px; top:2%; right:1.5%}
.cpow{position:absolute; right:3%; top:5%; z-index:2; width:140px; height:140px; display:grid; place-items:center; animation:cpow .5s cubic-bezier(.2,1.6,.4,1) both .2s;
  background:radial-gradient(circle at 45% 40%, #fff3c4, #f0c08a 45%, #b07a48 100%); filter:drop-shadow(0 6px 10px rgba(0,0,0,.55));
  clip-path:polygon(50% 0,61% 30%,95% 18%,72% 45%,100% 62%,66% 66%,72% 100%,50% 76%,26% 100%,32% 68%,0 60%,28% 44%,6% 16%,40% 30%)}
.cpow span{font-family:var(--f-display); font-weight:400; font-size:min(30px, calc(180px / var(--n,5))); color:#7a1015; transform:rotate(-8deg)}
.cframe.dawn::after{content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(240,192,138,.55), rgba(255,231,168,.18) 50%, rgba(255,255,255,0)); animation:cdawn 3s ease-out both}
.cframe.mist::after{content:""; position:absolute; inset:0; background:radial-gradient(ellipse at 50% 60%, rgba(251,247,239,0), rgba(251,247,239,.6)); animation:cdawn 3s ease-out both}
.cframe.yellow::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(255,196,40,.9), rgba(255,170,30,.55) 45%, rgba(200,120,20,.15) 80%); mix-blend-mode:color; animation:cglow 3.5s ease-in-out infinite alternate}
.cframe.yellow::before{content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background:radial-gradient(ellipse at 75% 10%, rgba(255,226,120,.45), rgba(255,226,120,0) 55%); mix-blend-mode:screen}
@keyframes cglow{from{opacity:.65}to{opacity:1}}
.cframe.mist{background:radial-gradient(ellipse at 50% 50%, #16858c, #0b5560 60%, #05303a)}
.cframe.night .cbg{filter:brightness(.42) saturate(.7)}
.cskip{position:absolute; top:8px; right:12px; z-index:3; padding:6px 18px !important; border-image:none !important; border:1px solid rgba(240,192,138,.55) !important; border-radius:999px !important; background:rgba(0,0,0,.4) !important; color:#ffe7a8 !important; -webkit-text-fill-color:#ffe7a8; font-weight:800; font-size:14px; height:auto !important}
.ctap{position:absolute; bottom:7px; left:0; right:0; text-align:center; color:#f0c08a; font-weight:800; font-size:11px; letter-spacing:.12em; text-transform:uppercase; text-shadow:0 1px 3px #000; animation:cblink 1.6s ease-in-out infinite}
@keyframes cpop{from{transform:scale(.94); opacity:0}to{transform:none; opacity:1}}
@keyframes cbob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes cjump{from{transform:translateY(0)}to{transform:translateY(-10px)}}
@keyframes czoom{from{transform:scale(1.1)}to{transform:scale(1)}}
@keyframes cpow{from{transform:scale(0) rotate(-30deg)}to{transform:scale(1) rotate(0)}}
@keyframes cdawn{from{opacity:0}to{opacity:1}}
@keyframes cblink{0%,100%{opacity:.45}50%{opacity:1}}
@media (max-height:430px){
  .cbubble p{font-size:15px} .cname{font-size:19px} .ccap p{font-size:16px} .cpow{width:110px; height:110px} .cpow span{font-size:min(24px, calc(140px / var(--n,5)))}
}
.stread{padding:4px 14px; font-size:13px}

/* ---------- (25 Oct 2026) the living map: night falls island by island, the yellow light over KahboHera, sparkles, boats ---------- */
.stx{z-index:1}
.storyov::after{content:""; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:calc(var(--night,0) * .8); transition:opacity 1.2s;
  background:radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1.5px 1.5px at 84% 12%, #fff, transparent), radial-gradient(1px 1px at 70% 80%, #fff, transparent),
    radial-gradient(1px 1px at 22% 76%, #fff, transparent), radial-gradient(1.5px 1.5px at 92% 58%, #fff, transparent), radial-gradient(1px 1px at 6% 50%, #fff, transparent),
    linear-gradient(180deg, rgba(4,8,30,.85), rgba(2,4,16,.7))}
.stmapimg:not(.stsoonmap){filter:sepia(calc(var(--dusk,0) * .35)) hue-rotate(calc(var(--night,0) * 12deg)) brightness(calc(1 - var(--night,0) * .42)) saturate(calc(1 - var(--night,0) * .25)) drop-shadow(0 8px 18px rgba(0,0,0,.45)); transition:filter 1.2s}
.stgoddess{position:absolute; width:34%; aspect-ratio:1; transform:translate(-50%,-55%); border-radius:50%; pointer-events:none; z-index:1; mix-blend-mode:screen;
  background:radial-gradient(circle, rgba(255,226,110,.9) 0%, rgba(255,190,40,.45) 30%, rgba(255,160,20,0) 68%); opacity:var(--glow,.4); animation:stgod 3.2s ease-in-out infinite alternate}
@keyframes stgod{from{transform:translate(-50%,-55%) scale(.88); filter:brightness(.85)}to{transform:translate(-50%,-55%) scale(1.06); filter:brightness(1.15)}}
.stsea{position:absolute; inset:0; pointer-events:none; z-index:1}
.stglint{position:absolute; width:1.6%; aspect-ratio:1; transform:translate(-50%,-50%); opacity:0; animation:stglint 4s ease-in-out var(--d) infinite;
  background:radial-gradient(circle, #fff 0 18%, rgba(255,255,255,0) 60%), conic-gradient(from 45deg, transparent 0 22%, rgba(255,255,255,.9) 25%, transparent 28% 47%, rgba(255,255,255,.9) 50%, transparent 53% 72%, rgba(255,255,255,.9) 75%, transparent 78% 97%, rgba(255,255,255,.9) 100%);
  -webkit-mask:radial-gradient(circle, #000 30%, transparent 70%); mask:radial-gradient(circle, #000 30%, transparent 70%)}
@keyframes stglint{0%,70%,100%{opacity:0; transform:translate(-50%,-50%) scale(.4) rotate(0)} 82%{opacity:.95; transform:translate(-50%,-50%) scale(1) rotate(45deg)}}
.stlight{position:absolute; width:1.3%; aspect-ratio:1; border-radius:50%; background:#b8fff0; box-shadow:0 0 6px 3px rgba(120,255,220,.7), 0 0 18px 8px rgba(80,220,200,.3);
  opacity:0; animation:stlight 7s ease-in-out var(--d) infinite}
@keyframes stlight{0%,100%{opacity:0; transform:translate(0,0)} 30%{opacity:.9} 60%{opacity:.5; transform:translate(10px,-6px)} 80%{opacity:.85}}
.stsail{width:5.5%; top:44%; left:62%; z-index:1; animation:stsail 46s ease-in-out infinite}
@keyframes stsail{0%{left:60%; top:46%; scale:1 1} 46%{left:71%; top:30%; scale:1 1} 50%{left:71%; top:30%; scale:-1 1} 96%{left:60%; top:46%; scale:-1 1} 100%{left:60%; top:46%; scale:1 1}}
.stcloud.c2{width:20%; top:58%; opacity:.75; animation-duration:56s; animation-delay:-30s}

/* the island's twist, on the island panel */
.sttwist{margin:0; display:flex; gap:8px; align-items:flex-start; text-align:left; font-size:12px; line-height:1.3; color:#e9dcc4;
  background:rgba(255,210,90,.1); border:1px solid rgba(255,210,90,.35); border-radius:10px; padding:5px 10px; max-width:320px}
.sttwist i{font-style:normal; font-size:18px; line-height:1}
.sttwist b{color:#ffd25a}
.sttwist.calm{background:rgba(120,220,180,.08); border-color:rgba(120,220,180,.3)} .sttwist.calm b{color:#9fe8c8}
.sttwist.boss{background:rgba(200,20,20,.16); border-color:rgba(255,80,60,.45)} .sttwist.boss b{color:#ff8b7a}
.snwarn{color:#ff9d8c !important}

/* a twist or a Ghoul stage being announced at the table, and the small notes */
#storyBanner{position:fixed; left:50%; top:42%; z-index:58; transform:translate(-50%,-50%); width:min(420px,80vw); display:grid; justify-items:center; gap:3px; text-align:center;
  padding:12px 20px 14px; border-radius:16px; color:#f3ead6; cursor:pointer; box-sizing:border-box;
  background:linear-gradient(180deg, rgba(28,17,8,.95), rgba(14,9,4,.95)); border:2px solid rgba(240,192,138,.7); box-shadow:0 14px 36px rgba(0,0,0,.6)}
#storyBanner[hidden],#storyTip[hidden]{display:none}
#storyBanner i{font-style:normal; font-size:34px; line-height:1}
#storyBanner b{font-family:var(--f-display); font-weight:400; font-size:24px; line-height:1.15; color:#ffd25a}
#storyBanner p{margin:0; font-size:14px; line-height:1.35; text-wrap:pretty}
#storyBanner.evil{border-color:#c0221c; background:linear-gradient(180deg, rgba(40,4,4,.96), rgba(12,2,2,.96)); box-shadow:0 0 40px rgba(255,30,20,.45), 0 14px 36px rgba(0,0,0,.6)}
#storyBanner.evil b{color:#ff6b5b; text-shadow:0 0 12px rgba(255,0,0,.5)}
#storyBanner.go{animation:stban 5.2s ease-out both}
@keyframes stban{0%{opacity:0; transform:translate(-50%,-50%) scale(.6)} 8%{opacity:1; transform:translate(-50%,-50%) scale(1.06)} 13%{transform:translate(-50%,-50%) scale(1)} 88%{opacity:1} 100%{opacity:0}}
#storyTip{position:fixed; left:50%; top:10px; z-index:58; transform:translateX(-50%); display:flex; align-items:center; gap:8px; max-width:min(520px,86vw); pointer-events:none;
  padding:7px 16px; border-radius:999px; background:rgba(14,9,4,.92); border:1px solid rgba(240,192,138,.6); color:#fff3c4; font-weight:700; font-size:13.5px; box-shadow:0 8px 20px rgba(0,0,0,.5)}
#storyTip i{font-style:normal; font-size:18px}
#storyTip.go{animation:sttip 4.2s ease-out both}
@keyframes sttip{0%{opacity:0; transform:translate(-50%,-14px)} 8%{opacity:1; transform:translate(-50%,0)} 88%{opacity:1} 100%{opacity:0}}

/* Hithadhoo's mist over the pile */
#pile.fog::after{content:""; position:absolute; inset:-14% -22%; opacity:1; box-shadow:none; will-change:transform; z-index:5; border-radius:40%; pointer-events:none;
  background:radial-gradient(ellipse at 40% 45%, rgba(236,242,246,.97) 0 38%, rgba(214,226,232,.9) 55%, rgba(200,214,222,0) 76%),
    radial-gradient(ellipse at 70% 60%, rgba(240,246,250,.95) 0 30%, rgba(240,246,250,0) 62%);
  filter:blur(1.5px); animation:pfog 5s ease-in-out infinite alternate}
#pile.fog::before{content:"?"; position:absolute; inset:0; z-index:6; display:grid; place-items:center; font-family:var(--f-display); font-size:30px; color:#5d7480; pointer-events:none}
@keyframes pfog{from{transform:translateX(-4%) scale(1)}to{transform:translateX(4%) scale(1.05)}}

/* the Ghoul's curse on a card in your hand, and the card a fureytha swapped in */
#hand .card.cursed{box-shadow:0 0 0 2px #8f2bd6, 0 0 14px 4px rgba(160,60,255,.75); filter:saturate(.6) brightness(.85)}
#hand .card.cursed::after{inset:auto; background:none; z-index:3; content:"🔮"; position:absolute; right:-6px; top:-8px; font-size:16px; filter:drop-shadow(0 0 4px #a040ff)}
#hand .card.spirit{box-shadow:0 0 0 2px #7fe8d2, 0 0 16px 5px rgba(120,255,220,.7); animation:spirit 1.4s ease-in-out 3}
@keyframes spirit{50%{box-shadow:0 0 0 2px #c9fff3, 0 0 26px 10px rgba(120,255,220,.9)}}

/* the Ghoul's stages: the Blood Moon turns the night red, the curse adds a purple haze */
body.ghoul-blood #ghoulFx .gvig{background:radial-gradient(ellipse 70% 65% at 50% 48%, rgba(0,0,0,0) 24%, rgba(90,0,0,.6) 60%, rgba(30,0,0,.95) 100%)}
body.ghoul-blood #ghoulFx::before{content:""; position:absolute; right:6%; top:4%; width:min(90px,12vw); aspect-ratio:1; border-radius:50%;
  background:radial-gradient(circle at 40% 38%, #ff8a6a, #c41a10 55%, #5a0505); box-shadow:0 0 30px 10px rgba(255,40,20,.45); opacity:.85}
body.ghoul-curse #ghoulFx .gfog.g2{background:radial-gradient(ellipse 40% 25% at 50% 90%, rgba(130,30,200,.45), rgba(0,0,0,0) 70%), radial-gradient(ellipse 30% 20% at 20% 20%, rgba(120,40,180,.35), rgba(0,0,0,0) 70%); opacity:.6}

/* (25 Oct) the island's name: the game's own lettering (like the Thaas title) with the gold divider under it */
.stname{display:grid; justify-items:center; line-height:1; padding-bottom:12px; position:relative; margin-top:-2px}
.stname b{font-family:var(--f-display); font-weight:400; font-size:30px; letter-spacing:.02em; color:#eab47a; text-shadow:0 2px 0 #2e1c0e, 0 4px 10px rgba(0,0,0,.8)}
.stname small{font-size:11px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:#c9b89c; margin-top:3px}
.stname::after{content:""; position:absolute; left:50%; bottom:0; transform:translateX(-50%); width:140px; height:12px;
  background:url(../art/ui/divider.webp) center/contain no-repeat; filter:saturate(.8) drop-shadow(0 1px 2px rgba(0,0,0,.6))}
@media (max-height:430px){ .stname b{font-size:23px} .stname small{font-size:10px; margin-top:1px} .stname{padding-bottom:8px; margin-top:-4px} .stname::after{width:110px; height:9px} }

/* (25 Oct) Rattlebones and the Mist Hag speak in front of their own scenes from the user's concept sheets */
.cframe.who-rattle{background:linear-gradient(90deg, rgba(8,6,6,.15), rgba(8,6,6,.55)), url(../art/story/rattle-bg.webp) center 40%/cover, #0a0605; background-clip:padding-box}
.cframe.who-mist{background:linear-gradient(90deg, rgba(8,6,6,.15), rgba(8,6,6,.55)), url(../art/story/mist-bg.webp) center 35%/cover, #0a0605; background-clip:padding-box}

/* (25 Oct) the grey heron on the map: one frame of the strip at a time, standing on his feet (bottom middle) */
.stheron{position:absolute; z-index:2; width:7.3%; aspect-ratio:144/183;   /* (28 Oct) frames have a clear gap now */ transform:translate(-50%,-92%); pointer-events:none;
  background:url(../art/story/heron-strip.webp) 0 0/2600% 100% no-repeat; filter:drop-shadow(0 3px 2px rgba(0,0,0,.35)) brightness(calc(1 - var(--night,0) * .35))}
.stheron.left{transform:translate(-50%,-92%) scaleX(-1)}
/* (25 Oct) the open sea around the atoll: the user's deep-ocean picture */
.storyov{background:#06243a url(../art/story/sea.webp?v=3) center/cover no-repeat}
.storyov::before{opacity:.12}

/* ======================= (27 Oct 2026) night mode, island prizes, the voyage, the elders' words, the story book ======================= */
.sthead{display:flex; align-items:center; gap:8px}
.stbookbtn{padding:5px 12px !important; font-size:13px !important}
@media (max-height:430px){ .stbookbtn{padding:3px 10px !important; font-size:12px !important} }
/* the island's prize */
.stprize{margin:0; display:flex; align-items:center; gap:8px; text-align:left; font-size:11.5px; color:#d9c4a3}
.stprize .tthumb{width:52px; height:26px; border-radius:4px; flex:none; box-shadow:0 0 0 1px rgba(240,192,138,.5)}
.stprize b{display:block; font-size:12px; color:#f0c08a} .stprize small{display:block}
.stprize:not(.got) .tthumb{filter:grayscale(.6) brightness(.7)}
.stprize.got b{color:#9fe8c8}
/* day / night */
.stdaynight{display:flex; gap:4px; padding:3px; border-radius:999px; background:rgba(0,0,0,.35); border:1px solid rgba(240,192,138,.35)}
.stdaynight button{border:0; background:none; color:#d9c4a3; font-weight:800; font-size:12.5px; padding:4px 12px; border-radius:999px; cursor:pointer}
.stdaynight button.on{background:linear-gradient(180deg,#ecc48f,#a8743f); color:#2a180a}
.stdaynight button[data-dn="night"].on{background:linear-gradient(180deg,#3a4f8a,#16204a); color:#e8eeff; box-shadow:0 0 12px rgba(120,150,255,.45)}
.stnightsay{margin:0; font-size:12px; line-height:1.3; color:#c9d6ff; max-width:320px}
html body #storyPanel .btn.stnightgo{background:linear-gradient(180deg,#4a62a8,#1c2858) !important; color:#eef2ff !important; text-shadow:none !important; box-shadow:0 0 14px rgba(120,150,255,.45), 0 0 0 2px rgba(10,10,30,.8) !important}
/* playing at night: the whole table is darker and bluer */
body.st-night.in-game::before{filter:brightness(.55) saturate(.8) hue-rotate(12deg)}
body.st-night.in-game #tableFx{display:none}
/* an elder speaks */
.stsay{position:fixed; z-index:45; transform:translate(-50%,-100%); max-width:220px; padding:7px 12px; border-radius:14px; pointer-events:none;
  background:linear-gradient(180deg,#fbf7ef,#efe4cf); color:#2b1d16; font-weight:700; font-size:13px; line-height:1.3; text-align:center;
  border:2px solid #b07a48; box-shadow:0 0 0 2px #4a2a10, 0 8px 16px rgba(0,0,0,.45); animation:stsay .35s cubic-bezier(.2,1.4,.4,1)}
.stsay::after{content:""; position:absolute; left:50%; bottom:-9px; transform:translateX(-50%); border:7px solid transparent; border-top-color:#4a2a10; border-bottom:0}
.stsay.below{transform:translate(-50%,0)} .stsay.below::after{top:-9px; bottom:auto; border:7px solid transparent; border-bottom-color:#4a2a10; border-top:0}
.stsay.out{opacity:0; transition:opacity .4s}
@keyframes stsay{from{opacity:0; scale:.7}to{opacity:1; scale:1}}
/* the voyage */
.stvoyage{position:fixed; inset:0; z-index:64; overflow:hidden; cursor:pointer; background:#06243a url(../art/story/sea.webp?v=3) center/cover; animation:stfade .35s ease-out}
.stvoyage.out{opacity:0; transition:opacity .35s}
.svmap{position:absolute; left:0; top:0; will-change:transform}
.svmap>img:first-child{width:100%; height:100%; display:block; filter:drop-shadow(0 12px 24px rgba(0,0,0,.45))}
.svpin{position:absolute; width:7%; translate:-50% -92%; filter:drop-shadow(0 4px 6px rgba(0,0,0,.5)); animation:stbob 1.4s ease-in-out infinite}
.svmover{position:absolute; left:0; top:0; width:0; height:0; z-index:2; will-change:transform}
.svboat{position:absolute; left:0; top:0; width:min(72px,11vw); transform:translate(-50%,-50%); z-index:2}
.svboat img{width:100%; display:block; animation:stbob 1.6s ease-in-out infinite; filter:drop-shadow(0 6px 6px rgba(0,0,0,.4))}
.svboat.flip img{scale:-1 1}
.svwake{position:absolute; left:0; top:6px; width:min(120px,17vw); height:40px; transform:translate(-50%,-50%); z-index:1; border-radius:50%;
  background:radial-gradient(ellipse, rgba(255,255,255,.45), rgba(255,255,255,0) 70%); filter:blur(4px); animation:svwake 1.2s ease-in-out infinite alternate}
@keyframes svwake{from{opacity:.5; transform:translate(-50%,-50%) scaleX(.85)}to{opacity:.9; transform:translate(-50%,-50%) scaleX(1.1)}}
.svname{position:absolute; left:50%; top:4%; transform:translateX(-50%); z-index:3; display:grid; justify-items:center; padding:8px 24px 10px; border-radius:16px;
  background:linear-gradient(180deg,rgba(28,17,8,.88),rgba(14,9,4,.92)); border:1.5px solid rgba(240,192,138,.6); box-shadow:0 10px 24px rgba(0,0,0,.5)}
.svname small{font-size:11px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:#d9c4a3}
.svname b{font-family:var(--f-display); font-weight:400; font-size:30px; line-height:1.1; color:#f0c08a}
.svname em{font-style:normal; font-size:12px; font-weight:800; color:#c9d6ff}
.stvoyage .ctap{z-index:3}
.stvoyage.night{background-color:#020814}
.stvoyage.night .svmap,.stvoyage.night::before{filter:brightness(.45) saturate(.7) hue-rotate(15deg)}
.stvoyage.night::before{content:""; position:absolute; inset:0; background:url(../art/story/sea.webp?v=3) center/cover; z-index:-1}
/* (16 Nov 2026) the story book now lives in css/story-book.css */
/* (27 Oct) the panel stays one screen tall: the day/night switch sits beside the Play button */
.stgorow{display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap}
.stgorow .stdaynight button{padding:4px 9px; font-size:15px}
.stprize .tthumb{width:40px; height:20px}
/* (27 Oct) a bubble for a player on the right side opens towards the middle, and never squeezes thin */
.stsay{min-width:130px; white-space:normal}
.stsay.left{transform:translate(-88%,-100%)} .stsay.left::after{left:88%}
.stsay.left.below{transform:translate(-88%,0)}

/* ======================= (27 Oct 2026) Chapter 2: Fuvahmulah ======================= */
/* the user's tiger shark, 24 frames in one strip, swimming in the reef water (story.js storyShark) */
.stshark{position:absolute; z-index:1; width:11.7%; aspect-ratio:256/95; pointer-events:none; transform:translate(-50%,-50%);
  background:url(../art/story/fuvahmulah/shark.webp) 0 0/2400% 100% no-repeat; opacity:.88; filter:drop-shadow(0 3px 2px rgba(0,30,50,.35)) saturate(.9)}
.stvoyage .stshark{width:9.6%}
/* paths across the island instead of sea routes, and the dhoni moored in the harbour */
.stroute.walk path{stroke-dasharray:1 1.4}
.stdhoni.moored{transform:translate(-50%,-60%); width:6%}
/* the walk to the next place: a dotted path that draws itself */
.svpath{position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; filter:drop-shadow(0 0 1.6px #ffb400) drop-shadow(0 1px 1px rgba(0,0,0,.6))}   /* the glow after the mask, so it hugs each dash */
.svpath .wmask{fill:none; stroke:#fff; stroke-width:4; stroke-linecap:round}
.svpath .rev{fill:none; stroke:#ffd25a; stroke-width:1.3; stroke-linecap:round; stroke-dasharray:1.4 1.9}
.stvoyage.walk .svname{top:auto; bottom:9%}
/* a place's own logo above its name */
.stname .stlogo{display:block; width:40px; height:40px; margin:0 auto 2px; border-radius:50%; background:#fff; object-fit:contain; padding:2px; box-sizing:border-box; box-shadow:0 2px 6px rgba(0,0,0,.4)}
/* (28 Oct) the user's sailing dhoni: 40 frames (4 directions x 10), story.js sailBoat picks the row by its heading */
.stsail2{position:absolute; z-index:4; width:8.5%; aspect-ratio:136/100; pointer-events:none; transform:translate(-50%,-62%)}
.stsail2 i{display:block; width:100%; height:100%; background:url(../art/story/dhoni-sail.webp?v=1) 0 0/4000% 100% no-repeat; position:relative;
  filter:drop-shadow(0 1px 1px rgba(0,25,45,.45)) drop-shadow(0 4px 5px rgba(0,30,50,.3)) brightness(calc(1 - var(--night,0) * .3));
  transform-origin:50% 85%; animation:stsailrock 3.6s ease-in-out infinite}
/* (28 Oct, user: "make the sail boat more 3d") it rides the swell: a slow roll and lift, a soft shadow on the water under the hull,
   and a wake of foam rings behind it (story.js sailWake) */
@keyframes stsailrock{0%,100%{rotate:-1.6deg; translate:0 0} 25%{rotate:.4deg; translate:0 -1.5px} 50%{rotate:1.8deg; translate:0 -.5px} 75%{rotate:.2deg; translate:0 -1.8px}}
.stsail2::before{content:""; position:absolute; left:16%; right:16%; bottom:6%; height:16%; border-radius:50%; pointer-events:none;
  background:radial-gradient(closest-side,rgba(0,35,60,.42),rgba(0,35,60,0)); animation:stsailshade 3.6s ease-in-out infinite}
@keyframes stsailshade{0%,100%{transform:scaleX(1); opacity:.9} 25%,75%{transform:scaleX(.9); opacity:.7}}
.stwake{position:absolute; z-index:3; width:2.2%; aspect-ratio:1.7; border-radius:50%; pointer-events:none; transform:translate(-50%,-50%) scale(.5);
  border:1.5px solid rgba(255,255,255,.7); box-shadow:inset 0 0 3px rgba(255,255,255,.5); animation:stwake 2.1s ease-out forwards}
@keyframes stwake{to{transform:translate(-50%,-50%) scale(2.4); opacity:0}}
.stvoyage .stwake{width:1.8%}
@media (prefers-reduced-motion:reduce){.stsail2 i,.stsail2::before{animation:none} .stwake{display:none}}
.stsail2.offshore{width:9%; z-index:2}
.svsail{width:10%}

/* (28 Oct 2026) the Shark King's storm at Kalho Akiri (story.js sharkStorm): a dark sea storm over the table, rain on the felt,
   lightning, his surge on the tiger shark, a shark's shadow under the table, and the boss card before each of his games */
body.shark-storm #tableFx{display:none}
#sharkFx{position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden}
#sharkFx[hidden],#sharkRain[hidden],#bossCard[hidden]{display:none}
#sharkFx i,#sharkFx canvas{position:absolute; inset:0; display:block; width:100%; height:100%}
#sharkFx .sdark{background:linear-gradient(180deg, rgba(2,12,22,.62), rgba(4,22,34,.38) 45%, rgba(2,10,18,.6)); animation:sdark 7s ease-in-out infinite alternate}
@keyframes sdark{to{opacity:.82}}
#sharkFx .svig{background:radial-gradient(ellipse 72% 66% at 50% 48%, rgba(0,0,0,0) 30%, rgba(0,18,30,.55) 64%, rgba(0,6,12,.92) 100%)}
#sharkFx .sflash{background:rgba(205,225,255,.95); opacity:0; mix-blend-mode:overlay}
#sharkFx .ssurge{inset:auto; left:50%; top:50%; width:min(78vw,128vh); height:auto; aspect-ratio:1100/1024; opacity:0; transform:translate(-50%,-50%);
  background:url(../art/story/fuvahmulah/miyaru-surge.webp) center/contain no-repeat; filter:grayscale(.25) contrast(1.15) brightness(.9);
  -webkit-mask:radial-gradient(closest-side, #000 62%, transparent); mask:radial-gradient(closest-side, #000 62%, transparent)}
#sharkFx .sshadow{inset:auto; left:-25%; top:50%; width:min(46vw,80vh); height:auto; aspect-ratio:256/95; opacity:0; transform:translate(-50%,-50%);
  background:url(../art/story/fuvahmulah/shark.webp) 0 0/2400% 100% no-repeat; filter:brightness(0) blur(5px); mix-blend-mode:multiply}
#sharkFx .sshadow.left{transform:translate(-50%,-50%) scaleX(-1)}
#sharkRain{position:fixed; inset:0; width:100%; height:100%; z-index:44; pointer-events:none}
#bossCard{position:fixed; left:50%; top:46%; z-index:59; transform:translate(-50%,-50%); display:flex; align-items:center; gap:14px;
  width:min(560px,88vw); padding:10px 22px 10px 10px; border-radius:18px; color:#eaf4f8;
  background:linear-gradient(135deg, rgba(8,26,40,.96), rgba(2,10,18,.96)); border:2px solid #7a5a2a; box-shadow:0 0 0 2px #1a0d04, 0 18px 40px rgba(0,0,0,.6)}
#bossCard img{width:min(150px,20vw); aspect-ratio:640/521; object-fit:cover; border-radius:12px; flex:none;
  -webkit-mask:linear-gradient(90deg,#000 80%,transparent),linear-gradient(#000 82%,transparent); -webkit-mask-composite:source-in; mask:linear-gradient(90deg,#000 80%,transparent) intersect,linear-gradient(#000 82%,transparent)}
#bossCard div{display:grid; gap:1px}
#bossCard small{font-family:var(--f-body); font-weight:800; font-size:12px; line-height:1; letter-spacing:.32em; color:#e05a4a}
#bossCard b{font-family:var(--f-display); font-weight:700; font-size:clamp(24px,4.4vw,38px); line-height:1.05; color:#f3d79a; text-shadow:0 2px 0 #3a2208}
#bossCard em{font-style:italic; font-size:14px; color:#b8cbd4}
#bossCard span{font-size:14px; font-weight:700; margin-top:6px}
#bossCard span.bk{margin-top:0; font-weight:500; color:#9fb6c2}
#bossCard.go{animation:bossin 3.6s cubic-bezier(.2,.9,.25,1) forwards}
@keyframes bossin{0%{opacity:0; transform:translate(-50%,-50%) scale(1.25)} 8%{opacity:1; transform:translate(-50%,-50%) scale(.97)} 12%{transform:translate(-50%,-50%) scale(1)}
  88%{opacity:1; transform:translate(-50%,-50%) scale(1.02)} 100%{opacity:0; transform:translate(-50%,-50%) scale(1.04)}}
@media (prefers-reduced-motion:reduce){#sharkFx .sdark{animation:none} #bossCard.go{animation:none}}

/* (28 Oct 2026) the walking man (the user's sprite sheet, art/story/make_walker.py): 68 frames in one strip, his feet on the spot */
.stwalker{position:absolute; z-index:4; width:3.3%; aspect-ratio:60/95; pointer-events:none; translate:-50% -94%;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.4)) brightness(calc(1 - var(--night,0) * .3))}
.stwalker i{display:block; width:100%; height:100%; background:url(../art/story/walker-strip.webp) 0 0/6800% 100% no-repeat}
.svmap .stwalker{width:4.4%; z-index:3}

/* (1 Nov) on short screens the place's Play row stays pinned to the panel's bottom edge
   while the story text scrolls under it, so Play and Follow are always in sight */
@media (max-height:500px){
  html body #storyPanel .stgorow{position:sticky; bottom:-8px; z-index:3; margin:0 -12px -8px; padding:8px 12px 8px;
    background:#120b06; border-top:1px solid rgba(240,192,138,.25); box-shadow:0 -8px 12px rgba(10,6,3,.85)}
}
/* (3 Nov 2026, user: "after winning the HOORAY sticker isn't nice, too dull, the text isn't clear") a bright burst:
   a red star behind a gold one, big white letters with a dark red edge, a pop and a short wobble */
.cpow,.cpics~.cpow{width:min(170px,30vh); height:min(170px,30vh); top:5%; right:5%; isolation:isolate; background:none; clip-path:none;
  filter:drop-shadow(0 8px 12px rgba(0,0,0,.55)); animation:cpow .55s cubic-bezier(.2,1.7,.4,1) both .2s, cpowwob 2.4s ease-in-out .8s infinite}
.cpow::before,.cpow::after{content:""; position:absolute; z-index:-1;
  clip-path:polygon(50% 0,61% 30%,95% 18%,72% 45%,100% 62%,66% 66%,72% 100%,50% 76%,26% 100%,32% 68%,0 60%,28% 44%,6% 16%,40% 30%)}
.cpow::before{inset:-8%; background:#c4161c; transform:rotate(14deg)}
.cpow::after{inset:0; background:radial-gradient(circle at 42% 38%, #fffbe0 0 12%, #ffe066 34%, #ffb020 62%, #f07a10 100%)}
.cpow span{font-size:min(40px, calc(230px / var(--n,5)), 7.4vh); color:#fff; letter-spacing:.02em; transform:rotate(-8deg);
  -webkit-text-stroke:3px #7a0d10; paint-order:stroke fill; text-shadow:0 3px 0 #7a0d10, 0 5px 8px rgba(0,0,0,.45)}
@keyframes cpowwob{0%,100%{rotate:0deg; scale:1}50%{rotate:-4deg; scale:1.05}}
@media (prefers-reduced-motion:reduce){ .cpow{animation:cpow .55s both .2s} }

/* (17 Nov 2026) the 14 locked "coming soon" chapters: the glass map stays readable under a mist, and the badge is one straight line over the middle of the map */
.stsoonmap{filter:grayscale(.45) brightness(.8) drop-shadow(0 8px 18px rgba(0,0,0,.45)) !important}
.stsoon{overflow:visible}
.stsoon b{white-space:nowrap; font-size:clamp(15px,3.4vh,22px); padding:5px 16px; transform:none; letter-spacing:.03em; box-shadow:0 4px 14px rgba(0,0,0,.5)}
html body .stbar .stch .stdots{gap:3px} html body .stbar .stch .stdots i{width:5px; height:5px}   /* 17 dots now */
