/* Story mode (story.js): always dark, in the game's three colors: ink, parchment, blood.
   No blackletter here: that font is only for the word Faust (owner). */
body.story{--bg:#15110e;--fg:#f7f3ea;--red:#c0392b;--wood:#dccca6;background:#15110e;color:#f7f3ea}
body.story .top{display:none}                                   /* no nav in the story */
/* a battle: the board alone, floating in the dark. No pit rows, no coordinates; "first move / second move" shows for
   your moves only; the edge of the board sinks into black fog (owner) */
body.story.story-battle{background:#0b0908}
@media(min-width:901px){html:has(body.story.story-battle){overflow:hidden}}   /* the board fits the screen: nothing to scroll to */
body.story-battle .panel,body.story-battle #evalbar,body.story-battle .reopen,body.story-battle .player,body.story-battle .under{display:none}
body.story-battle .layout{grid-template-columns:minmax(0,min(calc(100vh - 190px),820px));justify-content:center}   /* (also the Puzzles page, puzzles.js) */
body.story-battle .boardwrap::before,body.story-battle .boardwrap::after{display:none}
body.story.story-battle .layout{grid-template-columns:minmax(0,min(calc(100vh - 60px),calc(100vw - 330px),900px));justify-content:center;padding-top:30px;padding-bottom:0}
@media(min-width:901px){body.story.story-battle .layout{min-height:100vh;box-sizing:border-box;align-content:center;padding-top:0}}   /* the board sits exactly in the middle of the screen (no top padding, or it would sit low) */
body.story.story-battle .layout{transition:opacity .8s ease-out,transform .9s cubic-bezier(.2,.8,.2,1)}   /* the board comes in softly once the cards are through */
body.story-wait .layout{opacity:0;transform:scale(.94) translateY(14px);pointer-events:none}
body.story.story-battle .boardwrap::before{display:block;left:-24%;right:-24%;top:-24%;bottom:-24%;width:auto;height:auto;-webkit-mask:none;mask:none;z-index:-1;
 background:radial-gradient(closest-side,rgb(192 57 43/.16),rgb(247 243 234/.05) 56%,transparent 76%);filter:blur(22px);animation:st-fog 7s ease-in-out infinite alternate}
@keyframes st-fog{from{opacity:.55;scale:.96}to{opacity:1;scale:1.05}}
body.story.story-battle #board{border:0;background:none}
body.story.story-battle #board .pit{background:none}
body.story.story-battle #board .pc.fallen{display:none}   /* the fallen pieces are not shown in the story (owner); a Devil's promotion still shows its crown */
body.story.story-battle #board .sq .cr,body.story.story-battle #board .sq .cf{display:none}
body.story.story-battle .move-indicator polygon.row,body.story.story-battle .move-indicator polygon.row.lit{fill:none}
body.story.story-battle .move-indicator .mi-label{font-family:var(--serif);font-variant:small-caps;letter-spacing:.08em;fill:#f7f3ea;filter:drop-shadow(0 0 .12px #c0392b) drop-shadow(0 0 .3px rgb(192 57 43/.8))}
body.story.story-battle #board.foe-turn .mi-label{display:none}
body.story .mi-badge{display:none!important}   /* no helper badges in the story (owner): the piece counts beside the board say it */
/* the board has no hard edge: its outer squares stretch on outward (0.8 of a square, each in its own color), blurring and fading into
   the dark. Drawn behind the board: strips of the edge squares' colors (top, bottom, left, right; the corners take the corner square's) */
body.story.story-battle #board::before{content:"";position:absolute;inset:2%;z-index:-1;pointer-events:none;filter:blur(12px);opacity:.15;
 background:linear-gradient(90deg,var(--light) 0.000% 18.750%,var(--dark) 18.750% 29.167%,var(--light) 29.167% 39.583%,var(--dark) 39.583% 50.000%,var(--light) 50.000% 60.417%,var(--dark) 60.417% 70.833%,var(--light) 70.833% 81.250%,var(--dark) 81.250% 100.000%) top left/100% 8.333% no-repeat,linear-gradient(90deg,var(--dark) 0.000% 18.750%,var(--light) 18.750% 29.167%,var(--dark) 29.167% 39.583%,var(--light) 39.583% 50.000%,var(--dark) 50.000% 60.417%,var(--light) 60.417% 70.833%,var(--dark) 70.833% 81.250%,var(--light) 81.250% 100.000%) bottom left/100% 8.333% no-repeat,linear-gradient(180deg,var(--light) 0.0% 12.5%,var(--dark) 12.5% 25.0%,var(--light) 25.0% 37.5%,var(--dark) 37.5% 50.0%,var(--light) 50.0% 62.5%,var(--dark) 62.5% 75.0%,var(--light) 75.0% 87.5%,var(--dark) 87.5% 100.0%) left center/8.333% 83.333% no-repeat,linear-gradient(180deg,var(--dark) 0.0% 12.5%,var(--light) 12.5% 25.0%,var(--dark) 25.0% 37.5%,var(--light) 37.5% 50.0%,var(--dark) 50.0% 62.5%,var(--light) 62.5% 75.0%,var(--dark) 75.0% 87.5%,var(--light) 87.5% 100.0%) right center/8.333% 83.333% no-repeat;
 -webkit-mask:linear-gradient(90deg,transparent 0,rgb(0 0 0/.35) 3.750%,#000 8.333%,#000 91.667%,rgb(0 0 0/.35) 96.250%,transparent 100%),linear-gradient(180deg,transparent 0,rgb(0 0 0/.35) 3.750%,#000 8.333%,#000 91.667%,rgb(0 0 0/.35) 96.250%,transparent 100%);-webkit-mask-composite:source-in;mask:linear-gradient(90deg,transparent 0,rgb(0 0 0/.35) 3.750%,#000 8.333%,#000 91.667%,rgb(0 0 0/.35) 96.250%,transparent 100%),linear-gradient(180deg,transparent 0,rgb(0 0 0/.35) 3.750%,#000 8.333%,#000 91.667%,rgb(0 0 0/.35) 96.250%,transparent 100%);mask-composite:intersect}
body.story.story-battle #board::after{content:"";position:absolute;inset:10%;pointer-events:none;z-index:8;box-shadow:inset 0 0 54px 14px rgb(11 9 8/.72)}   /* the fog creeps in over the outer squares */

/* the HUD: signs on the left, what you carry on the right, one three-bar button bottom right. No bar, no nav */
#storyHud{display:none;position:fixed;inset:0;z-index:50;pointer-events:none;color:#f7f3ea;font-family:var(--serif)}
#storyHud.on{display:block}
#storyHud>*{position:absolute;pointer-events:auto}
#storyHud button.st-who{left:max(2.2vw,14px);flex-direction:column;gap:9px;border:0;border-radius:0;padding:0;max-width:170px}
.st-who.foe{top:max(3.5vh,16px)}.st-who.me{bottom:max(3.5vh,16px)}
.st-who b{font:600 21px/1.1 var(--serif);font-variant:small-caps;letter-spacing:.05em;text-shadow:0 2px 10px #000;overflow-wrap:anywhere;text-align:center}
.st-medal{position:relative;width:96px;height:96px;border-radius:50%;display:grid;place-items:center;flex:none;background:radial-gradient(circle at 50% 32%,#3a2e22,#15110e 72%);border:2px solid #dccca6;
 box-shadow:0 0 0 4px #15110e,0 0 0 5.5px rgb(220 204 166/.4),0 0 28px rgb(220 204 166/.22),inset 0 -8px 16px rgb(0 0 0/.55);transition:scale .16s ease-out,box-shadow .16s}
.st-medal .st-pc{width:66px;height:66px;filter:drop-shadow(0 3px 5px rgb(0 0 0/.6))}
.st-medal.foe{background:radial-gradient(circle at 50% 32%,#f3ead2,#b5a077 78%);border-color:#c0392b;box-shadow:0 0 0 4px #15110e,0 0 0 5.5px rgb(192 57 43/.65),0 0 34px rgb(192 57 43/.6),inset 0 -8px 16px rgb(60 20 10/.35);animation:st-ember 2.6s ease-in-out infinite alternate}
@keyframes st-ember{to{box-shadow:0 0 0 4px #15110e,0 0 0 5.5px rgb(192 57 43/.9),0 0 52px 6px rgb(192 57 43/.75),inset 0 -8px 16px rgb(60 20 10/.35)}}
.st-medal.big{width:124px;height:124px}.st-medal.big .st-pc{width:88px;height:88px}
.st-who:hover .st-medal,.st-who:focus-visible .st-medal{scale:1.09;box-shadow:0 0 0 4px #15110e,0 0 0 5.5px #f7f3ea,0 0 44px rgb(247 243 234/.5)}
#storyHud button.st-who:hover{color:#f7f3ea}
.st-loot{right:max(2.2vw,14px);top:max(3.5vh,16px);display:grid;grid-template-rows:repeat(2,auto);grid-auto-flow:column;gap:10px;justify-content:start}   /* down first, two high: blood over roses as before; a third and fourth thing start a new column beside them */
/* each thing you carry stands on its own little shelf: a dark niche, the icon on a parchment ledge, the count below */
.st-loot span{position:relative;display:flex;flex-direction:column;align-items:center;gap:9px;width:68px;padding:9px 0 7px;border-radius:12px;border:1.5px solid rgb(220 204 166/.4);
 background:radial-gradient(90% 60% at 50% 30%,rgb(192 57 43/.16),transparent 70%),linear-gradient(#2a2119,#15110e);box-shadow:inset 0 0 0 3px #15110e,inset 0 0 0 4px rgb(220 204 166/.14),0 8px 18px rgb(0 0 0/.55);
 font:600 21px/1 var(--serif);font-variant-numeric:lining-nums;text-shadow:0 2px 6px #000}
.st-loot .st-ic{width:36px;height:36px;filter:drop-shadow(0 0 8px rgb(192 57 43/.55)) drop-shadow(0 3px 2px rgb(0 0 0/.6))}
.st-loot span::before{content:"";position:absolute;left:11px;right:11px;top:48px;height:3px;border-radius:2px;background:linear-gradient(90deg,transparent,#dccca6 18%,#dccca6 82%,transparent);box-shadow:0 3px 6px rgb(0 0 0/.8)}   /* the ledge */
.st-loot.foe span{border-color:rgb(192 57 43/.7)}
.st-loot span.st-bounty{border-color:rgb(226 185 77/.75);color:#f3d98a}
.st-loot .st-bounty .st-ic{filter:drop-shadow(0 0 9px rgb(226 185 77/.75))}
.st-loot .st-prize .st-pc{width:36px;height:36px;filter:sepia(1) saturate(4.5) hue-rotate(-14deg) brightness(.93) drop-shadow(0 0 7px rgb(226 185 77/.7))}   /* a hunt's prize: the archon you catch, in gold (story.js drawHud) */
#storyHud .st-loot .st-prize .st-pc{width:1.71em;height:1.71em}
.st-loot span.gain{animation:st-gain .55s cubic-bezier(.2,.8,.2,1)}
#storyHud .st-loot span.paid{border-color:rgb(220 204 166/.25)}#storyHud .st-loot span.paid .st-ic,#storyHud .st-loot span.paid b{opacity:.3;filter:grayscale(1);transition:opacity .3s,filter .3s}   /* a win's gold tile (the bounty, the flawless rose) once it has flown over to you: story.js flyPay */
@keyframes st-gain{30%{scale:1.22;box-shadow:inset 0 0 0 3px #15110e,inset 0 0 0 4px rgb(220 204 166/.14),0 0 30px rgb(192 57 43/.9)}}
.st-ooze{position:fixed;inset:0;width:100vw;height:100vh;z-index:55;pointer-events:none;overflow:visible;filter:drop-shadow(0 0 3px rgb(150 20 24/.6)) drop-shadow(0 1px 2px rgb(0 0 0/.55))}   /* blood drawn out of a dead piece: one shape that stretches as it goes (story.js flyBlood) */
.st-ooze path{fill:#96121a}   /* thin, dark blood, no outline (owner) */
.st-plus{position:fixed;z-index:56;pointer-events:none;font:600 26px/1 var(--serif);font-variant-numeric:lining-nums;color:#f7f3ea;text-shadow:0 0 12px rgb(192 57 43/.9),0 2px 6px #000}
.st-menu{right:max(2.2vw,14px);bottom:max(3.5vh,16px)}
#storyHud button.st-burger{width:54px;height:54px;border-radius:50%;flex-direction:column;justify-content:center;gap:5px;padding:0;background:#15110e}
.st-burger i{display:block;width:22px;height:2px;background:currentColor;border-radius:2px}
/* the pause menu and the game's own question box: a framed panel in the middle of the blurred screen */
.st-pause{display:grid;place-items:center;z-index:66;padding:16px}
.st-panel{display:flex;flex-direction:column;align-items:stretch;gap:12px;width:min(380px,100%);padding:30px 30px 28px;text-align:center;border:2px solid #dccca6;border-radius:18px;
 background:radial-gradient(120% 70% at 50% 0,rgb(192 57 43/.2),transparent 70%),#1b1510;box-shadow:inset 0 0 0 5px #15110e,inset 0 0 0 6px rgb(220 204 166/.3),0 30px 80px rgb(0 0 0/.85);animation:st-rise .32s cubic-bezier(.2,.8,.2,1)}
@keyframes st-rise{from{opacity:0;transform:translateY(26px) scale(.94)}}
.st-panel h2{margin:0 0 10px;font-size:34px}
.st-over .st-panel button{justify-content:center;padding:15px 20px;font-size:20px;border-radius:12px}
.st-over .st-panel button[data-do="seed"]{border-color:transparent;background:none;padding:2px 8px;margin:6px 0 -17px;font:400 15px/1.2 var(--serif);letter-spacing:.04em;opacity:.4}.st-over .st-panel button[data-do="seed"]:hover{opacity:.75}   /* the seed: a faint line under the menu, not a button (owner) */
.st-over .st-panel button.st-bet{background:#c0392b;border-color:#c0392b}.st-over .st-panel button.st-bet:hover{color:#f7f3ea;border-color:#f7f3ea}
.st-ask .st-panel{width:min(460px,100%)}.st-ask .st-note{margin:-6px 0 12px}.st-ask .st-row{flex-wrap:nowrap}.st-ask .st-row button{flex:1}
/* Mephisto's bargain: a dark crimson stage, the contract in the middle (what you give, what you get), two buttons */
.st-screen.deal{background:radial-gradient(80% 60% at 50% 22%,#4a0d1c 0,#1c0d10 46%,#0b0908 100%)}
.st-deal{min-height:100vh;justify-content:center;gap:14px;padding-top:26px;padding-bottom:40px}
.st-deal>.st-medal{animation:st-rise .7s cubic-bezier(.2,.8,.2,1)}
.st-terms{margin:0;max-width:640px;font-size:22px;line-height:1.35}
.st-contract{display:flex;align-items:center;justify-content:center;gap:clamp(14px,3vw,40px);flex-wrap:wrap;margin:10px 0 8px;padding:22px clamp(16px,3vw,40px);border:1.5px solid rgb(220 204 166/.45);border-radius:20px;
 background:linear-gradient(rgb(21 17 14/.82),rgb(21 17 14/.6));box-shadow:inset 0 0 0 5px #15110e,inset 0 0 0 6px rgb(192 57 43/.35),0 24px 60px rgb(0 0 0/.7);animation:st-rise .6s cubic-bezier(.2,.8,.2,1) .15s backwards}
.st-contract.wide{zoom:.6}   /* two whole piles side by side (Career Switch) */
.st-part{display:flex;flex-direction:column;align-items:center;gap:12px}
.st-part>small{font:600 16px/1 var(--serif);font-variant:small-caps;letter-spacing:.16em;color:#d8432f}
.st-for{display:flex;flex-direction:column;align-items:center;gap:8px;max-width:150px;text-align:center}
.st-for b{font:400 44px/1 var(--serif);color:#d8432f;text-shadow:0 0 18px rgb(216 67 47/.7)}
.st-for i{font-style:normal;font:600 16px/1.25 var(--serif);font-variant:small-caps;letter-spacing:.08em;opacity:.85}
.st-card.st-back{justify-content:center;gap:16px;background:repeating-linear-gradient(45deg,rgb(var(--glow)/.07) 0 10px,transparent 10px 20px),var(--face)}
.st-card.st-back .st-art{margin:0;font:600 64px/1 var(--serif);color:rgb(var(--glow));text-shadow:0 0 18px rgb(var(--glow)/.8)}
.st-card.st-back h4{margin:0;white-space:normal}
.st-token{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:150px;min-height:190px;border:2px solid #dccca6;border-radius:16px;background:radial-gradient(circle at 50% 34%,rgb(192 57 43/.3),#1b1510 75%);box-shadow:inset 0 0 0 4px #15110e,inset 0 0 0 5px rgb(220 204 166/.3),0 12px 28px rgb(0 0 0/.6)}
.st-token .st-ic{width:64px;height:64px;filter:drop-shadow(0 0 12px rgb(192 57 43/.7))}
.st-token b{font:600 40px/1 var(--serif);font-variant-numeric:lining-nums}
.st-token small{font:600 15px/1 var(--serif);font-variant:small-caps;letter-spacing:.12em;opacity:.8}
.st-pile{display:flex;justify-content:center;padding-left:120px}.st-pile .st-card{margin-left:-120px;flex:none}.st-pile .st-card:nth-child(odd){rotate:-2deg}.st-pile .st-card:nth-child(even){rotate:2deg}
.st-reveal .st-card{animation:st-flip .7s cubic-bezier(.2,.8,.2,1) backwards,st-glow 1.6s ease-in-out .7s infinite alternate}
@keyframes st-flip{from{opacity:0;transform:rotateY(90deg) scale(.8)}}
/* defeat, the end of a run, freedom: a dark stage, the sign, one huge word */
.st-screen.fall{background:radial-gradient(90% 70% at 50% 34%,#3a0c08 0,#15110e 62%,#0b0908 100%)}
.st-screen.fall.free{background:radial-gradient(90% 70% at 50% 34%,#4a3a12 0,#15110e 62%,#0b0908 100%)}
.st-fall{min-height:100vh;justify-content:center;gap:16px;padding-top:30px;padding-bottom:40px}
.st-fall>.st-medal{animation:st-rise .7s cubic-bezier(.2,.8,.2,1)}
.st-main h1.st-doom{margin:6px 0 0;font:600 clamp(54px,11vw,128px)/1 var(--serif);font-variant:small-caps;letter-spacing:.08em;color:#d8432f;text-shadow:0 0 40px rgb(192 57 43/.65),0 6px 0 #15110e;animation:st-doom .9s cubic-bezier(.2,.8,.2,1)}
.st-free h1.st-doom{color:#e2b94d;text-shadow:0 0 44px rgb(226 185 77/.6),0 6px 0 #15110e}
/* the Free screen's petals (story.js celebrate): gold rose petals, a few red, falling and fluttering once */
.st-petals{position:fixed;inset:0;z-index:58;pointer-events:none;overflow:hidden}
.st-petals i{position:absolute;top:-4vh;width:calc(15px * var(--s));height:calc(10px * var(--s));border-radius:100% 0 100% 0;background:radial-gradient(circle at 30% 30%,#fbe7a6,#e2b94d 55%,#a8832c);box-shadow:0 0 9px rgb(226 185 77/.55);opacity:0;animation:st-petal var(--d) linear forwards,st-flutter var(--w) ease-in-out infinite alternate}
.st-petals i.red{background:radial-gradient(circle at 30% 30%,#f07a86,#b3122e 60%,#6e0b1c);box-shadow:0 0 9px rgb(179 18 46/.45)}
@keyframes st-petal{0%{opacity:0;transform:translateY(0) rotate(var(--r))}8%,88%{opacity:1}100%{opacity:0;transform:translateY(108vh) rotate(calc(var(--r) + 540deg))}}
@keyframes st-flutter{from{translate:calc(var(--x) * -1) 0;scale:1 1}to{translate:var(--x) 0;scale:.5 1}}
@keyframes st-doom{from{opacity:0;letter-spacing:.5em;transform:scale(1.25)}}
.st-fall .st-note{font-size:22px}
.st-row.big{gap:14px;margin-top:10px}
.st-start>.st-row.big{display:grid;grid-template-columns:1fr 1fr;gap:22px;width:100%}.st-start>.st-row.big>:first-child{justify-self:end}.st-start>.st-row.big>:last-child{justify-self:start}   /* the same gap as between the two panels above, and right under it: Leave ends where the left block ends, Descend starts where the right one starts (owner, 2026-12-04 and 12-05) */
.st-main.st-start>h1.st-doom{margin:-6px 0 14px}   /* (owner, 2026-12-05: "title slightly more bottom margin / higher") */
.st-screen .st-row.big button,.st-row.big .st-btn{padding:16px 30px;font-size:21px;border-radius:14px}
.st-main h1.st-doom.long{font-size:clamp(38px,6.6vw,88px);white-space:nowrap;letter-spacing:.06em}
.st-fall:has(.st-result){gap:12px}
/* the result: the score in a red seal, the rest on tiles */
.st-result{display:flex;gap:16px;align-items:stretch;justify-content:center;flex-wrap:wrap;margin:10px 0 6px}
.st-score{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:200px;padding:16px 28px;border:2px solid #c0392b;border-radius:20px;
 background:radial-gradient(circle at 50% 36%,rgb(192 57 43/.4),#1b1510 76%);box-shadow:inset 0 0 0 5px #15110e,inset 0 0 0 6px rgb(192 57 43/.45),0 0 44px rgb(192 57 43/.35),0 18px 40px rgb(0 0 0/.65);animation:st-rise .6s cubic-bezier(.2,.8,.2,1) backwards}
.st-score b{font:600 clamp(60px,9vh,96px)/1 var(--serif);font-variant-numeric:lining-nums;color:#f7f3ea;text-shadow:0 0 30px rgb(216 67 47/.9),0 4px 0 #15110e}
.st-score span{font:600 20px/1 var(--serif);font-variant:small-caps;letter-spacing:.16em;color:#d8432f}
.st-tiles{display:grid;grid-template-columns:repeat(3,minmax(118px,1fr));gap:10px}
.st-tiles div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:11px 10px;border:1.5px solid rgb(220 204 166/.4);border-radius:12px;background:linear-gradient(#2a2119,#15110e);
 box-shadow:inset 0 0 0 3px #15110e,inset 0 0 0 4px rgb(220 204 166/.14),0 8px 18px rgb(0 0 0/.5);animation:st-rise .5s cubic-bezier(.2,.8,.2,1) backwards;animation-delay:calc(150ms + var(--i)*60ms)}
.st-tiles b{font:600 30px/1 var(--serif);font-variant-numeric:lining-nums}
.st-tiles span{font:600 14px/1.1 var(--serif);font-variant:small-caps;letter-spacing:.08em;opacity:.7;white-space:nowrap}
.st-free .st-score{border-color:#e2b94d;background:radial-gradient(circle at 50% 36%,rgb(226 185 77/.35),#1b1510 76%);box-shadow:inset 0 0 0 5px #15110e,inset 0 0 0 6px rgb(226 185 77/.45),0 0 44px rgb(226 185 77/.3),0 18px 40px rgb(0 0 0/.65)}
.st-free .st-score b{text-shadow:0 0 30px rgb(226 185 77/.9),0 4px 0 #15110e}.st-free .st-score span{color:#e2b94d}
@media(max-width:600px){.st-tiles{grid-template-columns:repeat(3,1fr);gap:6px}.st-tiles div{padding:8px 4px}.st-tiles b{font-size:22px}.st-tiles span{font-size:11px;white-space:normal;text-align:center}}
/* an enemy's versions: the name in its rank's metal (story-data.js rank): bronze, silver, rose gold */
.rank-1,.rank-2,.rank-3{-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;text-shadow:none!important;filter:drop-shadow(0 2px 6px rgb(0 0 0/.9))}
.rank-1{background-image:linear-gradient(180deg,#e9b27c,#b06f3c 55%,#7d4a25)}
.rank-2{background-image:linear-gradient(180deg,#ffffff,#c3c9d2 55%,#8a919c)}
.rank-3{background-image:linear-gradient(180deg,#ffe3d2,#f0a58f 45%,#c9705f 80%,#f4c9a0);filter:drop-shadow(0 0 10px rgb(240 165 143/.55)) drop-shadow(0 2px 6px rgb(0 0 0/.9))}
.st-count{display:none}
/* the piece counts: two to a row, each kind a little column: its picture, and the numbers under it */
.st-count span{display:flex;flex-direction:column;align-items:center;gap:6px;font:600 21px/1 var(--serif);font-variant-numeric:lining-nums;text-shadow:0 2px 6px #000}
.st-count span:last-child:nth-child(odd){grid-column:1/-1}   /* an odd one out sits in the middle */
.st-count em{font-style:normal;white-space:nowrap}
.st-count .st-pc,.st-count .st-all svg{width:38px;height:38px;flex:none;box-sizing:border-box}
.st-count.foe .st-all svg{background:#dccca6;border-radius:50%}   /* (like the enemy's pieces: on a light disc) */
.st-count.foe .st-pc{background-color:#dccca6;border-radius:50%;background-size:84%}   /* dark pieces need a light disc */
#storyHud .st-count span.shake,#storyHud .st-loot span.shake{animation:st-no .4s ease-in-out}   /* (owner, 2026-12-04) what stops a move shakes "no": a count, your blood */
@keyframes st-no{0%,100%{transform:translateX(0)}20%{transform:translateX(-7px)}45%{transform:translateX(6px)}70%{transform:translateX(-4px)}88%{transform:translateX(2px)}}
.st-count em i{font-style:normal;font-weight:400;opacity:.6}   /* (only the "/8": the piece pictures are <i> too, and must not be dimmed) */
/* the walkthrough: one line on top with the step, and a glowing ring on the board (app.js coach) */
.st-coach{left:50%;top:12px;translate:-50%;display:flex;align-items:center;gap:14px;width:max-content;max-width:min(92vw,820px);padding:10px 12px 10px 20px;border:1.5px solid #e2b94d;border-radius:999px;
 background:linear-gradient(#2a2119,#15110e);box-shadow:0 0 0 4px #15110e,0 0 30px rgb(226 185 77/.35),0 14px 30px rgb(0 0 0/.7);font:19px/1.25 var(--serif);animation:st-coachin .45s cubic-bezier(.2,.8,.2,1)}
@keyframes st-coachin{from{opacity:0;translate:-50% -24px}}
.st-coach.warn{border-color:#d8432f;box-shadow:0 0 0 4px #15110e,0 0 30px rgb(216 67 47/.5),0 14px 30px rgb(0 0 0/.7);padding-right:22px;animation:st-shake .4s}
.st-coach.warn b{color:#d8432f}
@keyframes st-shake{20%{translate:calc(-50% - 7px)}40%{translate:calc(-50% + 7px)}60%{translate:calc(-50% - 4px)}80%{translate:calc(-50% + 4px)}}
.st-coach b{font:600 20px/1 var(--serif);font-variant:small-caps;letter-spacing:.08em;color:#e2b94d;white-space:nowrap}
/* a puzzle (story.js playPuzzle): its plaque is the walkthrough's, without a button; solved: it shines */
.st-coach.riddle{padding-right:22px}
.st-coach.riddle.won{box-shadow:0 0 0 4px #15110e,0 0 46px 6px rgb(226 185 77/.75),0 14px 30px rgb(0 0 0/.7)}
.st-coach.riddle .st-pips i{width:11px;height:11px}
.st-loot span.st-try{border-color:rgb(192 57 43/.7);transition:border-color .5s}.st-loot span.st-try.off{border-color:rgb(220 204 166/.25)}
.st-loot .st-try .st-ic{transition:opacity .5s,filter .5s}.st-loot .st-try.off .st-ic{opacity:.3;filter:grayscale(1)}
.st-stamp{position:fixed;left:50%;top:50%;z-index:57;pointer-events:none;translate:-50% -50%;rotate:-7deg;padding:.12em .5em .16em;border:5px double currentColor;border-radius:16px;font:600 clamp(48px,9vw,120px)/1 var(--serif);font-variant:small-caps;letter-spacing:.1em;
 color:#d8432f;background:rgb(11 9 8/.6);text-shadow:0 0 30px rgb(216 67 47/.6);animation:st-stamp 1.5s cubic-bezier(.2,.8,.2,1) forwards}
.st-stamp.good{color:#e2b94d;text-shadow:0 0 30px rgb(226 185 77/.6)}
@keyframes st-stamp{0%{opacity:0;scale:2.2}14%{opacity:1;scale:1}80%{opacity:1;scale:1}100%{opacity:0;scale:1.04}}
body.st-watch #board{pointer-events:none}   /* the answer is being played: hands off */
/* the Laboratory, on coming in (story.js shopScreen): the title rises, each card comes out of a white heat, one after the other, then the rest */
.st-main.st-lab{padding-top:30px;padding-bottom:118px}.st-main.st-lab:not(:has(.st-onward)){padding-bottom:34px}   /* (room for the Onward strip, or none: the screen is fitted to the window, story.js fitScreen) */
.st-lab.enter>h2{animation:st-rise .6s cubic-bezier(.2,.8,.2,1) both}
.st-lab.enter>.st-cards:not(.st-gone)>.st-card{animation:st-conjure .75s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(.2s + var(--n,0)*.12s)}
.st-lab.enter>.st-cards>.st-card:nth-child(2){--n:1}.st-lab.enter>.st-cards>.st-card:nth-child(3){--n:2}.st-lab.enter>.st-cards>.st-card:nth-child(4){--n:3}.st-lab.enter>.st-cards>.st-card:nth-child(5){--n:4}.st-lab.enter>.st-cards>.st-card:nth-child(6){--n:5}.st-lab.enter>.st-cards>.st-card:nth-child(7){--n:6}.st-lab.enter>.st-cards>.st-card:nth-child(8){--n:7}.st-lab.enter>.st-cards>.st-card:nth-child(9){--n:8}.st-lab.enter>.st-cards>.st-card:nth-child(10){--n:9}
.st-lab.enter>.st-note,.st-lab.enter>.st-row,.st-lab.enter>.st-cards.st-gone{animation:st-fade .5s 1s both}
@keyframes st-conjure{0%{opacity:0;transform:translateY(38px) scale(.84);filter:blur(12px) brightness(2.6)}55%{opacity:1;filter:blur(0) brightness(1.7)}100%{transform:none;filter:brightness(1)}}
.st-cards.st-gone .st-card{filter:grayscale(1) brightness(.75);rotate:-3deg}   /* cards that were taken from you */
.st-pips{display:flex;gap:5px}.st-pips i{width:9px;height:9px;rotate:45deg;border:1.5px solid #e2b94d}.st-pips i.on{background:#e2b94d;box-shadow:0 0 8px rgb(226 185 77/.8)}
#storyHud .st-coach button{padding:7px 14px;font-size:15px;border-color:rgb(220 204 166/.4);opacity:.8}
/* the way to a Devil's promotion: red outlines of hans. The dancers slide through the Tangos; each leaves an outline
   standing where it landed (.trail; .now: this turn's landings) */
#board>.ghost{inset:auto;z-index:7;pointer-events:none;background:center/100% 100% no-repeat;opacity:.95;filter:drop-shadow(0 0 5px rgb(255 70 50/.95)) drop-shadow(0 0 14px rgb(216 67 47/.6));
 transition:left .55s cubic-bezier(.45,0,.2,1),top .55s cubic-bezier(.45,0,.2,1),opacity .5s;animation:st-ghostin .4s ease-out backwards,st-flicker 2.1s steps(1) infinite}
#board>.ghost.trail{z-index:6;opacity:.3;filter:none;animation:st-ghostin .35s ease-out backwards}
#board>.ghost.trail.now{opacity:.7;filter:drop-shadow(0 0 6px rgb(255 70 50/.8))}
#board>.ghost.crown{opacity:1;filter:brightness(1.4) drop-shadow(0 0 12px #ff5a40) drop-shadow(0 0 30px #ff3b2b)}
#board>.ghost.out{opacity:0}
@keyframes st-ghostin{from{opacity:0;scale:.6}}
@keyframes st-flicker{0%,100%{opacity:.95}8%{opacity:.6}11%{opacity:1}52%{opacity:.75}55%{opacity:.95}}
#board>.coachmark{inset:auto;translate:-50% -50%;z-index:8;pointer-events:none;border-radius:50%;border:3px solid #e2b94d;box-shadow:0 0 0 3px rgb(21 17 14/.55),0 0 28px 8px rgb(226 185 77/.8),inset 0 0 20px rgb(226 185 77/.55);animation:st-coach 1s ease-in-out infinite alternate}
@keyframes st-coach{from{scale:.68;opacity:.7}to{scale:1;opacity:1}}
.st-say{left:50%;top:6px;translate:-50%;margin:0;width:max-content;max-width:min(62vw,680px);text-align:center;font-size:17px;line-height:1.25;opacity:.8;pointer-events:none}
/* the game so far: a row of diamonds just above the squares (app.js renderHist). Filled = played up to the position shown */
#board>.hist{position:absolute;inset:auto 10% 90% 10%;z-index:9;padding-bottom:2px;pointer-events:none}
/* a long game scrolls (app.js keeps the move shown in view); the ends with more fade out, an arrow on top */
.hist-row{position:relative;display:flex;overflow-x:auto;padding:6px 0;scrollbar-width:none;--fl:0px;--fr:0px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--fl),#000 calc(100% - var(--fr)),transparent);mask-image:linear-gradient(90deg,transparent,#000 var(--fl),#000 calc(100% - var(--fr)),transparent)}
.hist-row::-webkit-scrollbar{display:none}
.hist.more-l .hist-row{--fl:64px}.hist.more-r .hist-row{--fr:64px}
.hist-in{flex:none;display:flex;align-items:center;margin:0 auto;padding:0 8px}
.hist button.hist-arrow{position:absolute;top:6px;width:26px;height:28px;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
.hist-arrow.l{left:-8px}.hist-arrow.r{right:-8px}
.hist button.hist-arrow::before{width:8px;aspect-ratio:1;border:solid #dccca6;border-width:0 0 2px 2px;opacity:.8;rotate:45deg}
.hist button.hist-arrow.r::before{rotate:-135deg}
.hist.more-l .hist-arrow.l,.hist.more-r .hist-arrow.r{opacity:1;visibility:visible}
.hist button.hist-arrow:hover::before{opacity:1;scale:1.25}
.hist button{flex:none;width:19px;height:28px;padding:0;border:0;background:none;display:grid;place-items:center;pointer-events:auto;cursor:pointer}
.hist button.gap{margin-left:9px}
.hist button::before{content:"";width:10px;aspect-ratio:1;rotate:45deg;box-sizing:border-box;border:1px solid var(--c);opacity:.45;transition:background .2s,opacity .2s,box-shadow .2s,scale .2s}
.hist .me{--c:#dccca6}.hist .foe{--c:#c0392b}
.hist button.on::before{background:var(--c);opacity:.9}
.hist button.cur::before{opacity:1;scale:1.25;box-shadow:0 0 8px var(--c)}
.hist button:hover::before{opacity:1;scale:1.25}
/* in a battle everything stands right beside the board: signs on its left, blood and the flawless rose on its right;
   the enemy's at the top (their side), yours at the bottom. --bw: the board's width, as the layout sets it */
@media(min-width:901px){
 #storyHud{--bw:min(calc(100vh - 60px),calc(100vw - 330px),900px);--edge:calc(50% + var(--bw)*.45);--y0:calc((100vh - var(--bw))/2);--top:calc(var(--y0) + var(--bw)*.1);--low:calc(var(--y0) + var(--bw)*.9)}   /* --y0: the board's top, centred in the screen (the .layout rule above) */
 /* One rule for both sides of the board (owner, 2026-11-30). Up and down: the sign's outer ring ends on the board's
    own edge, as the tiles on the right do (the enemy's on the top edge, yours on the bottom). Sideways: two side bars
    of the same size, one each side of the board, and everything stands in the middle of its bar: the sign, its name
    and the counts on the left line (--lx), the tiles (one column or two) on the right line (--rx).
    --u: one square of the board. --side: from the board's edge to the middle of a bar. */
 #storyHud{--ring:6px;--u:calc(var(--bw)*.1);--side:calc(var(--u)*.5 + 66px);--lx:calc(50% - var(--bw)*.4 - var(--side));--rx:calc(50% + var(--bw)*.4 + var(--side))}   /* --ring: the sign's outer ring beyond its 96px disc */
 /* (owner, 2026-12-05: "the profile and resources appear so close to the center... You can widen all. Then we can make
    an animation when they come to where they need to be before the archon/game starts") beside the board only in a
    battle (and a puzzle: .battle). Everywhere else the two lines stand out at the screen's edges, which leaves the
    middle to the map, the shops and the rest; when a battle opens they glide in to the board, and out again after it.
    The two lines are registered lengths (@property, below the media rule), so they can be animated as they are. */
 /* (owner, same day: "too far apart... it should be like same left margin as bottom margin/padding almost from the
    corner") out there your sign sits in the bottom left corner, its ring as far from the left edge as from the bottom
    one (--m); --my is its foot, a registered length too, so it rises to the board's edge as it glides in */
 #storyHud{--m:clamp(20px,3.4vh,40px);--my:calc(var(--low) - var(--ring))}
 #storyHud:not(.battle),#storyHud.wide{--lx:calc(var(--m) + var(--ring) + 48px);--rx:calc(100% - clamp(118px,7vw,200px));--my:calc(100% - var(--m) - var(--ring))}
 #storyHud.wide .st-count{visibility:hidden}
 #storyHud{transition:--lx .85s cubic-bezier(.65,0,.2,1),--rx .85s cubic-bezier(.65,0,.2,1),--my .85s cubic-bezier(.65,0,.2,1)}
 #storyHud button.st-who{left:var(--lx);right:auto}
 #storyHud .st-who.foe{top:calc(var(--top) + var(--ring));translate:-50% 0}
 /* the names bend around the medals (story.js arcName): the straight one is for phones */
 #storyHud .st-who b{display:none}
 #storyHud .st-who .st-arc{position:absolute;left:50%;top:50%;width:220px;height:220px;translate:-50% -50%;overflow:visible;pointer-events:none}
 .st-arc text{font:600 20px var(--serif);font-variant:small-caps;letter-spacing:.08em;filter:drop-shadow(0 2px 5px #000)}
 #storyHud .st-who.me{bottom:auto;top:var(--my);translate:-50% -100%}
 /* the piece counts: under the enemy's sign and name, over yours */
 /* Never more than two rows a side, so the enemy's counts and yours cannot run into each other (owner, 2026-11-30):
    up to four kinds stand two to a row, five or six three to a row, all seven four and three; each row centered.
    --ci: the size of a picture, from the board's squares, so the counts shrink with the board. */
 #storyHud{--ci:clamp(20px,calc(var(--u)*.36),34px)}
 #storyHud .st-count{left:var(--lx);translate:-50% 0;width:calc(var(--ci)*3.3);display:flex;flex-wrap:wrap;justify-content:center;gap:8px 0;pointer-events:none}
 #storyHud .st-count span{width:50%;gap:4px;font-size:calc(var(--ci)*.56)}
 #storyHud .st-count .st-pc,#storyHud .st-count .st-all svg{width:var(--ci);height:var(--ci)}
 #storyHud .st-count:has(span:nth-child(5)){width:calc(var(--ci)*4.6)}
 #storyHud .st-count:has(span:nth-child(5)) span{width:33.33%}
 /* seven of them (hans, the sigil and all five archons): three, two and two, each row centered (owner) */
 #storyHud .st-count:has(span:nth-child(7)){width:calc(var(--ci)*5.3)}
 #storyHud .st-count:has(span:nth-child(7)) span{width:25%}
 #storyHud .st-count.foe{top:calc(var(--top) + var(--ring) + 48px + 116px)}   /* (under the sign's middle, clear of the arched name) */
 #storyHud .st-count.mine{top:calc(var(--low) - var(--ring) - 48px - 116px);translate:-50% -100%}
 /* the tiles' first column always stands where it stands with two columns, however few tiles there are (owner, 2026-12-04:
    "it shouldn't center, where the resources usually are with 4 in the grid is where they should be when there are less").
    Two columns lie middle on --rx: a tile is 3.24em wide (.81 of its height), the gap 10px. */
 #storyHud .st-loot{right:auto;left:var(--rx);translate:calc((var(--u) - 5px) * -.81 - 5px) 0}
 #storyHud .st-loot.foe{top:var(--top)}
 #storyHud .st-loot.mine{top:var(--low);translate:calc((var(--u) - 5px) * -.81 - 5px) -100%}
 /* two tiles and the gap between them are exactly two squares of the board high (owner): a tile is a square less half
    the 10px gap, and all that is in it is sized from that (in em: the number is a quarter of the tile's height) */
 #storyHud .st-loot span{box-sizing:border-box;height:calc(var(--u) - 5px);font-size:calc((var(--u) - 5px)*.25);width:3.24em;padding:.43em 0 0;gap:.43em;justify-content:flex-start}
 #storyHud .st-loot .st-ic{width:1.71em;height:1.71em}
 #storyHud .st-loot span::before{top:2.29em;left:.52em;right:.52em}
 /* the test room is a wide page of cards: there your sign and your blood and roses stand in the corners, not over the cards */
 body:has(.st-test) #storyHud button.st-who.me{right:auto;left:40px;top:auto;bottom:18px;translate:none}
 body:has(.st-test) #storyHud .st-loot.mine{left:auto;right:18px;top:18px;translate:none}
 .st-loot span.st-flawless{border-color:rgb(226 185 77/.75);outline:0;transition:border-color .6s}   /* the rose for a flawless win: on their side, where your own rose is on yours, in gold */
 .st-loot .st-flawless .st-ic{filter:drop-shadow(0 0 9px rgb(226 185 77/.75));transition:opacity .6s,filter .6s}
 .st-loot span.st-flawless.off{border-color:rgb(220 204 166/.25)}
 .st-loot .st-flawless.off .st-ic{opacity:.3;filter:grayscale(1)}
 .st-loot span[data-tip],#storyHud .st-count span[data-tip]{outline:0}
 #storyHud .st-count span[data-tip]{position:relative;pointer-events:auto}   /* (the counts: a hint on hover too) */
 .st-loot span[data-tip]::after,#storyHud .st-count span[data-tip]::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 10px);translate:-50% 4px;width:max-content;max-width:170px;padding:8px 12px;z-index:3;color:#f7f3ea;text-shadow:none;border:1.5px solid #dccca6;border-radius:8px;background:#15110e;
  font:400 16px/1.3 var(--serif);text-align:center;pointer-events:none;opacity:0;transition:opacity .12s,translate .12s;box-shadow:0 8px 22px rgb(0 0 0/.5)}
 .st-loot span[data-tip]:hover::after,.st-loot span[data-tip]:focus-visible::after,#storyHud .st-count span[data-tip]:hover::after,#storyHud .st-count span[data-tip]:focus-visible::after{opacity:1;translate:-50% 0}
}
@property --lx{syntax:"<length-percentage>";inherits:true;initial-value:0px}
@property --rx{syntax:"<length-percentage>";inherits:true;initial-value:0px}
@property --my{syntax:"<length-percentage>";inherits:true;initial-value:0px}
@media(prefers-reduced-motion:reduce){#storyHud{transition:none}}
@media(max-width:900px){
 .st-loot.foe{display:none}
 body.story.story-battle .layout{grid-template-columns:minmax(0,1fr);padding-top:104px;padding-bottom:110px}
 .st-medal{width:60px;height:60px}.st-medal .st-pc{width:42px;height:42px}.st-medal.big{width:96px;height:96px}.st-medal.big .st-pc{width:68px;height:68px}
 #storyHud button.st-who{flex-direction:row;max-width:60vw}#storyHud .st-who .st-arc{display:none}.st-who b{font-size:18px}
 .st-loot{flex-direction:row;gap:8px}.st-loot .st-ic{width:24px;height:24px}.st-loot span{font-size:16px;width:50px;padding:6px 0 5px;gap:7px}.st-loot span::before{top:33px;left:8px;right:8px;height:2px}
 .st-say{top:auto;bottom:86px;max-width:92vw}
}

.st-screen{display:none;position:fixed;inset:0;z-index:45;background:#15110e;color:#f7f3ea;font:20px/1.5 var(--serif);overflow:auto}
.st-screen.on{display:block}
.st-ic{width:24px;height:24px;flex:none;vertical-align:middle}
.st-acts{display:inline-flex;gap:8px}
/* a screen fading out, and the map fading in after it (story.js go) */
.st-screen.st-out>*{opacity:0;transition:opacity .28s ease-in;pointer-events:none}
.st-screen.st-in>*{animation:st-screenin .55s ease-out}
/* the descent (story.js begin, sinkMap): the Descent screen rushes up out of sight; the map comes out of the dark at the
   last Faust and the view sinks down it. While it sinks nothing can be entered, the ends of the view are dark, so the
   rows come out of the depth and go into the height, and the first nodes wait with their beat */
.st-screen.st-plunge{overflow:hidden;pointer-events:none}
.st-screen.st-plunge>*{animation:st-plunge .45s cubic-bezier(.55,0,.85,.35) forwards}
@keyframes st-plunge{60%{opacity:.5}to{translate:0 -85vh;opacity:0;filter:blur(4px)}}
.st-screen.st-sink .st-mapwrap{animation:st-fade .7s ease-out both}
.st-screen.st-sink .st-map{pointer-events:none}.st-screen.st-sink button.st-node.open{animation:none}
.st-screen.st-sink::after{content:"";position:fixed;inset:0;z-index:2;pointer-events:none;background:linear-gradient(#15110e 4%,rgb(21 17 14/0) 30%,rgb(21 17 14/0) 70%,#15110e 96%);animation:st-fade .3s both}
@keyframes st-screenin{from{opacity:0;translate:0 10px}}
.st-screen button,#storyHud button,.st-over button,.st-potpop button,.st-btn{font:600 17px/1 var(--serif);color:#f7f3ea;background:none;border:1.5px solid #dccca6;border-radius:999px;padding:10px 18px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.st-screen button:hover:not(:disabled),#storyHud button:hover,.st-over button:hover,.st-potpop button:hover:not(:disabled),.st-btn:hover{border-color:#c0392b;color:#c0392b}
.st-screen button:disabled,.st-potpop button:disabled{opacity:.35;cursor:default}
.st-screen button.ghost{border-color:transparent;opacity:.7}
.st-main{max-width:980px;margin:0 auto;padding:44px max(4vw,16px) 150px;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.st-main h1{font:600 clamp(40px,7vw,64px)/1.1 var(--serif);font-variant:small-caps;letter-spacing:.02em;margin:8vh 0 0}
.st-main h2{font:600 30px/1.15 var(--serif);font-variant:small-caps;letter-spacing:.02em;margin:0}
.st-note{opacity:.7;margin:0}
.st-row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;align-items:center}
.st-pc{display:inline-block;width:34px;height:34px;background:center/contain no-repeat;flex:none}
.st-screen.peek .st-node{cursor:default}.st-screen.peek .st-node.open{animation:none}
.st-screen.peek{z-index:70}
/* Back from a look-only view (the map from a battle or a defeat, the last board): the whole bottom strip is the button */
.st-peekback{position:fixed;left:0;right:0;bottom:0;height:120px;z-index:80;border:0;border-radius:0;padding:0 0 24px;display:flex;align-items:flex-end;justify-content:center;
  background:linear-gradient(to top,rgb(11 9 8/.92),rgb(11 9 8/0));color:#f7f3ea;font:inherit}
.st-peekback span{font:600 20px/1.4 var(--serif);opacity:.7;transition:opacity .2s,text-shadow .2s}   /* grey text, no button (owner): the strip itself is what you click */
.st-peekback:hover span{opacity:1;text-shadow:0 0 12px rgb(247 243 234/.5)}
/* the map scrolls under the Back button, never over it: a dark band along the bottom swallows the nodes before they reach it */
.st-screen.peek::after{content:"";position:fixed;left:0;right:0;bottom:0;height:120px;z-index:11;pointer-events:none;background:linear-gradient(transparent,#15110e 55%)}
.st-tally{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px;margin:0}
.st-tally .st-pc{width:28px;height:28px;margin-right:-4px;background-color:#dccca6;border-radius:50%;background-size:86%}   /* dark pieces need a light disc */
.st-tally span{display:inline-flex;align-items:center;gap:4px;margin-left:16px}
.st-tally .st-gold{color:#f3d98a}   /* the bounty and the flawless rose, gold as on the battle's tiles */

/* the map */
.st-mapwrap{max-width:max(700px,min(1040px,calc(100vw - 560px)));margin:0 auto;padding:45vh 16px}   /* (wider on a wide screen, now that the sign and the tiles stand at the edges; owner, 2026-12-05) */   /* room to scroll well past both ends of the map */
.st-map{position:relative}
.st-map svg{position:absolute;inset:0;width:100%;height:100%}
.st-map line{stroke:#f7f3ea;stroke-opacity:.18;stroke-width:2;vector-effect:non-scaling-stroke;stroke-dasharray:5 6}
.st-map line.open{stroke:#c0392b;stroke-opacity:.9}
.st-map line.walked{stroke-opacity:.6;stroke-dasharray:none;stroke-width:4}   /* the way you came: thicker (owner) */
/* (The Magic Cloak, a Devil Contract) a flight: a dotted arc to a node no path leads to; the flights you made stay, thicker */
.st-map path.fly{fill:none;stroke:#c0392b;stroke-opacity:.9;stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-dasharray:1 8;stroke-linecap:round}
.st-map path.fly.walked{stroke:#f7f3ea;stroke-opacity:.6;stroke-width:4;stroke-dasharray:1 10}
.st-screen button.st-node{position:absolute;width:60px;height:60px;margin:-30px 0 0 -30px;padding:0;border-radius:50%;border:2px solid #dccca6;background:#15110e;justify-content:center;opacity:1;transition:scale .15s ease-out,border-color .15s,box-shadow .15s}
.st-node .st-pc{width:42px;height:42px;transition:scale .15s ease-out}
.st-screen button.st-node.locked{cursor:default;border-color:rgb(220 204 166/.45)}
.st-node.locked .st-pc{opacity:.5}
.st-screen button.st-node.done{border-style:dashed}
.st-node.done .st-pc{opacity:.8}
.st-screen button.st-node.here{border-color:#f7f3ea;box-shadow:0 0 0 4px #15110e,0 0 0 6px #f7f3ea}
.st-node.here .st-pc{opacity:1}
.st-screen button.st-node.open{border-color:#c0392b;animation:st-pulse 1.3s ease-in-out infinite alternate}
/* the final Faust: a big burning disc inside a slowly turning sigil (rings, eight spikes), breathing red light */
.st-screen button.st-node.k-final{width:124px;height:124px;margin:-62px 0 0 -62px;background:radial-gradient(circle,#d8432f 0 30%,#8e1c12 62%,#3a0c08 100%);border:3px solid #f7f3ea;
 box-shadow:0 0 0 7px #15110e,0 0 46px 12px rgb(192 57 43/.55);animation:st-final 2.4s ease-in-out infinite alternate}
.st-screen button.st-node.k-final.locked{border-color:#f7f3ea}
.st-node.k-final .st-pc,.st-node.k-final.locked .st-pc{width:88px;height:88px;opacity:1;filter:drop-shadow(0 0 5px #f7f3ea)}
.st-node.k-final::before{content:"";position:absolute;inset:-62px;background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%22-50 -50 100 100%22%3E%3Ccircle r=%2233%22 fill=%22none%22 stroke=%22%23c0392b%22 stroke-width=%221%22/%3E%3Ccircle r=%2237.5%22 fill=%22none%22 stroke=%22%23c0392b%22 stroke-width=%221.8%22/%3E%3Cpath d=%22M37.8 -4.2L48.5 0.0L37.8 4.2Z%22 fill=%22%23c0392b%22/%3E%3Ccircle cx=%2239.3%22 cy=%2216.3%22 r=%221.3%22 fill=%22%23f7f3ea%22/%3E%3Cpath d=%22M29.7 23.8L34.3 34.3L23.8 29.7Z%22 fill=%22%23c0392b%22/%3E%3Ccircle cx=%2216.3%22 cy=%2239.3%22 r=%221.3%22 fill=%22%23f7f3ea%22/%3E%3Cpath d=%22M4.2 37.8L0.0 48.5L-4.2 37.8Z%22 fill=%22%23c0392b%22/%3E%3Ccircle cx=%22-16.3%22 cy=%2239.3%22 r=%221.3%22 fill=%22%23f7f3ea%22/%3E%3Cpath d=%22M-23.8 29.7L-34.3 34.3L-29.7 23.8Z%22 fill=%22%23c0392b%22/%3E%3Ccircle cx=%22-39.3%22 cy=%2216.3%22 r=%221.3%22 fill=%22%23f7f3ea%22/%3E%3Cpath d=%22M-37.8 4.2L-48.5 0.0L-37.8 -4.2Z%22 fill=%22%23c0392b%22/%3E%3Ccircle cx=%22-39.3%22 cy=%22-16.3%22 r=%221.3%22 fill=%22%23f7f3ea%22/%3E%3Cpath d=%22M-29.7 -23.8L-34.3 -34.3L-23.8 -29.7Z%22 fill=%22%23c0392b%22/%3E%3Ccircle cx=%22-16.3%22 cy=%22-39.3%22 r=%221.3%22 fill=%22%23f7f3ea%22/%3E%3Cpath d=%22M-4.2 -37.8L-0.0 -48.5L4.2 -37.8Z%22 fill=%22%23c0392b%22/%3E%3Ccircle cx=%2216.3%22 cy=%22-39.3%22 r=%221.3%22 fill=%22%23f7f3ea%22/%3E%3Cpath d=%22M23.8 -29.7L34.3 -34.3L29.7 -23.8Z%22 fill=%22%23c0392b%22/%3E%3Ccircle cx=%2239.3%22 cy=%22-16.3%22 r=%221.3%22 fill=%22%23f7f3ea%22/%3E%3C/svg%3E") center/contain no-repeat;animation:st-spin 46s linear infinite;pointer-events:none}
.st-screen button.st-node.k-final:hover,.st-screen button.st-node.k-final.open:hover{scale:1.08;border-color:#f7f3ea;box-shadow:0 0 0 7px #15110e,0 0 80px 26px rgb(216 67 47/.9);animation:none}
.st-node.k-final:hover::before{animation-duration:9s}
@keyframes st-final{to{box-shadow:0 0 0 7px #15110e,0 0 78px 24px rgb(192 57 43/.85)}}
@keyframes st-spin{to{rotate:360deg}}
@media(prefers-reduced-motion:reduce){.st-screen button.st-node.k-final,.st-node.k-final::before{animation:none}}
/* hover: the node swells and says what it is */
.st-screen button.st-node:hover,.st-screen button.st-node:focus-visible{scale:1.14;z-index:3;border-color:#f7f3ea;color:#f7f3ea}
.st-screen button.st-node.open:hover{border-color:#c0392b;box-shadow:0 0 0 6px rgb(192 57 43/.55),0 0 22px rgb(192 57 43/.7);animation:none}
.st-node:hover .st-pc{scale:1.08;opacity:1}
.st-node::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 10px);translate:-50% 4px;width:max-content;max-width:230px;padding:8px 12px;border:1.5px solid #dccca6;border-radius:8px;background:#15110e;color:#f7f3ea;
 font:400 16px/1.3 var(--serif);white-space:pre-line;text-align:center;pointer-events:none;opacity:0;transition:opacity .12s,translate .12s;box-shadow:0 8px 22px rgb(0 0 0/.5)}
.st-node::first-line{font-weight:600}
.st-node:hover::after,.st-node:focus-visible::after{opacity:1;translate:-50% 0}
@keyframes st-pulse{to{box-shadow:0 0 0 6px rgb(192 57 43/.45)}}

/* cards: a framed card with its art on top (the piece it is about, or a sigil), the kind, the text, and a gem for
   its rarity. --rim: the frame; --glow: its light (r g b); --face: the card's own dark */
.st-cards{display:flex;flex-wrap:wrap;gap:18px;justify-content:center}
.st-card{--rim:#dccca6;--glow:220 204 166;--face:#211a14;position:relative;width:226px;min-height:316px;padding:0 16px 18px;border:2px solid var(--rim);border-radius:14px;color:#f7f3ea;
 display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;font:17px/1.36 var(--serif);
 background:radial-gradient(120% 60% at 50% 0,rgb(var(--glow)/.2),transparent 70%),var(--face);
 box-shadow:inset 0 0 0 4px #15110e,inset 0 0 0 5px rgb(var(--glow)/.42),0 12px 28px rgb(0 0 0/.6);transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s,rotate .18s}
.st-card h4{margin:14px 0 -2px;font:600 21px/1.1 var(--serif);font-variant:small-caps;letter-spacing:.06em;color:#f7f3ea;text-shadow:0 0 14px rgb(var(--glow)/.75),0 2px 4px #000;white-space:nowrap}
.st-cards.small .st-card h4{margin:0;font-size:17px;padding-right:34px;white-space:normal}
.st-art{width:104px;height:104px;margin-top:8px;border-radius:50%;display:grid;place-items:center;flex:none;color:rgb(var(--glow));
 background:radial-gradient(circle,rgb(var(--glow)/.4),rgb(var(--glow)/.1) 60%,rgb(0 0 0/.25) 72%);border:1.5px solid rgb(var(--glow)/.7);box-shadow:0 0 24px rgb(var(--glow)/.35),inset 0 0 20px rgb(0 0 0/.65)}
.st-art .st-pc{width:76px;height:76px;filter:drop-shadow(0 4px 6px rgb(0 0 0/.7))}
.st-art svg{width:74px;height:74px;filter:drop-shadow(0 0 6px rgb(var(--glow)/.7))}
.st-card small{font:600 14px/1.2 var(--serif);font-variant:small-caps;letter-spacing:.14em;color:rgb(var(--glow));display:flex;align-items:center;gap:8px;width:100%}
.st-card small::before,.st-card small::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,rgb(var(--glow)/.6))}
.st-card small::after{background:linear-gradient(270deg,transparent,rgb(var(--glow)/.6))}
.st-card p{margin:0;flex:1}
/* a card another card bites (owner, 2026-12-04): a struck red seal on its corner and its text dimmed; a card that does
   nothing any more is greyed out, its text struck through. Opened, it says by what (.st-hits, above the card) */
.st-hit{position:absolute;top:-11px;left:-11px;width:28px;height:28px;border-radius:50%;border:2px solid #d8432f;background:#15110e;box-shadow:0 0 0 3px #15110e,0 0 12px rgb(216 67 47/.7)}
.st-hit::before{content:"";position:absolute;left:50%;top:50%;width:2.5px;height:22px;background:#d8432f;translate:-50% -50%;rotate:45deg}
.st-card[data-hit] p{opacity:.5}
.st-card[data-hit=off]{filter:grayscale(.85) brightness(.72)}.st-card[data-hit=off] p{text-decoration:line-through}
.st-card[data-hit=off] .st-hit{filter:none}
.st-hits{position:absolute;left:0;right:0;bottom:calc(100% + 18px);text-align:center;font:19px/1.5 var(--serif)}.st-hits p{margin:0}
.st-hits b{font-weight:600;font-variant:small-caps;letter-spacing:.06em;color:#ecdcae}   /* (a card's name, in its rarity's color) */
.st-hits b.r-basic{color:#b9bcc4}.st-hits b.r-uncommon{color:#3fb8c4}.st-hits b.r-rare,.st-hits b.r-pact{color:#d8432f}.st-hits b.r-epic{color:#b48cff}.st-hits b.r-mythic{color:#e2b94d}.st-hits b.r-ultimate{color:#5aa8ff}.st-hits b.r-cursed{color:#f7f3ea}
.st-gem{position:absolute;left:50%;bottom:-9px;width:15px;height:15px;translate:-50% 0;rotate:45deg;background:var(--rim);border:2.5px solid #15110e;box-shadow:0 0 12px rgb(var(--glow)/.9)}
.st-card>.st-pc{position:absolute;right:8px;top:8px;width:30px;height:30px}
.st-card .st-row{justify-content:center}
/* basic: cold iron, matte and dim. common: warm, bright parchment. (then rare: blood; mythic: gold; cursed: black and white) */
.st-card.r-basic{--rim:#67696e;--glow:128 134 146;--face:#17181b}
.st-card.r-basic .st-art{box-shadow:inset 0 0 20px rgb(0 0 0/.7)}
.st-card.r-basic .st-gem{box-shadow:none}
.st-card.r-basic h4{text-shadow:0 2px 4px #000;color:#cfd2d8}
.st-card.r-common{--rim:#ecdcae;--glow:236 220 174;--face:#2a2117}
/* the ladder (owner, 2026-12-02): cream, teal, red, violet, gold, blue */
.st-card.r-uncommon{--rim:#3fb8c4;--glow:63 184 196;--face:#0b1d21}
.st-card.r-rare{--rim:#c0392b;--glow:216 67 47;--face:#261411}
/* a Devil Contract (owner, 2026-12-04): blood red like a rare card, and it glows: a slow red breath around it and in its seal */
.st-card.r-pact{--rim:#c0392b;--glow:216 67 47;--face:#200c0b}
.st-card.r-pact::after{content:"";position:absolute;inset:-2px;border-radius:inherit;pointer-events:none;box-shadow:0 0 30px 3px rgb(216 67 47/.7),inset 0 0 26px rgb(216 67 47/.28);animation:st-pact 2.4s ease-in-out infinite alternate}
.st-card.r-pact .st-art svg{filter:drop-shadow(0 0 10px rgb(216 67 47))}
@keyframes st-pact{from{opacity:.3}to{opacity:1}}
.st-card.r-epic{--rim:#b48cff;--glow:160 116 255;--face:#170d2e}
.st-card.r-mythic{--rim:#e2b94d;--glow:232 190 84;--face:#3d100c}
/* the final battle's card in the test room: blue, a rarity of its own (owner) */
.st-card.r-final{--rim:#7fb2ff;--glow:110 165 255;--face:#0c1730}
/* ultimate: beyond gold: a deep blue card with an ice-blue rim and the mythic's sheen, colder */
.st-card.r-ultimate{--rim:#5aa8ff;--glow:70 150 255;--face:#06122e}
.st-card.r-ultimate h4{color:#e6f1ff;text-shadow:0 0 14px rgb(70 150 255/.85),0 2px 4px #000}
.st-card.r-ultimate::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(115deg,transparent 42%,rgb(200 225 255/.26) 50%,transparent 58%) 132% 0/220% 100% no-repeat;animation:st-sheen 2.6s ease-in-out infinite;pointer-events:none}
.st-card.gone.soldout{display:grid;place-items:center;opacity:.55}.st-card.gone.soldout span{font:600 17px/1 var(--serif);font-variant:small-caps;letter-spacing:.1em}
/* the mythic's sheen: a band of light crossing the card. It is the layer's own background that moves, so the card needs
   no clipping, and its diamond sits on the bottom edge like every other card's (owner) */
.st-card.r-mythic::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(115deg,transparent 44%,rgb(255 236 170/.2) 50%,transparent 56%) 132% 0/220% 100% no-repeat;animation:st-sheen 3.4s ease-in-out infinite;pointer-events:none}
@keyframes st-sheen{from{background-position:132% 0}60%,to{background-position:-32% 0}}
/* (owner, 2026-12-02: the deck was laggy with many cards; "when you have a lot it glows less") in a fan only the card
   on top and the one under the mouse shine; the rest hold still (a paused sheen is off the card, and costs nothing) */
.st-fan .st-card::before{animation-play-state:paused}
.st-fan .st-card:last-of-type::before,.st-fan.open .st-card:hover::before{animation-play-state:running}
.st-card.r-cursed{--rim:#f7f3ea;--glow:247 243 234;--face:#000}
/* the Apothecary's three choices, and the potions panel */
.st-choices{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin:6px 0 18px}
.st-screen .st-choice{display:flex;flex-direction:column;align-items:center;gap:8px;width:190px;padding:22px 16px 18px;border:2px solid #dccca6;border-radius:16px;background:#1d1813;color:#f7f3ea;font:inherit}
.st-screen .st-choice .st-ic,.st-screen .st-choice svg{width:40px;height:40px}.st-screen .st-choice b{font-size:22px}.st-screen .st-choice span{opacity:.7;font-size:15px}
.st-screen .st-choice:disabled{opacity:.45}.st-screen .st-choice:not(:disabled):hover{border-color:#f7f3ea;background:#2a2117}
.st-potpop{position:fixed;z-index:70;width:max-content;max-width:calc(100vw - 16px);padding:12px;border:1.5px solid #dccca6;border-radius:12px;background:#15110e;box-shadow:0 10px 30px rgb(0 0 0/.6);display:flex;flex-direction:column;gap:8px;animation:st-potin .16s ease-out}
.st-potpop::after{content:"";position:absolute;left:var(--tip);bottom:-8px;width:14px;height:14px;margin-left:-7px;background:#15110e;border:1.5px solid #dccca6;border-top:0;border-left:0;rotate:45deg}   /* the pointer, down to the flask */
.st-potpop.below::after{bottom:auto;top:-8px;rotate:225deg}
.st-potpop.out{opacity:0;transition:opacity .15s}
@keyframes st-potin{from{opacity:0;translate:0 6px}}
.st-potpop .st-cards{zoom:.68;gap:16px}   /* the potion cards, as on the old big panel, only smaller */
.st-potpop .st-note{margin:2px 4px 0;font-size:14px;text-align:center}
.st-loot span.popped::after{display:none}   /* the flask's own tip steps aside while its popup is open */
/* a potion is asking for a square: the flask is lit and says, without a hover, how to cancel */
.st-loot span.picking{border-color:#e2b94d;box-shadow:0 0 18px rgb(226 185 77/.45)}
.st-loot span.picking::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 10px);translate:-50% 0;width:max-content;max-width:170px;padding:8px 12px;z-index:3;color:#f7f3ea;text-shadow:none;border:1.5px solid #dccca6;border-radius:8px;background:#15110e;
 font:400 16px/1.3 var(--serif);text-align:center;pointer-events:none;opacity:1;box-shadow:0 8px 22px rgb(0 0 0/.5)}
.st-loot span[data-act]{cursor:pointer}
body.story-battle.story-eval #evalbar{display:block}
.st-card.r-cursed .st-art .st-pc{filter:grayscale(1) contrast(1.2) drop-shadow(0 0 8px #c0392b)}
.st-card.gone{border-style:dashed;opacity:.2;background:none;box-shadow:none}
.st-card[data-card]{cursor:pointer}
.st-main .st-card[data-card]:hover{transform:translateY(-6px);box-shadow:inset 0 0 0 4px #15110e,inset 0 0 0 5px rgb(var(--glow)/.7),0 18px 34px rgb(0 0 0/.7),0 0 30px rgb(var(--glow)/.4)}
/* the small cards (the test room, lists): no art, the piece in the corner, every card the same size */
.st-cards.small{align-items:stretch}   /* small cards grow with their text; a row's cards are equally tall */
.st-cards.small .st-card{width:172px;height:auto;min-height:150px;flex:none;font-size:16px;padding:12px;align-items:flex-start;text-align:left;gap:8px}
.st-cards.small .st-art{position:absolute;right:8px;top:8px;width:30px;height:30px;margin:0;border:0;box-shadow:none;background:none}
.st-cards.small .st-art .st-pc,.st-cards.small .st-art svg{width:30px;height:30px}
.st-cards.small .st-card small{width:auto;padding-right:34px;letter-spacing:.04em}.st-cards.small .st-card small::before,.st-cards.small .st-card small::after,.st-cards.small .st-gem{display:none}
.st-screen button.st-card{border-radius:14px;cursor:pointer}
.st-was{position:relative;text-decoration:none;opacity:.6;margin-right:4px}.st-was::after{content:'';position:absolute;left:-18%;right:-18%;top:50%;height:2px;background:#c0392b;border-radius:2px;transform:rotate(-18deg)}

/* the start of a run: two framed panels side by side (who you are, the ascension), on the dark stage */
.st-screen.start{background:radial-gradient(90% 70% at 50% 20%,#3a0c08 0,#15110e 58%,#0b0908 100%)}
.st-start{max-width:1180px;min-height:100vh;justify-content:center;gap:22px;padding-top:26px;padding-bottom:40px}
.st-startgrid{display:flex;gap:22px;justify-content:center;align-items:stretch;flex-wrap:wrap;width:100%}
.st-frame{flex:1 1 420px;max-width:540px;display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px 22px 26px;border:1.5px solid rgb(220 204 166/.45);border-radius:20px;
 background:linear-gradient(rgb(27 21 16/.9),rgb(21 17 14/.75));box-shadow:inset 0 0 0 5px #15110e,inset 0 0 0 6px rgb(220 204 166/.16),0 24px 60px rgb(0 0 0/.65);animation:st-rise .6s cubic-bezier(.2,.8,.2,1) backwards}
.st-frame.st-asc{animation-delay:.12s}
.st-frame>small,.st-pane>small{font:600 16px/1 var(--serif);font-variant:small-caps;letter-spacing:.18em;color:#d8432f}
.st-whoami{gap:26px;padding-bottom:34px}.st-whoami .st-signs{margin-top:auto}.st-whoami::after{content:'';margin-top:auto}   /* the signs and the name sit in the middle of whatever height the other panel gives */
.st-optwrap{min-height:76px;display:grid;place-items:center}   /* the pool's place is kept, so opening it moves nothing */   /* (owner, 2026-12-04: "less squished": larger signs, more air between them and around the name) */
.st-whoami{container-type:inline-size}
.st-whoami .st-signs{--g:23px;--d:min(76px,calc((100cqw - 4*var(--g))/5.2));display:flex;flex-direction:column;align-items:center;gap:0;margin-bottom:6px}   /* thirteen signs, a honeycomb of 4, 5, 4 (owner, 2026-12-04): each row sits in the gaps of the one above; five across always fit the panel */
.st-hrow{display:flex;gap:var(--g)}.st-hrow+.st-hrow{margin-top:calc((var(--d) + var(--g))*.866 - var(--d))}
.st-whoami .st-sign .st-medal.big{width:var(--d);height:var(--d)}.st-whoami .st-sign .st-medal.big .st-pc{width:calc(var(--d)*.69);height:calc(var(--d)*.69)}
.st-whoami button.st-sign.on{scale:1.07;z-index:1}   /* (the chosen one's red ring stays clear of its neighbors' rings: owner, 2026-12-04) */
/* the second panel: its body (the ascension, or the archons) and two quiet tabs along the bottom */
.st-tabbody{flex:1;width:100%;display:grid}   /* both tabs lie in the one cell, so the panel is as tall as the taller and never changes with the tab (owner, 2026-12-04) */
.st-pane{grid-area:1/1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:16px;transition:opacity .28s}
.st-pane.off{visibility:hidden;opacity:0;pointer-events:none}
.st-screen .st-tabs{display:flex;gap:38px;justify-content:center;width:100%;margin-top:auto;padding-top:16px;border-top:1px solid rgb(220 204 166/.18)}
.st-screen .st-tabs button,.st-collection .st-tabs button{position:relative;border:0;border-radius:0;background:none;padding:2px 2px 9px;font:600 15px/1 var(--serif);font-variant:small-caps;letter-spacing:.18em;color:#f7f3ea;opacity:.42;transition:opacity .15s}
.st-screen .st-tabs button:hover,.st-collection .st-tabs button:hover{color:#f7f3ea;opacity:.8}.st-screen .st-tabs button.on,.st-collection .st-tabs button.on{opacity:1}
.st-tabs button::after{content:'';position:absolute;left:50%;right:50%;bottom:0;height:2px;border-radius:2px;background:#c0392b;box-shadow:0 0 10px rgb(192 57 43/.8);transition:left .25s cubic-bezier(.2,.8,.2,1),right .25s cubic-bezier(.2,.8,.2,1)}
.st-tabs button.on::after{left:0;right:0}
/* the archons: two royals above three nobles; a click on one opens its pool under them */
/* the lineup: the two royals above, larger, each under its bent name; the three nobles below in a shallow bow over theirs
   (owner, 2026-12-04; the sizes here are the ones story.js archonPanel counts with). Each sways a little and sends out a
   ring now and then, one after the other, so you want to click one; once one is chosen the rings stop. */
.st-lineup{position:relative;display:flex;flex-direction:column;align-items:center;gap:30px;margin:30px 0 0}
/* your hans, three down each side of the archons in a shallow bow (owner, 2026-12-04); a click on any opens their looks. --x from the middle, --y from the royals' tops */
.st-screen button.st-hanbtn{position:absolute;left:calc(50% + var(--x));top:var(--y);translate:-50% -50%;border:0;border-radius:50%;background:none;padding:0;color:#f7f3ea;transition:scale .2s cubic-bezier(.2,.8,.2,1);animation:st-hanbob 4s ease-in-out infinite;animation-delay:calc(var(--k)*-.65s)}
.st-hanbtn.h0{--x:-178px;--y:12px}.st-hanbtn.h1{--x:-198px;--y:121px}.st-hanbtn.h2{--x:-178px;--y:230px}
.st-hanbtn.h3{--x:178px;--y:12px}.st-hanbtn.h4{--x:198px;--y:121px}.st-hanbtn.h5{--x:178px;--y:230px}
.st-hanbtn .st-medal{width:42px;height:42px;border-width:1.5px;box-shadow:0 0 0 3px #15110e,0 0 0 4px rgb(220 204 166/.4);opacity:.8;transition:opacity .15s}.st-hanbtn .st-medal .st-pc{width:29px;height:29px}
.st-screen button.st-hanbtn:hover{scale:1.1;color:#f7f3ea}.st-lineup:has(.st-hanbtn:hover) .st-hanbtn .st-medal,.st-hanbtn.on .st-medal{opacity:1}
.st-lineup:has(.st-hanbtn:hover) .st-hanbtn .st-medal{box-shadow:0 0 0 3px #15110e,0 0 0 4px #f7f3ea,0 0 22px rgb(247 243 234/.4)}
.st-hanbtn.on .st-medal,.st-lineup:has(.st-hanbtn:hover) .st-hanbtn.on .st-medal{border-color:#c0392b;box-shadow:0 0 0 3px #15110e,0 0 0 4.5px #c0392b,0 0 24px rgb(192 57 43/.7)}
.st-hanbtn .st-medal.new{animation:st-swap .32s cubic-bezier(.2,.8,.2,1)}
@keyframes st-hanbob{50%{translate:-50% calc(-50% - 3px)}}
.st-lrow{position:relative;display:flex;gap:58px;justify-content:center;align-items:flex-start}
.st-lrow.noble{gap:26px;margin-bottom:36px}.st-lrow.noble .st-slot:nth-child(2){margin-top:20px}
.st-screen button.st-slot{--grow:1.2;position:relative;border:0;border-radius:50%;background:none;padding:0;color:#f7f3ea;transition:scale .2s cubic-bezier(.2,.8,.2,1);animation:st-bob 4s ease-in-out infinite;animation-delay:calc(var(--k)*-.8s)}
.st-screen button.st-slot.royal{--grow:1.11}
/* a piece's own ascension, a small seal on its medal (owner, 2026-12-05: the archons and the han type level up, not the profile) */
.st-lvl{position:absolute;right:-4px;bottom:-4px;z-index:2;box-sizing:border-box;min-width:26px;height:26px;padding:0 5px;border-radius:13px;display:grid;place-items:center;background:#c0392b;border:1.5px solid #15110e;box-shadow:0 0 0 1px rgb(220 204 166/.55),0 3px 8px rgb(0 0 0/.6);font:600 15px/1 var(--serif);font-style:normal;font-variant-numeric:lining-nums;color:#f7f3ea;pointer-events:none}
.st-hanbtn .st-lvl,.st-opt .st-lvl{min-width:22px;height:22px;font-size:13px;right:-6px;bottom:-6px}
.st-screen button.st-slot:hover{scale:1.07;color:#f7f3ea}
.st-slot::after{content:'';position:absolute;inset:-6px;border-radius:50%;border:1.5px solid #dccca6;opacity:0;pointer-events:none;animation:st-ring 4s cubic-bezier(.2,.6,.3,1) infinite;animation-delay:inherit}
.st-lineup:has(.st-slot.on) .st-slot::after{animation:none}
.st-slot .st-medal.big{width:78px;height:78px}.st-slot .st-medal.big .st-pc{width:54px;height:54px}
.st-slot.royal .st-medal.big{width:104px;height:104px}.st-slot.royal .st-medal.big .st-pc{width:72px;height:72px}
.st-slot:hover .st-medal{box-shadow:0 0 0 4px #15110e,0 0 0 5.5px #f7f3ea,0 0 38px rgb(247 243 234/.45)}
.st-slot.on .st-medal{border-color:#c0392b;box-shadow:0 0 0 4px #15110e,0 0 0 6px #c0392b,0 0 40px rgb(192 57 43/.7)}
.st-slot .st-medal.new{animation:st-swap .32s cubic-bezier(.2,.8,.2,1)}
.st-larc{position:absolute;left:50%;top:50%;translate:-50% -50%;overflow:visible;pointer-events:none}
.st-larc text{font:600 15px var(--serif);font-variant:small-caps;letter-spacing:.2em;fill:#dccca6;opacity:.75;transition:opacity .2s,fill .2s}
.st-slot:hover .st-larc text,.st-slot.on .st-larc text,.st-lrow:has(.st-slot:hover,.st-slot.on)>.st-larc text{opacity:1;fill:#f7f3ea}
@keyframes st-bob{50%{translate:0 -4px}}
@keyframes st-ring{0%{scale:1;opacity:0}10%{opacity:.6}55%,100%{scale:var(--grow);opacity:0}}
@keyframes st-swap{from{scale:.72;opacity:.3}}
.st-opts{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;padding:10px 16px;border:1px solid rgb(220 204 166/.2);border-radius:999px;background:rgb(0 0 0/.3);animation:st-rise .28s cubic-bezier(.2,.8,.2,1)}
.st-screen button.st-opt{position:relative;border:0;border-radius:50%;background:none;padding:0;color:#f7f3ea;transition:scale .15s}
.st-opt .st-medal{width:52px;height:52px;border-width:1.5px;opacity:.6;transition:opacity .15s}.st-opt .st-medal .st-pc{width:36px;height:36px}
.st-screen button.st-opt:hover{scale:1.08;color:#f7f3ea}.st-opt:hover .st-medal,.st-opt.on .st-medal{opacity:1}
.st-opt.on .st-medal{border-color:#c0392b;box-shadow:0 0 0 2px #15110e,0 0 0 3.5px #c0392b}
.st-opt.locked .st-medal{opacity:.3}.st-screen button.st-opt.locked:hover{scale:1}
.st-opt .st-ic{position:absolute;right:-4px;bottom:-4px;width:20px;height:20px;padding:3px;box-sizing:border-box;border-radius:50%;background:#15110e;opacity:.85}
.st-opt.shake{animation:st-no .4s}
@media(max-width:560px){.st-whoami .st-signs{--g:19px}.st-whoami button.st-sign.on{scale:1}.st-lineup{zoom:.8}.st-hanbtn.h0,.st-hanbtn.h2{--x:-166px}.st-hanbtn.h3,.st-hanbtn.h5{--x:166px}.st-hanbtn.h1{--x:-180px}.st-hanbtn.h4{--x:180px}.st-opts{gap:8px;padding:8px 10px}.st-opt .st-medal{width:44px;height:44px}.st-opt .st-medal .st-pc{width:30px;height:30px}}
.st-ladder{display:grid;grid-template-columns:repeat(11,1fr);gap:5px;width:100%}   /* eleven steps, 0-10, in one row */
.st-screen .st-ladder button{aspect-ratio:1;padding:0;justify-content:center;border-radius:10px;font:600 19px/1 var(--serif);font-variant-numeric:lining-nums;border-color:rgb(220 204 166/.5);background:linear-gradient(#2a2119,#15110e);transition:scale .15s,box-shadow .15s,border-color .15s}
.st-screen .st-ladder button:hover:not(:disabled){scale:1.08;color:#f7f3ea;border-color:#f7f3ea}
.st-screen .st-ladder button.on{background:#c0392b;border-color:#c0392b;color:#f7f3ea;box-shadow:0 0 0 3px #15110e,0 0 0 4.5px #c0392b,0 0 30px rgb(192 57 43/.7);scale:1.1}
.st-screen .st-ladder button.locked{opacity:.4}.st-ladder .st-ic{width:15px;height:15px}
.st-asc h3{margin:6px 0 0;font:600 30px/1.1 var(--serif);font-variant:small-caps;letter-spacing:.05em}
.st-asclist{list-style:none;margin:0;padding:0;width:100%;display:flex;flex-direction:column;gap:7px;text-align:left;font-size:18px;line-height:1.3}
.st-asclist li{display:flex;gap:12px;align-items:baseline;opacity:.62}
.st-asclist li b{flex:none;width:1.5em;height:1.5em;display:grid;place-items:center;border:1.5px solid rgb(220 204 166/.5);border-radius:50%;font:600 15px/1 var(--serif);font-variant-numeric:lining-nums}
.st-asclist li.new{opacity:1}.st-asclist li.new b{background:#c0392b;border-color:#c0392b}
.st-unlocked{margin:0;font:600 24px/1.2 var(--serif);font-variant:small-caps;letter-spacing:.08em;color:#e2b94d;text-shadow:0 0 18px rgb(226 185 77/.6)}
/* the rewards: three reels in a frame, like a slot machine. A reel is a window one card high; its strip (the card it
   stops on, then the ones that run past: story.js REEL_FILL) slides down into place, the reels stopping left to right */
.st-screen.prize{background:radial-gradient(80% 60% at 50% 20%,#3a0c08 0,#1a100c 50%,#0b0908 100%)}
.st-main.st-prize{min-height:100vh;justify-content:center;gap:10px;padding-top:20px;padding-bottom:36px}   /* (the reward screen only: a hunt's tile in the HUD is .st-prize too, and was a screen high) */
.st-main.st-prize h1.st-doom{font-size:clamp(34px,5.4vw,72px)}
.st-slots{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;padding:12px;border:2px solid #dccca6;border-radius:24px;background:linear-gradient(#241a13,#120e0b);
 box-shadow:inset 0 0 0 5px #15110e,inset 0 0 0 6.5px rgb(226 185 77/.45),0 0 60px rgb(192 57 43/.25),0 26px 60px rgb(0 0 0/.75)}
.st-reel{--h:352px;--step:376px;position:relative;width:224px;height:calc(var(--h) + 24px);padding:12px 6px;box-sizing:border-box;overflow:hidden;border-radius:16px;background:#0b0908;
 box-shadow:inset 0 14px 22px -8px #000,inset 0 -14px 22px -8px #000,inset 0 0 0 1.5px rgb(220 204 166/.25)}
.st-reel.empty{opacity:.35}
.st-strip{display:flex;flex-direction:column;gap:24px}
.st-reel .st-card{height:var(--h);min-height:0;flex:none;width:212px;box-sizing:border-box;padding-left:12px;padding-right:12px}
.st-reel .st-card:not([data-final]){pointer-events:none}
.st-reel.spin{pointer-events:none}
.st-reel.spin .st-strip{animation:st-reel calc(1s + var(--i)*.48s) cubic-bezier(.1,.7,.2,1.03) backwards}
@keyframes st-reel{from{transform:translateY(calc(var(--step)*-7));filter:blur(5px)}70%{filter:blur(2px)}to{transform:translateY(0);filter:none}}
.st-reel.landed{animation:st-landed .45s ease-out}
@keyframes st-landed{from{box-shadow:inset 0 0 0 1.5px rgb(226 185 77/.75),0 0 14px rgb(226 185 77/.3)}}   /* a reel stops: a short, quiet glint (owner: the bright flash was too much) */
.st-main .st-reel .st-card[data-final]:hover{transform:none}
@media(max-width:820px){.st-reel{--h:300px;--step:324px;width:180px}.st-reel .st-card{width:168px;font-size:15px}.st-slots{gap:8px;padding:10px}}
/* the banquet: a warm stage, three coffers */
.st-screen.deal.banquet,.st-screen.deal.gift{background:radial-gradient(80% 60% at 50% 24%,#4a3312 0,#1f160c 48%,#0b0908 100%)}
.st-banquet h1.st-doom,.st-gift h1.st-doom{color:#e2b94d;text-shadow:0 0 40px rgb(226 185 77/.55),0 6px 0 #15110e}
.st-coffers{display:flex;gap:clamp(16px,4vw,54px);justify-content:center;flex-wrap:wrap;margin:14px 0 6px}
.st-screen button.st-coffer{flex-direction:column;gap:6px;width:190px;padding:14px 10px 16px;border-radius:18px;border:1.5px solid rgb(220 204 166/.4);background:linear-gradient(rgb(27 21 16/.85),rgb(21 17 14/.6));
 box-shadow:inset 0 0 0 4px #15110e,inset 0 0 0 5px rgb(226 185 77/.2),0 18px 40px rgb(0 0 0/.65);opacity:1;justify-content:flex-end;transition:translate .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s,border-color .2s,opacity .5s,scale .4s,filter .5s;animation:st-rise .6s cubic-bezier(.2,.8,.2,1) backwards}
.st-coffer:nth-child(2){animation-delay:.1s}.st-coffer:nth-child(3){animation-delay:.2s}
.st-cofferart{width:150px;height:138px;filter:drop-shadow(0 10px 12px rgb(0 0 0/.6));transition:scale .2s}
.st-coffer span{font:600 20px/1.2 var(--serif);font-variant:small-caps;letter-spacing:.08em;min-height:1.2em}
.st-screen button.st-coffer:hover:not(:disabled){translate:0 -10px;border-color:#e2b94d;color:#f7f3ea;box-shadow:inset 0 0 0 4px #15110e,inset 0 0 0 5px rgb(226 185 77/.5),0 26px 46px rgb(0 0 0/.7),0 0 40px rgb(226 185 77/.4)}
.st-screen button.st-coffer:hover:not(:disabled) .st-cofferart{scale:1.06}
.st-screen button.st-coffer.open{opacity:1;border-color:#e2b94d;scale:1.08;box-shadow:inset 0 0 0 4px #15110e,inset 0 0 0 5px rgb(226 185 77/.6),0 0 60px 6px rgb(226 185 77/.5);animation:st-pop .5s cubic-bezier(.2,1.4,.4,1)}
.st-screen button.st-coffer.left{opacity:.28;scale:.9;filter:grayscale(.7)}
@keyframes st-pop{from{scale:.9}60%{scale:1.16}}
.st-who .st-medal.gain{animation:st-gain .55s cubic-bezier(.2,.8,.2,1)}
/* (until 2026-12-04 the sign went away and the gaps shrank once a chest was open, to fit one screen: that moved the table under the mouse. Now nothing moves, and the screen glides down to what you won: story.js show) */
/* the laid table (owner, 2026-12-04): a wine cloth with a gold hem and two candles. The chests stand on it in one line,
   all the same size; what a chest holds is written on the cloth under it. A chest whose inside is known stands open */
.st-table{position:relative;width:min(100%,820px);margin:4px 0 2px;padding:0 clamp(6px,3vw,44px) 36px}
.st-table::before{content:"";position:absolute;inset:112px 0 0;border-radius:16px 16px 0 0;
 background:linear-gradient(#0000 calc(100% - 30px),rgb(226 185 77/.6) calc(100% - 30px) calc(100% - 28px),#0000 calc(100% - 28px)),
  radial-gradient(60% 46px at 50% 0,rgb(243 217 138/.3),#0000),linear-gradient(#93342a 0,#701f17 34px,#0000 34px),
  repeating-linear-gradient(90deg,#0000 0 58px,rgb(0 0 0/.18) 58px 66px,rgb(255 255 255/.04) 66px 72px),linear-gradient(#57180f,#3b100a);
 -webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - 12px) no-repeat,radial-gradient(circle 12px at 50% 0,#000 96%,#0000) bottom/24px 12px repeat-x;
 mask:linear-gradient(#000 0 0) top/100% calc(100% - 12px) no-repeat,radial-gradient(circle 12px at 50% 0,#000 96%,#0000) bottom/24px 12px repeat-x}
.st-table .st-coffers{position:relative;flex-wrap:nowrap;align-items:flex-start;gap:0;margin:0}
.st-screen .st-table button.st-coffer{flex:1 1 0;min-width:0;width:auto;height:262px;padding:0 4px;gap:6px;border:0;border-radius:14px;background:none;box-shadow:none;justify-content:flex-start;overflow:visible}
.st-table .st-cofferart{flex:none;width:min(150px,100%);height:138px;margin-bottom:10px}
.st-table .st-coffer span{min-height:0;text-shadow:0 2px 0 rgb(0 0 0/.45)}.st-table .st-chesttip{margin-top:0}
@media(max-width:560px){.st-screen .st-table button.st-coffer{height:286px}.st-table .st-coffer.seen span{font-size:16px;letter-spacing:.04em}.st-table .st-chesttip{font-size:13px}}
.st-table .st-coffer:not(.seen) span{font-size:44px;line-height:1.5;opacity:.8}
.st-screen .st-table button.st-coffer:hover:not(:disabled){translate:none;box-shadow:none;color:#f7f3ea}
.st-screen .st-table button.st-coffer:hover:not(:disabled) .st-cofferart{scale:1.08;translate:0 -6px;filter:drop-shadow(0 14px 12px rgb(0 0 0/.6)) drop-shadow(0 0 16px rgb(226 185 77/.7))}
.st-table .st-coffer.seen:not(.left) .st-cofferart{filter:drop-shadow(0 10px 12px rgb(0 0 0/.6)) drop-shadow(0 0 12px rgb(243 217 138/.45))}
.st-screen .st-table button.st-coffer.open{scale:1;box-shadow:none;animation:none}
.st-table .st-coffer.open .st-cofferart{scale:1.16;translate:0 -8px;filter:drop-shadow(0 14px 12px rgb(0 0 0/.6)) drop-shadow(0 0 26px rgb(243 217 138/.9));animation:st-pop .5s cubic-bezier(.2,1.4,.4,1)}
.st-screen .st-table button.st-coffer.left{scale:1;opacity:.4;filter:grayscale(.6)}
.st-candle{flex:none;width:clamp(18px,4vw,38px);height:138px;overflow:visible;filter:drop-shadow(0 8px 8px rgb(0 0 0/.5))}
.st-flame{transform-box:fill-box;transform-origin:50% 100%;animation:st-candle 1.9s ease-in-out infinite alternate}.st-candle+.st-coffer+.st-candle .st-flame{animation-delay:-.8s}
.st-halo{transform-box:fill-box;transform-origin:center;animation:st-halo 1.9s ease-in-out infinite alternate}
@keyframes st-candle{0%{transform:scale(1) rotate(-3deg)}35%{transform:scale(.92,1.08) rotate(2deg)}70%{transform:scale(1.05,.95) rotate(-1deg)}100%{transform:scale(.96,1.04) rotate(3deg)}}
@keyframes st-halo{from{opacity:.16;transform:scale(.94)}to{opacity:.28;transform:scale(1.06)}}
@media(prefers-reduced-motion:reduce){.st-flame,.st-halo{animation:none}}
/* a gift chest: one chest, one sure prize */
.st-screen button.st-giftbox{width:220px;border-color:#e2b94d;box-shadow:0 0 0 4px #15110e,0 0 0 5.5px rgb(226 185 77/.5),0 0 40px rgb(226 185 77/.35);animation:st-ember 2.2s ease-in-out infinite alternate}
.st-giftbox .st-pc{width:96px;height:96px}.st-giftbox span{font:600 22px/1 var(--serif);font-variant:small-caps;letter-spacing:.1em}
.st-node.gift{border-color:#e2b94d!important;box-shadow:0 0 0 4px #15110e,0 0 18px rgb(226 185 77/.55)}
.st-screen button.st-node.gift.done,.st-screen button.st-node.gift.past{box-shadow:none}   /* done, or gone by: no glow (owner) */
/* who are you: the six signs and a name */
.st-signs{display:flex;flex-wrap:wrap;justify-content:center;gap:40px;margin:14px 0 18px}
.st-sign .st-medal.big{width:88px;height:88px}.st-sign .st-medal.big .st-pc{width:60px;height:60px}
.st-id>button{width:min(340px,82vw);justify-content:center;padding:14px 18px;font-size:22px}   /* the same size as the name field */
.st-screen button.st-sign{border:0;padding:0;border-radius:50%;opacity:.5;transition:opacity .15s,scale .15s}
.st-screen button.st-sign:hover{opacity:.9;scale:1.06}
.st-screen button.st-sign.on{opacity:1;scale:1.12}
.st-sign.on .st-medal{border-color:#c0392b;box-shadow:0 0 0 4px #15110e,0 0 0 6px #c0392b,0 0 46px rgb(192 57 43/.75)}
/* your color (owner, 2026-12-05): six swatches under the signs; it is the chosen sign's ring here, and your medal's rim and glow everywhere (.st-medal.mine) */
.st-whoami .st-sign.on .st-medal{border-color:var(--mine);box-shadow:0 0 0 4px #15110e,0 0 0 6px var(--mine),0 0 46px color-mix(in srgb,var(--mine) 75%,transparent)}
.st-medal.mine{border-color:var(--mine,#dccca6);box-shadow:0 0 0 4px #15110e,0 0 0 5.5px color-mix(in srgb,var(--mine,#dccca6) 45%,transparent),0 0 30px color-mix(in srgb,var(--mine,#dccca6) 26%,transparent),inset 0 -8px 16px rgb(0 0 0/.55)}
.st-hues{display:flex;justify-content:center;gap:14px;margin:-4px 0 -6px}
.st-screen button.st-hue{width:36px;height:36px;padding:0;border-radius:50%;border:2px solid #15110e;background:var(--c);box-shadow:0 0 0 1.5px rgb(220 204 166/.3);opacity:.8;transition:opacity .15s,scale .15s,box-shadow .15s}
.st-screen button.st-hue:hover{opacity:.9;scale:1.1}
.st-screen button.st-hue.on{opacity:1;scale:1.15;box-shadow:0 0 0 2px #f7f3ea,0 0 18px var(--c)}
#stName{width:min(340px,82vw);padding:12px 18px;border:1.5px solid #dccca6;border-radius:999px;background:#1d1813;color:#f7f3ea;font:600 24px/1.2 var(--serif);text-align:center;outline:none}
#stName:focus{border-color:#c0392b;box-shadow:0 0 0 3px rgb(192 57 43/.3)}
#stName::placeholder{color:#f7f3ea;opacity:.4;font-weight:400}
/* the seed: empty is a random one; Daily fills in today's (owner, 2026-12-02) */
.st-whoami{position:relative}
.st-screen .st-cog{position:absolute;top:14px;right:14px;width:38px;height:38px;padding:0;justify-content:center;border-color:transparent;background:none;opacity:.4;transition:opacity .15s,rotate .3s}.st-screen .st-cog:hover{opacity:.8}.st-screen .st-cog.on{opacity:.9;rotate:60deg;color:#d8432f}.st-cog .st-ic{width:22px;height:22px}
.st-fineline{margin:-6px 0 0;min-height:1.2em;font-size:15px}
.st-ascnum .st-plus{position:absolute;right:-12px;top:-12px;padding:2px 7px;border-radius:999px;background:#15110e;border:1.5px solid #c0392b;font:600 14px/1.2 var(--serif);font-variant-numeric:lining-nums;font-style:normal;color:#f7f3ea}
/* the cog's box: the seed and the difficulty bonus */
.st-fine .st-panel{width:min(420px,100%);gap:10px}
.st-finelab{display:flex;flex-direction:column;gap:2px;margin-top:8px;font:600 17px/1.2 var(--serif);font-variant:small-caps;letter-spacing:.12em;color:#d8432f;text-align:left}
.st-finelab span{font:400 15px/1.3 var(--serif);letter-spacing:0;font-variant:normal;color:#f7f3ea;opacity:.7}
.st-seedrow{display:flex;gap:8px;align-items:center;justify-content:flex-start}
.st-over .st-panel .st-seedrow button{padding:8px 14px;font-size:16px;border-radius:999px}
.st-bonus{display:flex;align-items:center;justify-content:center;gap:18px;margin:4px 0}
.st-over .st-panel .st-bonus button{width:46px;height:46px;padding:0;justify-content:center;border-radius:50%;font:400 30px/1 var(--serif);border-color:rgb(220 204 166/.5);background:none}.st-over .st-panel .st-bonus button:disabled{opacity:.2}
.st-bonusval{min-width:2.3em;text-align:center;font:600 34px/1 var(--serif);font-variant-numeric:lining-nums}.st-bonusval.locked{opacity:.45}
.st-fine .st-bonusnote{margin:-4px 0 4px}
/* the collection: shelves by rarity, unseen cards as dark backs */
.st-screen .st-collect{position:absolute;left:50%;bottom:12px;translate:-50% 0;border-color:transparent;background:none;font-size:16px;opacity:.6}.st-screen .st-collect{font-variant:small-caps;letter-spacing:.1em;transition:opacity .2s,text-shadow .2s,letter-spacing .25s}.st-screen .st-main button.st-collect:hover{opacity:1;border-color:transparent;color:#f7f3ea;letter-spacing:.16em;text-shadow:0 0 16px rgb(247 243 234/.6)}   /* (owner, 2026-12-05: no pill outline on hover, "another rounded small button": the words glow and spread, like Onward) */   /* at the panel's foot, where the other panel has its tabs (owner, 2026-12-04) */
.st-collection{padding-bottom:50px;background:rgb(8 6 5/.985)}
.st-shelf{width:min(1180px,100%);margin:0 auto;padding:10px 16px 20px}
.st-shelf h3{margin:14px 0 12px;font:600 22px/1.2 var(--serif);font-variant:small-caps;letter-spacing:.1em;color:var(--rim,#dccca6)}.st-shelf h3 span{opacity:.55;font-size:17px;margin-left:8px}
.st-shelf h3.r-basic{--rim:#9aa0a8}.st-shelf h3.r-common{--rim:#ecdcae}.st-shelf h3.r-uncommon{--rim:#3fb8c4}.st-shelf h3.r-rare{--rim:#d8432f}.st-shelf h3.r-epic{--rim:#b48cff}.st-shelf h3.r-mythic{--rim:#e2b94d}.st-shelf h3.r-ultimate{--rim:#5aa8ff}.st-shelf h3.r-cursed{--rim:#c0392b}.st-shelf h3.r-pact{--rim:#d8432f;text-shadow:0 0 16px rgb(216 67 47/.6)}
.st-shelf .st-cards{justify-content:flex-start}
/* a card you have seen rises and glows in its rarity under the mouse (owner, 2026-12-04: "something they should be proud of") */
.st-collection .st-card[data-card]{cursor:pointer;transition:translate .18s cubic-bezier(.2,.8,.2,1),scale .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s}
.st-collection .st-card[data-card]:hover{translate:0 -8px;scale:1.06;z-index:2;box-shadow:inset 0 0 0 4px #15110e,inset 0 0 0 5px rgb(var(--glow)/.8),0 22px 36px rgb(0 0 0/.75),0 0 40px rgb(var(--glow)/.55)}
.st-collection .st-card[data-card]:hover::before{animation-play-state:running}
.st-card.st-unseen.shake{animation:st-no .4s}
.st-collection .st-tabs{display:flex;gap:38px;justify-content:center;margin-top:18px}   /* how the shelves are sorted: the start screen's tabs again */
.st-shelves.new{animation:st-rise .28s cubic-bezier(.2,.8,.2,1)}
.st-shelf h3 .st-pc{display:inline-block;width:30px;height:30px;margin-right:9px;vertical-align:-6px}   /* a piece's shelf wears the piece */
.st-cards.small .st-card.st-unseen{display:grid;place-items:center;background:#1c1612;border-color:rgb(220 204 166/.28);box-shadow:none}.st-cards.small .st-unseen .st-art{position:static;width:68px;height:68px;opacity:.22}.st-cards.small .st-unseen .st-art svg{width:68px;height:68px;filter:none}   /* not seen yet: shut, a lock in its corner like a locked ascension (owner, 2026-12-04) */
.st-unseen>.st-ic{position:absolute;right:9px;top:9px;width:17px;height:17px;color:#f7f3ea;opacity:.6}.st-unseen .st-gem{opacity:.3}.st-card.st-unseen::before,.st-card.st-unseen::after{display:none}
#stSeed{width:190px;padding:8px 14px;border:1.5px solid rgb(220 204 166/.45);border-radius:999px;background:#1d1813;color:#f7f3ea;font:600 16px/1.2 var(--serif);letter-spacing:.08em;text-align:center;outline:none}
#stSeed:focus{border-color:#c0392b;box-shadow:0 0 0 3px rgb(192 57 43/.3)}
#stSeed::placeholder{color:#f7f3ea;opacity:.4;font-weight:400;letter-spacing:0}
.st-seedrow button.on{border-color:#c0392b;opacity:1}
.st-fall .st-note.st-seedline{font-size:16px;margin:0;position:fixed;left:0;right:0;bottom:14px;text-align:center;pointer-events:none}   /* (owner, 2026-12-04: "Seed 0SKA51X at the bottom plz": at the foot of the screen) */

/* chests, deals, the coin */
.st-chests{display:flex;gap:18px;flex-wrap:wrap;justify-content:center}
.st-screen button.st-chest{flex-direction:column;width:160px;height:170px;border-radius:12px;justify-content:center;gap:10px;opacity:1}
.st-chest .st-pc{width:74px;height:74px}
.st-screen button.st-chest.mine{border-color:#c0392b;box-shadow:0 0 0 3px rgb(192 57 43/.4)}
.st-screen button.st-chest.open{border-style:dashed}
.st-deals{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.st-deals button{border-radius:10px;justify-content:center;padding:14px 20px}
.st-coin{display:flex;flex-direction:column;gap:8px;align-items:center}
.st-screen button.st-bet{background:#c0392b;border-color:#c0392b;color:#f7f3ea}
.st-screen button.st-bet:hover:not(:disabled){color:#f7f3ea;border-color:#f7f3ea}
.st-stats{border-collapse:collapse;font-size:20px}
.st-stats td{padding:3px 16px;text-align:left}.st-stats td:last-child{text-align:right;font-weight:600}
.st-stats tr:first-child td{font-size:28px;color:#c0392b;padding-bottom:10px}

/* overlays: everything behind is blurred and darkened */
.st-over{position:fixed;inset:0;z-index:60;background:rgb(8 6 5/.8);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font:18px/1.45 var(--serif);color:#f7f3ea;animation:st-fade .22s ease-out}
@keyframes st-fade{from{opacity:0}}
.st-over.out{animation:st-fadeout .26s ease-in forwards;pointer-events:none}
.st-deck.out .st-fan,.st-deck.out .st-deckhead{transition:translate .26s ease-in,opacity .22s ease-in;translate:0 46px;opacity:0}
.st-deck.out .st-deckhead{translate:0 -30px}
.st-stage.out .st-show,.st-pause.out .st-panel{transition:transform .26s ease-in;transform:scale(.92)}
.st-over h2{font:600 38px/1.1 var(--serif);font-variant:small-caps;letter-spacing:.04em;margin:6px 0 0}
/* a deck: the sign and name, then the cards dealt out */
.st-deck{overflow:auto;overscroll-behavior:contain;-webkit-backdrop-filter:none;backdrop-filter:none;background:rgb(8 6 5/.94)}   /* (no blur behind the deck: redrawn every frame under its many cards, it made it lag) */
.st-deckhead{display:flex;flex-direction:column;align-items:center;gap:4px;padding:46px 16px 4px;text-align:center}
.st-deckhead .st-medal{margin-bottom:10px}
.st-hand{display:flex;flex-wrap:wrap;justify-content:center;gap:56px 110px;max-width:1500px;margin:0 auto;padding:44px max(4vw,16px) 90px}
/* a fan: its cards lie on one another, turned like a hand; open, they spread side by side over a dark bed (story.js layFan) */
.st-fan{position:relative;width:226px;height:316px;margin-bottom:60px;flex:none;cursor:pointer;transition:translate .18s,opacity .25s}
.st-fan:not(.open):hover{translate:0 -10px}
.st-fan.open{z-index:50!important;cursor:default}   /* (closed fans: the left one lies over those to its right, story.js) */
.st-hand.has-open .st-fan:not(.open){opacity:.08;pointer-events:none}   /* (faded, not blurred: a blur on every other fan made it lag) */
.st-fan .st-card{position:absolute;left:0;top:0;transform-origin:50% 100%;transition:transform .28s cubic-bezier(.2,.8,.2,1),scale .15s,box-shadow .18s;animation:st-deal .5s cubic-bezier(.2,.8,.2,1) backwards;animation-delay:calc(var(--i)*35ms)}
.st-fan:not(.open)[data-n="1"] .st-card:hover{scale:1.05}
.st-fan:not(.open)[data-n="1"] .st-card:hover,.st-fan.open .st-card:hover{box-shadow:inset 0 0 0 4px #15110e,inset 0 0 0 5px rgb(var(--glow)/.8),0 26px 44px rgb(0 0 0/.75),0 0 44px rgb(var(--glow)/.5)}
.st-fan:not(.open):not([data-n="1"]) .st-card{pointer-events:none}   /* a closed fan is one thing to click */
.st-fanbed{position:absolute;opacity:0;pointer-events:none}   /* (unseen: it keeps the mouse on the fan between and around the cards) */
.st-fan.open .st-fanbed{pointer-events:auto}
.st-fanlab{position:absolute;left:-40px;right:-40px;top:calc(100% + 34px);text-align:center;font:600 21px/1 var(--serif);font-variant:small-caps;letter-spacing:.08em;opacity:.8;transition:opacity .2s}
.st-fan.open .st-fanlab{opacity:0}
@keyframes st-deal{from{opacity:0;transform:translateY(70px) rotate(9deg) scale(.78)}}
.st-over button.st-x{position:fixed;right:20px;top:16px;width:48px;height:48px;padding:0;justify-content:center;font-size:30px;line-height:1;background:#15110e;z-index:2}
/* one card, large and glowing, with its demo beside it */
.st-stage,.st-fly{display:grid;place-items:center;overflow:hidden;cursor:pointer}
.st-stage{z-index:62}.st-fly{z-index:64}
.st-show{position:relative;display:flex;align-items:center;justify-content:center;gap:clamp(34px,7vw,96px);flex-wrap:wrap;padding:0 20px}
.st-show>.st-card{scale:1.22;margin:36px 28px;animation:st-glow 1.5s ease-in-out infinite alternate}
@keyframes st-glow{from{box-shadow:inset 0 0 0 4px #15110e,inset 0 0 0 5px rgb(var(--glow)/.6),0 0 34px rgb(var(--glow)/.35)}to{box-shadow:inset 0 0 0 4px #15110e,inset 0 0 0 5px rgb(var(--glow)),0 0 90px 12px rgb(var(--glow)/.7)}}
.st-demo{width:min(52vh,440px,84vw);aspect-ratio:1;height:auto;border:2px solid #dccca6;border-radius:14px;background:#15110e;pointer-events:none;box-shadow:0 0 0 5px #15110e,0 0 0 6px rgb(220 204 166/.35),0 24px 60px rgb(0 0 0/.8)}
.st-hint{position:absolute;left:0;right:0;top:calc(100% + 14px);margin:0;text-align:center;font-variant:small-caps;letter-spacing:.1em;opacity:.7;animation:st-blink 1.2s ease-in-out infinite alternate}
@keyframes st-blink{to{opacity:.3}}
.st-fly .st-show{position:absolute}
.st-over .st-show button.st-nomore{position:absolute;left:50%;top:calc(100% + 58px);translate:-50% 0;padding:8px 16px;font-size:15px;opacity:.7;white-space:nowrap}.st-over .st-show button.st-nomore:hover{opacity:1}
.st-show.new{animation:st-flyin .6s cubic-bezier(.16,.84,.3,1)}
.st-show.away{animation:st-flyout .45s cubic-bezier(.6,0,.9,.4) forwards}
@keyframes st-flyin{from{transform:translateX(115vw) rotate(9deg)}}
@keyframes st-flyout{to{transform:translateX(-115vw) rotate(-9deg)}}
.st-flyer{position:absolute;left:50%;top:50%;pointer-events:none;animation:st-flyby .62s linear forwards}
@keyframes st-flyby{from{transform:translate(-50%,calc(-50% + var(--dy))) translateX(80vw) rotate(calc(var(--tilt) + var(--turn,9deg))) scale(var(--s,1))}
 50%{transform:translate(-50%,calc(-50% + var(--dy)*.6)) translateX(0) rotate(var(--tilt)) scale(calc(var(--s,1)*1.1))}
 to{transform:translate(-50%,calc(-50% + var(--dy))) translateX(-80vw) rotate(calc(var(--tilt) - var(--turn,9deg))) scale(var(--s,1))}}
.st-fly.out{animation:st-fadeout .6s ease-in-out forwards;pointer-events:none}
@keyframes st-fadeout{to{opacity:0}}
@media(prefers-reduced-motion:reduce){.st-flyer{animation-duration:.01s}.st-card.r-mythic::before,.st-card.r-ultimate::before,.st-medal.foe,.st-show>.st-card,.st-screen button.st-slot,.st-slot::after,.st-screen button.st-hanbtn{animation:none}}
@media(max-width:600px){.st-card{width:calc(50% - 10px);min-height:280px;font-size:15px;padding:0 10px 16px}.st-art{width:88px;height:88px}.st-art .st-pc{width:64px;height:64px}.st-show>.st-card{scale:1;width:226px}.st-fan,.st-fan .st-card{width:226px}.st-hand{gap:50px 90px}.st-screen button.st-node{width:48px;height:48px;margin:-24px 0 0 -24px}.st-node .st-pc{width:34px;height:34px}}

/* the Puzzles page (puzzles.js): the board alone under a bar, in the page's own colors and with the nav */
body.puzzles .playbox{display:none!important}body.puzzles .under{display:none}
body.puzzles.pz-live .ceval{display:none}   /* no engine while you are solving */
.pz-bar{flex:none;display:flex;flex-direction:column;gap:10px;padding:14px 16px 16px;border-bottom:1.5px solid var(--wood);font:18px/1.35 var(--serif);color:var(--fg)}
.pz-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.pz-head b{font:600 22px/1.2 var(--serif)}
.pz-count{opacity:.7;font-size:16px}
.pz-tags{display:flex;gap:6px;flex-wrap:wrap}
.pz-tag{font:600 14px/1 var(--serif);font-variant:small-caps;letter-spacing:.04em;padding:5px 10px;background:var(--red);color:#f7f3ea}
.pz-tag.kind{background:var(--fg);color:var(--bg)}
.pz-tag.ok{background:none;box-shadow:inset 0 0 0 1.5px var(--wood);color:var(--fg)}
/* the box as on Lichess, drawn hanic (puzzles.js): what it says beside a small tile (the side to move, a tick, a cross);
   one quiet button while you solve, the one red button once it is over; the session row of small squares */
.pz-fb{display:flex;align-items:center;gap:12px;min-height:52px}
.pz-ico{flex:none;width:50px;height:50px;box-sizing:border-box;display:grid;place-items:center;border:1.5px solid var(--wood);font:600 28px/1 var(--serif);font-style:normal}
.pz-ico.no{color:var(--red)}
.pz-fb b{display:block;font:600 21px/1.2 var(--serif)}.pz-fb em{display:block;font-style:normal;opacity:.7;font-size:17px}
.pz-bar button.pz-sol,.pz-bar button.pz-go{width:100%}
.pz-bar button.pz-go{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;font-size:20px;background:var(--red);border-color:var(--red);color:#f7f3ea}
.pz-bar button.pz-go:hover{color:#f7f3ea;filter:brightness(1.15)}.pz-go svg{width:22px;height:22px}
.pz-elo{display:flex;align-items:baseline;gap:8px;font-variant-numeric:lining-nums}.pz-elo b{font:600 22px/1.2 var(--serif)}
.pz-elo i{font-style:normal;font-weight:600;font-size:17px;color:var(--red)}.pz-elo i.down{color:inherit;opacity:.7}
.pz-bar>.pz-count{font-size:15px}
/* the two thumbs, once a puzzle is over (hanic: flat, pink for the one you chose) */
.pz-vote{display:flex;justify-content:center;gap:8px}.pz-vote button{width:64px;display:grid;place-items:center;padding:6px}.pz-vote svg{width:24px;height:24px}.pz-vote .down svg{transform:scaleY(-1)}
.pz-bar .pz-vote button.on{background:var(--pink);color:var(--ink);border-color:var(--wood)}
.pz-bar button{font:600 17px/1 var(--serif);color:var(--fg);background:none;border:1.5px solid var(--wood);min-height:40px;padding:6px 10px;cursor:pointer}
.pz-bar button:hover{border-color:var(--red);color:var(--red)}

/* the test room */
.st-test h3{font:600 18px/1.2 var(--serif);font-variant:small-caps;margin:6px 0 0;opacity:.7}
/* every card the same size, in a grid; five fit a row, so the basic ones sit together */
.st-main.st-test{max-width:1200px}
.st-test .st-cards{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;width:100%}
/* the random build: focus, build code, journey, the 200-roll summary, pinned cards */
.st-foci{align-items:center;gap:6px}.st-foci small{font:600 13px/1 var(--serif);font-variant:small-caps;letter-spacing:.12em;opacity:.7;margin-right:6px}
.st-screen .st-code{width:min(300px,70vw);padding:8px 16px;border:1.5px solid #dccca6;border-radius:999px;background:#1d1813;color:#f7f3ea;font:400 17px/1.2 var(--serif);text-align:center;outline:none}
.st-screen .st-code:focus{border-color:#c0392b}.st-screen .st-code::placeholder{color:#f7f3ea;opacity:.4}
.st-journey{width:100%;max-width:760px;font-size:15px}.st-journey summary{cursor:pointer;text-align:center;font:600 17px/1.2 var(--serif);font-variant:small-caps;letter-spacing:.06em;opacity:.8}
.st-journey ol{margin:10px 0 0;padding-left:0;list-style:none;display:grid;gap:4px;opacity:.85}
.st-simstats{display:grid;gap:12px;justify-items:center;width:100%}
.st-tiles{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.st-tile{border:1.5px solid rgb(220 204 166/.4);border-radius:12px;padding:10px 14px;min-width:92px;text-align:center;display:grid;gap:4px}
.st-tile small{font:600 13px/1 var(--serif);font-variant:small-caps;letter-spacing:.12em;opacity:.7}
.st-tile b{font:600 24px/1.1 var(--serif);font-variant-numeric:lining-nums tabular-nums}.st-tile span{font-size:15px;opacity:.7;font-variant-numeric:lining-nums}
.st-tile.r-common{border-color:#ecdcae}.st-tile.r-uncommon{border-color:#3fb8c4}.st-tile.r-rare{border-color:#c0392b}.st-tile.r-epic{border-color:#b48cff}.st-tile.r-mythic{border-color:#e2b94d}.st-tile.r-ultimate{border-color:#5aa8ff}
.st-test .st-card.pinned{outline:2px dashed #e2b94d;outline-offset:3px}
.st-test .st-pair{display:flex;flex-wrap:wrap;gap:12px 56px;justify-content:center;align-items:flex-start;width:100%}.st-test .st-pair>.st-cards{width:auto}   /* rewards left, potions right */
.st-test .st-cards .st-card{width:172px;height:auto;min-height:150px;flex:none;align-items:flex-start;text-align:left;padding:12px}
/* battle cards grow with their text (the Fight button never hangs out of the card); cards in a row are equally tall, the button at the bottom */
.st-test .st-cards.battles{align-items:stretch}
.st-test .st-cards.battles .st-card{width:220px;height:auto;min-height:250px;display:flex;flex-direction:column;gap:8px;padding:14px 16px 16px}
.st-test .st-cards.battles .st-card p{margin:0}
.st-test .st-cards.battles .st-card .st-row{margin-top:auto;padding-top:6px}
.st-screen button.st-pick{opacity:.35;display:flex;flex-direction:column;align-items:flex-start;text-align:left;cursor:pointer;padding:12px;font:16px/1.35 var(--serif);border-radius:10px;border-style:solid}
.st-screen button.st-pick.on{opacity:1}
.st-screen button.st-pick:hover{opacity:.7}.st-screen button.st-pick.on:hover{opacity:.9}
/* a card to choose in the story (the Apothecary: Brew, Switch): bright, lifts under the mouse */
.st-screen button.st-pick.full{opacity:1;transition:transform .15s}.st-screen button.st-pick.full:hover{opacity:1;transform:translateY(-4px)}
.st-screen .st-cards:not(.small)>button.st-pick.full{align-items:center;text-align:center;padding:0 16px 18px;font:17px/1.36 var(--serif);border-radius:14px}   /* (a full-size card, Brew: centered like every other card, not the small cards' left edge) */
.st-testrow{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:900px}
/* the test room's ascensions: base play as a bar on top, the ten steps as tiles in a grid (each change on its own line);
   the ones in force bright, the rest dim; the run's own with a red number */
.st-ascgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;width:100%}
.st-screen .st-ascgrid button{flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:left;gap:10px;padding:16px 16px 18px;border-radius:14px;font-weight:400;line-height:1.3;white-space:normal;opacity:.4;border-color:rgb(220 204 166/.3);transition:opacity .15s,transform .15s}
.st-screen .st-ascgrid button.on{opacity:1}
.st-screen .st-ascgrid button:hover{opacity:.75;transform:translateY(-2px)}.st-screen .st-ascgrid button.on:hover{opacity:1}
.st-ascgrid button b{flex:none;width:1.7em;height:1.7em;display:grid;place-items:center;border:1.5px solid rgb(220 204 166/.5);border-radius:50%;font:600 22px/1 var(--serif);font-variant-numeric:lining-nums}
.st-ascgrid button.cur b{background:#c0392b;border-color:#c0392b}
.st-ascgrid button span{width:100%}
.st-ascgrid button span+span{border-top:1px solid rgb(220 204 166/.22);padding-top:10px}
.st-screen .st-ascgrid button.base{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:center;gap:12px;padding:10px 16px}
.st-ascgrid button.base span{width:auto}
@media(max-width:1000px){.st-ascgrid{grid-template-columns:repeat(2,1fr)}}
.st-stars{display:flex;gap:2px;color:#e2b94d;margin-bottom:6px}.st-stars svg{width:18px;height:18px;flex:none}
.st-testrow button i,.st-testlist button i{font-style:normal;opacity:.55;font-weight:400;margin-left:2px}
.st-testlist button span{flex:1}.st-testlist h3{margin:8px 0 0}
.st-ptable.st-shares{margin:0}.st-shares tr:first-child th{font:600 13px/1.2 var(--serif);padding:8px 12px}.st-shares .st-pc{width:28px;height:28px;display:block;margin:0 auto 4px}.st-shares td{padding:7px 12px}
.st-testlist{display:grid;gap:8px;width:100%;max-width:760px}
.st-screen .st-testlist button{justify-content:flex-start;text-align:left;border-radius:12px;line-height:1.3;white-space:normal;font-weight:400}
.st-screen .st-testrow button:disabled,.st-screen .st-testlist button:disabled{opacity:.3;cursor:default}
/* the test room's blood and roses: one joined stepper, the number in the middle, the label small above */
.st-num{display:inline-flex;flex-direction:column;align-items:center;gap:6px;margin:0 14px}
.st-num small{font:600 13px/1 var(--serif);font-variant:small-caps;letter-spacing:.12em;opacity:.7}
.st-step{display:inline-flex;align-items:stretch;border:1.5px solid rgb(220 204 166/.55);border-radius:999px;overflow:hidden}
.st-screen .st-step button{border:0;border-radius:0;padding:8px 12px;font:400 15px/1 var(--serif);font-variant-numeric:lining-nums;opacity:.6;transition:opacity .12s,background .12s}
.st-screen .st-step button:hover{opacity:1;background:rgb(220 204 166/.12)}
.st-screen .st-step button:active{background:rgb(220 204 166/.22)}
.st-step button+button,.st-step b+button{border-left:1px solid rgb(220 204 166/.2)}
.st-step b{min-width:2.8em;display:grid;place-items:center;font:600 20px/1 var(--serif);font-variant-numeric:lining-nums tabular-nums;border-left:1px solid rgb(220 204 166/.2);background:rgb(220 204 166/.06)}
.st-test .st-card p b{font:600 20px/1.2 var(--serif)}

.st-main .st-card p b{font:600 20px/1.2 var(--serif)}

/* the ascension picker (owner, 2026-12-02): ‹ number › */
.st-ascpick{display:flex;align-items:center;justify-content:center;gap:22px;margin:4px 0 2px}
.st-screen .st-ascpick .st-ascarrow{width:52px;height:52px;padding:0;justify-content:center;border-radius:50%;font:400 38px/1 var(--serif);border-color:rgb(220 204 166/.5);background:none;transition:scale .15s,border-color .15s}
.st-screen .st-ascpick .st-ascarrow:hover:not(:disabled){scale:1.08;border-color:#f7f3ea}
.st-screen .st-ascpick .st-ascarrow:disabled{opacity:.2}
.st-ascnum{width:74px;height:74px;display:grid;place-items:center;border-radius:14px;background:#c0392b;color:#f7f3ea;font:600 36px/1 var(--serif);font-variant-numeric:lining-nums;box-shadow:0 0 0 3px #15110e,0 0 0 4.5px #c0392b,0 0 30px rgb(192 57 43/.7)}
.st-ascnum{position:relative}.st-ascnum.locked{background:#2a2119;color:rgb(247 243 234/.45);box-shadow:0 0 0 1.5px rgb(220 204 166/.4)}.st-ascnum .st-ic{position:absolute;right:5px;top:5px;width:16px;height:16px;color:#f7f3ea;opacity:.7}
.st-asclist.locked{opacity:.5}
.st-asclist li ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px;flex:1}
.st-asclist li ul li{display:block;opacity:1;position:relative;padding-left:18px}
.st-asclist li ul li::before{content:"";position:absolute;left:1px;top:.5em;width:7px;height:7px;border-radius:50%;background:#c0392b}   /* (owner, 2026-12-04: a red dot before each point, no numbers, no lines) */
/* the arrows move (owner, 2026-12-02): they lean their way on hover, kick when pressed, and the number slides in from that side */
.st-screen .st-ascpick .st-ascarrow{transition:scale .15s,border-color .15s,translate .2s cubic-bezier(.2,.8,.2,1)}
.st-screen .st-ascpick .st-ascarrow:first-child:hover:not(:disabled){translate:-4px 0}
.st-screen .st-ascpick .st-ascarrow:last-child:hover:not(:disabled){translate:4px 0}
.st-ascarrow.push:first-child{animation:ascKickL .3s cubic-bezier(.2,.8,.2,1)}.st-ascarrow.push:last-child{animation:ascKickR .3s cubic-bezier(.2,.8,.2,1)}
@keyframes ascKickL{40%{translate:-10px 0;scale:.92}100%{translate:-4px 0}}
@keyframes ascKickR{40%{translate:10px 0;scale:.92}100%{translate:4px 0}}
.st-ascnum.from-r{animation:ascFromR .35s cubic-bezier(.2,.8,.2,1)}.st-ascnum.from-l{animation:ascFromL .35s cubic-bezier(.2,.8,.2,1)}
@keyframes ascFromR{from{translate:34px 0;opacity:0;rotate:8deg}}
@keyframes ascFromL{from{translate:-34px 0;opacity:0;rotate:-8deg}}
@media(prefers-reduced-motion:reduce){.st-ascnum.from-r,.st-ascnum.from-l,.st-ascarrow.push{animation:none}}
.st-chesttip{display:block;margin-top:4px;opacity:.7;font:400 15px/1.3 var(--serif);text-transform:none;letter-spacing:0;font-variant:normal}   /* what a chest does, under its name (70%: a note) */
/* a series' sign in a battle card's bottom right corner; on hover, the most of each piece the enemy may have */
.st-fightrow{align-items:center}
/* (test room) beside the kind filters: how many of each piece the battles shown start with */
.st-ptable{margin-left:18px;border-collapse:separate;border-spacing:0;border:1.5px solid rgb(220 204 166/.55);border-radius:12px;overflow:hidden}
.st-ptable th,.st-ptable td{padding:4px 10px;text-align:center;font:600 15px/1 var(--serif);font-variant-numeric:lining-nums tabular-nums}
.st-ptable th{background:rgb(220 204 166/.06);border-bottom:1px solid rgb(220 204 166/.2)}.st-ptable th+th,.st-ptable td+td{border-left:1px solid rgb(220 204 166/.2)}
.st-ptable img{width:24px;height:24px;display:block;margin:auto}.st-ptable td.none{opacity:.4}
.st-ptable tr+tr th{font:600 13px/1 var(--serif);font-variant:small-caps;letter-spacing:.12em;opacity:.7;text-align:right;background:none}.st-ptable tr+tr+tr td,.st-ptable tr+tr+tr th{border-top:1px solid rgb(220 204 166/.2)}
.st-seriesbox{position:absolute;right:18px;bottom:22px;outline:0}
.st-series{display:block;width:38px;height:38px;color:rgb(var(--glow));filter:drop-shadow(0 0 6px rgb(var(--glow)/.5))}
.st-army{position:absolute;right:-6px;bottom:calc(100% + 10px);display:flex;flex-wrap:wrap;justify-content:center;gap:6px 10px;width:max-content;max-width:200px;padding:10px 12px;z-index:5;
 border:1.5px solid #dccca6;border-radius:8px;background:#15110e;box-shadow:0 8px 20px rgb(0 0 0/.6);opacity:0;translate:0 4px;pointer-events:none;transition:opacity .15s,translate .15s}
.st-seriesbox:hover .st-army,.st-seriesbox:focus-visible .st-army{opacity:1;translate:0 0}
.st-army>span{display:flex;align-items:center;gap:3px;font:600 16px var(--serif);color:#f7f3ea}
.st-army .st-pc{width:30px;height:30px;background-color:#dccca6;border-radius:50%;background-size:84%}   /* dark pieces need a light disc */
.st-army small{flex-basis:100%;text-align:center;font:400 15px/1.3 var(--serif);opacity:.7}
/* the Mothers' Key (story.js keyFx): a key falls in, grows and glows, turns as in a lock, bursts into light; the archon rises */
.st-keyfx{position:fixed;inset:0;z-index:66;display:grid;place-items:center;perspective:900px;animation:kfDim 4.6s forwards}
.st-keyfx>*{grid-area:1/1}.st-keyfx{overflow:hidden}
.st-keyfx>.kf-rays,.st-keyfx>.kf-light{position:absolute;left:50%;top:50%;margin:0;translate:-50% -50%}
.st-keyfx.out{opacity:0;transition:opacity .5s}
@keyframes kfDim{0%{background:rgb(8 6 4/0)}10%,100%{background:rgb(8 6 4/.86)}}
.kf-key{width:min(48vw,400px);opacity:0;animation:kfKey 2s cubic-bezier(.3,.7,.3,1) forwards}
@keyframes kfKey{
 0%{opacity:0;transform:translateY(-34vh) rotate(-40deg) scale(.22)}
 22%{opacity:1;transform:translateY(0) rotate(-10deg) scale(.4);filter:drop-shadow(0 0 0 rgb(243 217 138/0))}
 58%{transform:rotate(0) scale(1);filter:drop-shadow(0 0 30px rgb(243 217 138/.95))}
 70%{transform:scale(1) rotateX(0)}
 84%{opacity:1;transform:scale(1.04) rotateX(84deg);filter:drop-shadow(0 0 50px #fff6d8)}
 100%{opacity:0;transform:scale(1.2) rotateX(90deg)}}
.kf-light{width:40px;height:40px;border-radius:50%;background:radial-gradient(circle,#fffaf0,#f3d98a 35%,rgb(226 185 77/.4) 55%,transparent 70%);opacity:0;animation:kfLight 4.6s forwards}
@keyframes kfLight{0%,32%{opacity:0;transform:scale(.2)}40%{opacity:1;transform:scale(16)}100%{opacity:.5;transform:scale(20)}}
.kf-rays{width:120vmax;height:120vmax;opacity:0;background:repeating-conic-gradient(rgb(243 217 138/.3) 0 3deg,transparent 3deg 15deg);
 -webkit-mask:radial-gradient(circle,#000 0,transparent 55%);mask:radial-gradient(circle,#000 0,transparent 55%);animation:kfRays 4.6s linear forwards}
@keyframes kfRays{0%,33%{opacity:0;rotate:0deg}45%{opacity:1}100%{opacity:.7;rotate:40deg}}
.kf-born{display:flex;flex-direction:column;align-items:center;gap:6px;opacity:0;animation:kfBorn 2.8s 1.6s cubic-bezier(.2,1.3,.4,1) forwards}
.kf-born .st-pc{width:160px;height:160px;filter:drop-shadow(0 0 22px #f3d98a) drop-shadow(0 6px 10px rgb(0 0 0/.6))}
.kf-born b{font:600 38px/1.1 var(--serif);font-variant:small-caps;letter-spacing:.08em;color:#fff6e0;text-shadow:0 0 18px rgb(243 217 138/.95),0 2px 4px #000}
.kf-born small{font:600 22px var(--serif);font-variant:small-caps;letter-spacing:.08em;color:#f3d98a;text-shadow:0 0 12px rgb(243 217 138/.8),0 2px 4px #000}
@keyframes kfBorn{0%{opacity:0;transform:translateY(40px) scale(.4)}30%{opacity:1;transform:none}100%{opacity:1;transform:none}}
/* the two films before the final battle (story.js betFilm). pact: the bet signed in blood; curse: three curses turned over */
.st-betfx{position:fixed;inset:0;z-index:66;display:grid;place-items:center;overflow:hidden;background:rgb(8 6 4/.9);animation:st-fade .35s ease-out}
.st-betfx.out{opacity:0;transition:opacity .55s}
.st-betfx.sink>*{opacity:0;translate:0 26px;transition:opacity .4s,translate .4s}
/* the pact */
.bf-sheet{position:relative;width:min(540px,86vw);padding:44px 44px 34px;border-radius:3px;color:#2a1d10;text-align:center;rotate:-1.2deg;transform-origin:50% 0;
 background:radial-gradient(120% 90% at 50% 40%,#f3e7c6,#dcc898 78%,#c4ab74);box-shadow:inset 0 0 46px rgb(120 80 30/.5),0 30px 80px rgb(0 0 0/.85),0 0 90px rgb(192 57 43/.25);
 animation:bfUnroll .6s cubic-bezier(.2,.9,.3,1) backwards}
@keyframes bfUnroll{0%{opacity:0;transform:translateY(40px) scaleY(.06)}40%{opacity:1}100%{transform:none}}
.bf-terms{margin:0 0 46px;font:500 30px/1.25 var(--serif);animation:st-fade .5s .45s backwards}
.bf-signs{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;animation:st-fade .5s .55s backwards}
.bf-signs>span{position:relative;flex:1;padding-bottom:8px;border-bottom:1.5px solid rgb(42 29 16/.55);min-height:52px;display:flex;align-items:flex-end;justify-content:center}
.bf-faust{font:400 44px/1 var(--black)}   /* (the one word that may be blackletter) */
.bf-you b{display:inline-block;font:600 30px/1.1 var(--serif);font-variant:small-caps;letter-spacing:.06em;color:#a3121f;rotate:-3deg;white-space:nowrap;
 clip-path:inset(-20% 100% -20% -5%);animation:bfWrite .95s 1.35s cubic-bezier(.4,0,.5,1) forwards}
@keyframes bfWrite{to{clip-path:inset(-20% -5% -20% -5%)}}
.bf-drop{position:absolute;left:calc(22% + var(--i)*28%);bottom:2px;width:11px;height:11px;border-radius:50% 50% 50% 50%/62% 62% 40% 40%;background:#a3121f;opacity:0;
 animation:bfDrop .5s calc(.75s + var(--i)*.16s) cubic-bezier(.6,0,.9,.5) forwards}
@keyframes bfDrop{0%{opacity:0;transform:translateY(-70vh) scaleY(1.6)}12%{opacity:1}78%{opacity:1;transform:translateY(0) scaleY(1.6)}100%{opacity:.85;transform:translateY(3px) scale(1.7,.55)}}
.bf-seal{position:absolute;right:26px;top:-26px;width:104px;height:104px;border-radius:50%;display:grid;place-items:center;color:#5e0a12;opacity:0;
 background:radial-gradient(circle at 36% 30%,#d8414f,#a3121f 58%,#7a0c16);box-shadow:inset 0 0 0 5px rgb(94 10 18/.45),inset 0 -6px 12px rgb(0 0 0/.35),0 6px 14px rgb(0 0 0/.5);
 animation:bfSeal .45s 2.3s cubic-bezier(.3,1.5,.5,1) forwards}
.bf-seal svg{width:70px;height:70px}
@keyframes bfSeal{0%{opacity:0;transform:scale(2.6) rotate(-30deg)}45%{opacity:1}100%{opacity:1;transform:scale(1) rotate(-9deg)}}
/* the three curses */
.bf-hexes{display:flex;gap:22px;align-items:center;justify-content:center}
.bf-hex{position:relative;perspective:1100px;animation:bfFall .5s calc(var(--i)*.1s) cubic-bezier(.2,.9,.3,1.2) backwards}
@keyframes bfFall{0%{opacity:0;transform:translateY(-60vh) rotate(var(--tilt))}}
.bf-hex>.st-card{transform:rotateY(-90deg);animation:bfFront .34s calc(.84s + var(--i)*.7s) cubic-bezier(.2,1.5,.4,1) forwards}
@keyframes bfFront{to{transform:none}}
.bf-back{position:absolute;inset:0;z-index:1;display:grid;place-items:center;border:2px solid #c0392b;border-radius:14px;color:#c0392b;
 background:radial-gradient(circle at 50% 46%,rgb(192 57 43/.3),#1b1210 70%);box-shadow:inset 0 0 0 4px #15110e,inset 0 0 0 5px rgb(192 57 43/.45),0 12px 28px rgb(0 0 0/.6);
 animation:bfBack .24s calc(.6s + var(--i)*.7s) ease-in forwards}
.bf-back svg{width:62%;filter:drop-shadow(0 0 14px rgb(192 57 43/.7))}
@keyframes bfBack{to{transform:rotateY(90deg)}}
.bf-hex::after{content:"";position:absolute;inset:-34%;z-index:2;border-radius:50%;pointer-events:none;opacity:0;background:radial-gradient(circle,rgb(226 80 60/.8),rgb(192 57 43/.35) 40%,transparent 64%);mix-blend-mode:screen;
 animation:bfFlash .75s calc(.8s + var(--i)*.7s) ease-out forwards}
@keyframes bfFlash{0%{opacity:0;scale:.4}22%{opacity:1}100%{opacity:0;scale:1.35}}
@media (max-width:780px){.bf-hexes{scale:.62}}@media (max-width:500px){.bf-hexes{scale:.42}.bf-terms{font-size:24px}.bf-faust{font-size:34px}.bf-you b{font-size:22px}}
/* No small buttons where the action already stands at the bottom (owner, 2026-12-04: "I rather have like text and dark fade thing").
   On a card (a price in the Laboratory, Take on a reward, Drink): the card's foot is the button, its words on a dark fade.
   On a screen (Onward, Leave): the whole bottom strip is the button, as the Back strip of a look-only view (.st-peekback). */
.st-lab .st-card>.st-row,.st-reel .st-card>.st-row,.st-potpop .st-card>.st-row{align-self:stretch;margin:0 -16px -18px;border-radius:0 0 11px 11px;overflow:hidden}
.st-reel .st-card>.st-row{margin:0 -12px -18px}
.st-card.gone.sold{--rim:#dccca6}.st-card.gone.sold>*{visibility:hidden}.st-card.gone.sold::before,.st-card.gone.sold::after{display:none}   /* a sold card's empty place: the card itself, unseen, so buying moves nothing (owner, 2026-12-04) */
.st-lab .st-card>.st-row button,.st-reel .st-card>.st-row button,.st-potpop .st-card>.st-row button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:0;padding:30px 0 24px;background:linear-gradient(to top,rgb(11 9 8/.92) 30%,rgb(11 9 8/0));font:600 21px/1 var(--serif);color:rgb(247 243 234/.78);transition:color .2s,text-shadow .2s}
.st-lab .st-card>.st-row button:hover:not(:disabled),.st-reel .st-card>.st-row button:hover:not(:disabled),.st-potpop .st-card>.st-row button:hover:not(:disabled){color:#f7f3ea;text-shadow:0 0 12px rgb(247 243 234/.55)}
.st-lab .st-card .st-gem,.st-reel .st-card .st-gem,.st-potpop .st-card .st-gem{z-index:1}
.st-lab .st-card>.st-row button:disabled,.st-reel .st-card>.st-row button:disabled,.st-potpop .st-card>.st-row button:disabled{opacity:1;color:rgb(247 243 234/.3)}   /* (cannot pay: the fade stays, the words dim) */
.st-card>.st-row button:disabled .st-ic{opacity:.35}
.st-screen .st-main button.st-onward{position:fixed;left:0;right:0;bottom:0;height:150px;z-index:4;border:0;border-radius:0;padding:0 0 44px;display:flex;align-items:flex-end;justify-content:center;background:linear-gradient(to top,rgb(11 9 8/.94) 25%,rgb(11 9 8/0));color:#f7f3ea;font:inherit;opacity:1}
.st-onward span{font:400 24px/1.2 var(--serif);font-variant:small-caps;letter-spacing:.14em;opacity:.92;text-shadow:0 2px 10px #000;transition:opacity .2s,text-shadow .2s}   /* (owner, 2026-12-04: it was "a bit low / small and opaque") */
.st-screen .st-main button.st-onward:hover{color:#f7f3ea}.st-onward:hover span{opacity:1;text-shadow:0 0 16px rgb(247 243 234/.6)}

/* a screen drawn again after you took something (story.js show): what was there makes no second entrance */
.st-deal>.st-medal.still,.st-main h1.st-doom.still{animation:none}
.st-screen.again button.st-coffer:not(.open){animation:none}

/* the end screens' wall (owner, 2026-12-04: "like a brick design for all the stats, like a rects in rect feel"): the score
   is a plaque set into masonry, each other number a brick; story.js brickWall lays the courses. Bricks drop in from the
   ground up, the plaque last */
.st-fall:has(.st-wall){gap:12px}
.st-wall{display:flex;flex-direction:column;gap:5px;max-width:100%;box-sizing:border-box;margin:10px 0 6px;padding:7px;border:1.5px solid rgb(220 204 166/.4);border-radius:12px;background:#0d0a08;box-shadow:inset 0 0 0 1px #000,0 18px 40px rgb(0 0 0/.6)}
.st-wtop{display:flex;gap:5px}.st-wcol{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:5px}
.st-course{display:flex;gap:5px;height:62px;flex:0 0 62px}
.st-brick{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid rgb(220 204 166/.2);border-radius:4px;background:linear-gradient(#2d241b,#1b1511);
 box-shadow:inset 0 1px 0 rgb(255 240 210/.08),inset 0 -8px 12px rgb(0 0 0/.22);animation:st-lay .42s cubic-bezier(.3,1.25,.5,1) backwards;animation-delay:calc(150ms + var(--i)*75ms)}
.st-course:nth-child(odd)>.st-brick:nth-child(even),.st-course:nth-child(even)>.st-brick:nth-child(odd){background:linear-gradient(#272019,#17120e)}   /* no two neighbors the same clay */
.st-brick b{font:600 27px/1 var(--serif);font-variant-numeric:lining-nums}
.st-brick span{font:600 14px/1 var(--serif);font-variant:small-caps;letter-spacing:.08em;opacity:.7;white-space:nowrap}
.st-wall .st-score{flex:0 0 232px;box-sizing:border-box;min-width:0;padding:0;border-radius:6px;border-width:1.5px;animation:st-lay .6s cubic-bezier(.3,1.25,.5,1) backwards;animation-delay:150ms}
.st-wall.k2 .st-score b{font-size:64px}.st-wall.k2 .st-score span{font-size:17px}
.st-wall.k0 .st-score{flex:1 1 auto;height:104px}.st-wall.k0 .st-score b{font-size:56px}
.st-wall.small{gap:4px;padding:5px}.st-wall.small .st-wtop,.st-wall.small .st-wcol,.st-wall.small .st-course{gap:4px}.st-wall.small .st-course{height:50px;flex-basis:50px}
.st-wall.small .st-brick b{font-size:21px}.st-wall.small .st-brick span{font-size:11.5px;letter-spacing:.05em}.st-wall.small .st-score{flex-basis:132px}.st-wall.small:not(.k0) .st-score b{font-size:48px}.st-wall.small .st-score span{font-size:15px}
.st-wall.still .st-brick,.st-wall.still .st-score{animation:none}
/* the end screens answer the mouse (owner, 2026-12-05: "give hover animations for the end screen"): a brick comes forward
   out of the wall and its number lights, the plaque glows, the two buttons lift. And where the run stands among all runs
   on its ascension (story.js showRank): under the score always; on a brick in place of its words while the mouse is on it,
   the best tenth with a gold rim */
.st-brick,.st-wall .st-score{position:relative;transition:translate .2s cubic-bezier(.2,.8,.2,1),scale .2s cubic-bezier(.2,.8,.2,1),border-color .2s,box-shadow .2s}
.st-brick b,.st-brick span,.st-brick em{transition:color .2s,opacity .2s,text-shadow .2s,translate .2s}
.st-brick:hover{translate:0 -3px;scale:1.04;z-index:1;border-color:rgb(226 185 77/.65);box-shadow:inset 0 1px 0 rgb(255 240 210/.14),0 10px 20px rgb(0 0 0/.7),0 0 16px rgb(226 185 77/.22)}
.st-brick:hover b{color:#f2d68a;text-shadow:0 0 14px rgb(226 185 77/.6)}.st-brick:hover span{opacity:1}
.st-wall .st-score:hover{scale:1.025;z-index:1;box-shadow:inset 0 0 0 5px #15110e,inset 0 0 0 6px rgb(216 67 47/.6),0 0 60px rgb(216 67 47/.45),0 18px 40px rgb(0 0 0/.65)}
.st-free .st-wall .st-score:hover{box-shadow:inset 0 0 0 5px #15110e,inset 0 0 0 6px rgb(226 185 77/.7),0 0 64px rgb(226 185 77/.5),0 18px 40px rgb(0 0 0/.65)}
.st-wall .st-score b{transition:scale .2s cubic-bezier(.2,.8,.2,1)}.st-wall .st-score:hover b{scale:1.06}
.st-wall em{font:600 14px/1 var(--serif);font-style:normal;font-variant:small-caps;letter-spacing:.1em;color:#e2b94d;white-space:nowrap;animation:st-fade .5s both}
.st-wall .st-score em{font-size:17px;color:#f2d68a;text-shadow:0 0 12px rgb(226 185 77/.5)}
.st-brick em{position:absolute;left:0;right:0;bottom:calc(50% - 23px);text-align:center;opacity:0;translate:0 4px;animation:none}
.st-brick.ranked:hover span{opacity:0;translate:0 -4px}.st-brick.ranked:hover em{opacity:1;translate:0 0}
.st-brick.best{border-color:rgb(226 185 77/.5)}
.st-wall.small .st-brick em{font-size:11.5px;bottom:calc(50% - 18px)}.st-wall.small .st-score em{font-size:13px}
.st-fall>.st-row.big button{transition:translate .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s,border-color .2s,color .2s,background .2s}
.st-fall>.st-row.big button:hover{translate:0 -3px;box-shadow:0 10px 24px rgb(0 0 0/.6),0 0 18px rgb(220 204 166/.18)}
.st-fall>.st-row.big button.st-bet:hover{box-shadow:0 10px 24px rgb(0 0 0/.6),0 0 26px rgb(192 57 43/.6)}
.st-fall>.st-row.big button:active{translate:0 0}
.st-fall>.st-medal{transition:scale .25s cubic-bezier(.2,.8,.2,1),filter .25s}.st-fall>.st-medal:hover{scale:1.06;filter:brightness(1.15)}
@keyframes st-lay{from{opacity:0;translate:0 -22px}}
@media(prefers-reduced-motion:reduce){.st-brick,.st-wall .st-score{animation:none}}
/* the look back from an end screen (owner, 2026-12-04: "tilted text in each corner asking which you want to reminisce: map
   or board"): no buttons, the corner itself is what you click */
.st-screen .st-main button.st-corner{position:fixed;top:0;width:210px;height:210px;z-index:4;border:0;border-radius:0;padding:0;color:#f7f3ea;animation:st-fade .6s 1.1s both}
.st-screen .st-main button.st-corner.l{left:0;background:radial-gradient(circle at 0 0,rgb(11 9 8/.92),rgb(11 9 8/0) 68%);clip-path:polygon(0 0,100% 0,0 100%)}
.st-screen .st-main button.st-corner.r{right:0;background:radial-gradient(circle at 100% 0,rgb(11 9 8/.92),rgb(11 9 8/0) 68%);clip-path:polygon(0 0,100% 0,100% 100%)}
.st-screen .st-main button.st-corner:hover{background-color:transparent;border:0}
.st-corner span{position:absolute;top:35%;display:flex;flex-direction:column;align-items:center;gap:4px;font:400 23px/1 var(--serif);text-transform:uppercase;letter-spacing:.22em;opacity:.85;text-shadow:0 2px 10px #000;transition:opacity .2s,text-shadow .2s;white-space:nowrap}
.st-corner small{font:400 14px/1 var(--serif);letter-spacing:.2em;opacity:.7}
.st-corner.l span{left:35%;translate:-50% -50%;rotate:-45deg}.st-corner.r span{left:65%;translate:-50% -50%;rotate:45deg}
.st-corner:hover span{opacity:1;text-shadow:0 0 14px rgb(247 243 234/.55),0 2px 10px #000}
@media(max-width:600px){.st-screen .st-main button.st-corner{width:130px;height:130px}.st-corner span{font-size:17px}}
/* the look back at the last board: nobody is to move, so no "second move" and no lit corner (owner, 2026-12-04: "yeah hide it") */
body.story-peekboard .move-indicator{display:none}

/* ---- the shops (owner, 2026-12-05): six cards in two rows of three, a little smaller than a reward's ("the cards don't have
   to appear that big"), and under them every way out in Onward's lettering, plain small caps that glow, no bordered buttons
   ("I hate small buttons and prefer the onward thing"; "not ugly with the rounded borders... it should look archonic";
   "I like the font change, just put it under the 6 cards, all these options!"): the main one, and the others in a row under it ---- */
.st-cards.st-shop{display:grid;grid-template-columns:repeat(3,auto);gap:18px;zoom:.84}
.st-main.st-lab:has(.st-exits){padding-bottom:30px}
.st-exits{display:flex;flex-direction:column;align-items:center;gap:0;margin-top:2px}
.st-exits>div{display:flex;flex-wrap:wrap;justify-content:center;gap:0 6px}
.st-screen .st-main .st-exits button.st-onward{position:static;height:auto;background:none;padding:11px 24px;z-index:auto}
.st-screen .st-main .st-exits>div button.st-onward{padding:7px 22px}
.st-exits>div>.st-onward span{font-size:21px}.st-exits>div+div>.st-onward span{font-size:18px;opacity:.7}
.st-screen .st-main .st-exits button.st-onward.narrow{display:none}
.st-screen .st-main button.st-onward:disabled{cursor:default}.st-onward:disabled span{opacity:.3;text-shadow:none;animation:none}
.st-onward span{display:flex;align-items:center;gap:12px;white-space:nowrap}
.st-onward i{display:flex;align-items:center;gap:6px;font-style:normal;font-variant:normal;letter-spacing:0}
.st-onward i .st-ic{width:24px;height:24px}
.st-onward.bet span{gap:14px;font-size:30px;color:#f2d68a;opacity:1;text-shadow:0 0 22px rgb(200 24 52/.95),0 2px 10px #000;animation:st-bet-glow 2.4s ease-in-out infinite alternate}
.st-onward.bet i .st-ic{width:26px;height:26px}
.st-onward.bet:hover:not(:disabled) span{color:#fff3cf}
@keyframes st-bet-glow{from{text-shadow:0 0 12px rgb(200 24 52/.6),0 2px 10px #000}to{text-shadow:0 0 30px rgb(200 24 52/1),0 0 60px rgb(200 24 52/.55),0 2px 10px #000}}
.st-lab.enter>.st-exits{animation:st-fade .5s 1s both}
/* life's golden tree (story.js lifeTree), behind everything at the right edge; the rose on its bough is the refresh. Two boxes
   of one size: the tree behind the page, the rose in front of it (so it can be clicked) */
.st-tree,.st-treetop{position:fixed;right:0;bottom:0;height:min(100vh,900px,calc((50vw - 280px)*7/3));aspect-ratio:300/700;pointer-events:none}   /* (as wide as the room beside the cards) */
.st-tree{z-index:-1}.st-treetop{z-index:3}
.st-tree svg{display:block;width:100%;height:100%;overflow:visible}
.st-tree .wood{opacity:.3}.st-tree path{fill:none;stroke:#dccca6;stroke-linecap:round}
.st-tree .leaf{fill:#e2b94d;stroke:none;opacity:.42}
.st-tree.first path:not(.leaf){stroke-dasharray:1;stroke-dashoffset:1;animation:st-treegrow .5s ease-out forwards;animation-delay:calc(.15s + var(--d)*.16s)}
.st-tree.first .leaf{animation:st-fade .5s both;animation-delay:calc(.45s + var(--d)*.16s)}
@keyframes st-treegrow{to{stroke-dashoffset:0}}
.st-screen .st-main button.st-bloom{position:absolute;translate:-50% -34px;pointer-events:auto;border:0;border-radius:0;background:none;padding:6px 16px 10px;display:flex;flex-direction:column;align-items:center;gap:4px;color:#f7f3ea;opacity:1}
.st-bloom .st-ic{width:70px;height:70px;filter:drop-shadow(0 0 14px rgb(200 24 52/.75));transform-origin:50% 60%;transition:scale .2s cubic-bezier(.2,.8,.2,1),filter .2s;animation:st-bloomsway 4.5s ease-in-out infinite alternate}
.st-bloom span{font:400 19px/1.2 var(--serif);font-variant:small-caps;letter-spacing:.14em;opacity:.9;text-shadow:0 2px 10px #000;white-space:nowrap;transition:opacity .2s,text-shadow .2s}
.st-screen .st-main button.st-bloom:hover:not(:disabled){color:#f7f3ea}
.st-bloom:hover:not(:disabled) .st-ic{scale:1.16;filter:drop-shadow(0 0 24px rgb(226 60 80/1))}.st-bloom:hover:not(:disabled) span{opacity:1;text-shadow:0 0 16px rgb(247 243 234/.6)}
.st-screen .st-main button.st-bloom:disabled{cursor:default}.st-bloom:disabled .st-ic{filter:grayscale(1) brightness(.55);opacity:.55;animation:none}.st-bloom:disabled span{opacity:.3}
.st-lab.enter .st-treetop{animation:st-bloom .7s cubic-bezier(.2,1.3,.4,1) 1.1s both}
@keyframes st-bloom{from{opacity:0;scale:.96}}
@keyframes st-bloomsway{from{rotate:-5deg}to{rotate:5deg}}
@media(max-width:1060px){.st-tree,.st-treetop{display:none}.st-screen .st-main .st-exits button.st-onward.narrow{display:flex}}
@media(max-width:700px){.st-cards.st-shop{grid-template-columns:repeat(2,auto);zoom:.72}.st-screen .st-main .st-exits button.st-onward{padding:10px 12px}.st-onward.bet span{font-size:22px}}
@media(prefers-reduced-motion:reduce){.st-tree.first path:not(.leaf){animation:none;stroke-dashoffset:0}.st-bloom .st-ic{animation:none}}
/* the Apothecary's choices, drawn as cards (owner, 2026-12-05) */
.st-screen button.st-card.st-way{min-height:300px;color:#f7f3ea}
.st-screen button.st-card.st-way:disabled{opacity:1;filter:grayscale(1) brightness(.68);cursor:default;transform:none}
.st-ways{flex-wrap:nowrap}   /* (four or five choices: one row still, between your sign and your blood; narrower cards) */
.st-screen .st-ways[data-n="4"]>button.st-way{width:186px;min-height:280px;font-size:16px;padding:0 12px 16px}
.st-screen .st-ways[data-n="5"]{gap:12px}.st-screen .st-ways[data-n="5"]>button.st-way{width:150px;min-height:250px;font-size:14.5px;padding:0 9px 14px}
.st-ways[data-n="5"] .st-way h4{font-size:17px}.st-ways[data-n="5"] .st-way .st-art{width:82px;height:82px}.st-ways[data-n="5"] .st-way .st-art svg{width:56px;height:56px}.st-ways[data-n="5"] .st-way small{font-size:11.5px;letter-spacing:.08em}
@media(max-width:820px){.st-ways{flex-wrap:wrap}}
.st-screen button.st-card.st-way:not(:disabled):hover{box-shadow:inset 0 0 0 4px #15110e,inset 0 0 0 5px rgb(var(--glow)/.7),0 16px 34px rgb(0 0 0/.7),0 0 26px rgb(var(--glow)/.35)}
/* Mephisto's bargains: the ways to say yes, as small cards (owner, 2026-12-05) */
.st-screen .st-ways.compact{margin:10px 0 4px}
.st-screen .st-ways.compact>button.st-way{width:172px;min-height:0;padding:0 12px 22px;gap:8px}
.st-ways.compact .st-way h4{font-size:19px;white-space:normal}
.st-ways.compact .st-way .st-art{width:84px;height:84px;margin-top:4px}.st-ways.compact .st-way .st-art svg{width:56px;height:56px}

/* ---- Thirty Years Younger, the Banquet's chest that takes an archon's cards (story.js youngerFx; owner, 2026-12-05) ---- */
.st-youngfx{position:fixed;inset:0;z-index:66;display:grid;place-items:center;overflow:hidden;background:rgb(6 9 6/.975);animation:st-fade .35s ease-out}
.st-youngfx.out{opacity:0;transition:opacity .5s}
.st-youngfx>*{grid-area:1/1}
.yf-clock{position:relative;width:min(80vmin,640px);aspect-ratio:1;border-radius:50%;opacity:0;animation:yfClock 4s forwards;translate:0 -40px}
.yf-clock::before{content:"";position:absolute;inset:0;border-radius:50%;background:repeating-conic-gradient(from -1deg,rgb(226 185 77/.85) 0 2deg,transparent 2deg 30deg);
  -webkit-mask:radial-gradient(circle,transparent 86%,#000 86.5% 93%,transparent 93.5%);mask:radial-gradient(circle,transparent 86%,#000 86.5% 93%,transparent 93.5%)}
.yf-clock::after{content:"";position:absolute;inset:2%;border-radius:50%;border:2px solid rgb(226 185 77/.5);box-shadow:0 0 60px rgb(127 211 138/.18),inset 0 0 80px rgb(127 211 138/.1)}
.yf-hand{position:absolute;left:50%;bottom:50%;width:5px;height:40%;margin-left:-2.5px;border-radius:3px;transform-origin:50% 100%;background:linear-gradient(#fff2c4,#e2b94d 40%,#8a5f17);box-shadow:0 0 10px rgb(226 185 77/.6);rotate:40deg;animation:yfSpin 2.4s .5s cubic-bezier(.5,0,.3,1) forwards}
.yf-hand.h{height:26%;width:7px;margin-left:-3.5px;rotate:-70deg;--turns:-900deg}.yf-hand.m{--turns:-10800deg}
@keyframes yfSpin{to{rotate:var(--turns)}}
@keyframes yfClock{0%{opacity:0;scale:.82}9%{opacity:.6;scale:1}70%{opacity:.6;scale:1}85%,100%{opacity:0;scale:1.14}}
.yf-flash{width:40px;height:40px;border-radius:50%;translate:0 -40px;background:radial-gradient(circle,#f4fff0,#9be8a5 35%,rgb(127 211 138/.4) 55%,transparent 70%);opacity:0;animation:yfFlash 1s 2.8s forwards}
@keyframes yfFlash{0%{opacity:0;scale:1}28%{opacity:1;scale:10}100%{opacity:0;scale:18}}
.yf-pc{position:relative;width:170px;height:170px;translate:0 -40px}
.yf-pc>span{position:absolute;inset:0}.yf-pc .st-pc{display:block;width:100%;height:100%;background-size:contain;background-repeat:no-repeat;background-position:center}
.yf-old{animation:yfOld 3.2s forwards;filter:drop-shadow(0 6px 10px rgb(0 0 0/.7))}
@keyframes yfOld{0%{opacity:0;scale:.85}10%{opacity:1;scale:1}80%{opacity:1;scale:1;filter:drop-shadow(0 6px 10px rgb(0 0 0/.7))}93%{opacity:1;scale:.7;filter:drop-shadow(0 0 28px #9be8a5) brightness(1.7)}100%{opacity:0;scale:.5;filter:drop-shadow(0 0 28px #9be8a5) brightness(2)}}
.yf-young{opacity:0;filter:drop-shadow(0 0 20px rgb(155 232 165/.85)) drop-shadow(0 6px 10px rgb(0 0 0/.7));animation:yfYoung .75s 3.05s cubic-bezier(.2,1.5,.4,1) forwards}
@keyframes yfYoung{from{opacity:0;scale:.25}to{opacity:1;scale:.8}}
.yf-cards{position:relative;width:0;height:0}
.yf-card{position:absolute;left:0;top:0;translate:calc(-50% + var(--x)) calc(-50% + 250px);rotate:var(--r);scale:.56;
  animation:yfDeal .45s calc(.1s + var(--i)*.06s) cubic-bezier(.2,.8,.2,1) backwards,yfAsh 1s calc(.95s + var(--i)*var(--gap)) ease-in forwards}
@keyframes yfDeal{from{opacity:0;translate:-50% calc(-50% - 40px);scale:.15}}
@keyframes yfAsh{0%{filter:none;opacity:1}30%{filter:grayscale(1) sepia(.5) brightness(.6);opacity:1}
  100%{filter:grayscale(1) brightness(.25) blur(7px);opacity:0;translate:calc(-50% + var(--x) + var(--dx)) calc(-50% + 90px);rotate:calc(var(--r) + var(--spin));scale:.34}}
.yf-years{align-self:start;margin-top:7vh;display:flex;align-items:baseline;gap:12px;color:#f3d98a;font:600 26px/1 var(--serif);font-variant:small-caps;letter-spacing:.1em;text-shadow:0 0 16px rgb(243 217 138/.7),0 2px 4px #000;animation:yfYears 3.6s forwards}
.yf-years b{font-size:74px;min-width:1.3em;text-align:right;font-variant-numeric:tabular-nums}
@keyframes yfYears{0%{opacity:0}10%,80%{opacity:1}100%{opacity:0}}
.yf-say{align-self:end;margin:0 0 9vh;display:flex;flex-direction:column;align-items:center;gap:8px;opacity:0;animation:yfSay .6s 3.4s cubic-bezier(.2,.8,.2,1) forwards;color:#f7f3ea;text-align:center}
@keyframes yfSay{from{opacity:0;translate:0 22px}to{opacity:1;translate:0 0}}
.yf-say b{font:600 42px/1.1 var(--serif);font-variant:small-caps;letter-spacing:.06em;color:#c9f5cf;text-shadow:0 0 20px rgb(127 211 138/.8),0 2px 4px #000}
.yf-say span{font:20px/1.3 var(--serif);opacity:.85}
.st-cards.small-gone{zoom:.6}
