@font-face{font-family:Goudy;src:url(fonts/goudy.woff2) format('woff2');font-display:swap}
@font-face{font-family:Goudy;src:url(fonts/goudy-italic.woff2) format('woff2');font-style:italic;font-display:swap}
@font-face{font-family:SongHead;src:url(fonts/song.woff2) format('woff2');font-display:swap}
:root{--bg:#d3dacb;--ink:#19211c;--dim:#48534b;--line:#19211c38;--red:#a82410;--lamp:#765000;color-scheme:light}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#0d1411;--ink:#efeadb;--dim:#a7b0a4;--line:#efeadb38;--red:#ff7357;--lamp:#ffcf87;color-scheme:dark}}
:root[data-theme=dark]{--bg:#0d1411;--ink:#efeadb;--dim:#a7b0a4;--line:#efeadb38;--red:#ff7357;--lamp:#ffcf87;color-scheme:dark}
*{box-sizing:border-box;margin:0}
html,body{height:100%;overflow:hidden;background:var(--bg);color:var(--ink);font:400 19px/1.45 Goudy,"Songti SC","Noto Serif SC","Source Han Serif SC",STSong,SimSun,serif;-webkit-font-smoothing:antialiased;overscroll-behavior:none;user-select:none;-webkit-user-select:none;transition:background-color .5s}
:lang(zh){--serif:SongHead,"Songti SC","Noto Serif SC","Source Han Serif SC",STSong,SimSun,serif}
html:lang(zh) body{font:400 17px/1.75 "PingFang SC","Hiragino Sans GB","Noto Sans SC","Microsoft YaHei",sans-serif}
button{font:inherit;color:inherit;background:none;border:0;padding:0;border-radius:0;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
a{color:inherit;text-underline-offset:3px;text-decoration-thickness:1px}
:focus-visible{outline:1.5px solid var(--red);outline-offset:4px}
#gl:focus-visible{outline:none}
[hidden]{display:none!important}
.sr:not(:focus-within){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#kb:focus-within{position:fixed;left:50%;top:70px;transform:translateX(-50%);z-index:20;background:var(--bg);border-top:1.5px solid var(--ink);padding:12px 18px;display:flex;gap:6px 18px;flex-wrap:wrap;max-width:560px;font-size:16px}
#gl{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none;opacity:1;transition:opacity .6s}
body.boot #gl{opacity:0}
body.over #gl{cursor:none}body.orbit #gl{cursor:grab}body.hand #gl{cursor:grab}body.hand.down #gl{cursor:grabbing}
header{position:fixed;inset:0 0 auto 0;display:flex;justify-content:space-between;align-items:baseline;padding:26px 56px;z-index:6;pointer-events:none}
header>*{pointer-events:auto}
@media (min-width:761px) and (min-height:541px){#gl{-webkit-mask-image:linear-gradient(#0000 18px,#000 58px);mask-image:linear-gradient(#0000 18px,#000 58px)}}
h1{font-weight:400;font-size:18px}
nav{display:flex;gap:26px;font-size:16.5px}
nav a{text-decoration:none}nav a:hover,nav button:hover{color:var(--red)}
html:lang(zh) h1,html:lang(zh) nav{font-size:15px}
#story{position:fixed;left:56px;top:15vh;width:min(440px,27vw);z-index:4}
#step{font-size:17px;color:var(--dim);margin-bottom:12px;font-variant-numeric:lining-nums}
#q{font-weight:400;font-size:clamp(38px,3.6vw,56px);line-height:1.06;letter-spacing:-.014em;text-wrap:balance}
html:lang(zh) #q{font-family:var(--serif);font-size:clamp(32px,2.85vw,44px);line-height:1.3;letter-spacing:0;word-break:keep-all;line-break:strict;text-wrap:balance}
#say{margin-top:22px;font-size:20px;line-height:1.42;user-select:text;-webkit-user-select:text}
html:lang(zh) #say{font-size:17px;line-height:1.75}
#say p+p{margin-top:12px}#say .d{color:var(--dim)}#say .v{color:var(--ink)}
#say p.new{animation:in .45s both}@keyframes in{from{opacity:0;transform:translateY(5px)}}
#say b{font-weight:400;border-bottom:1px solid var(--line)}
#say .take{margin-top:18px;padding-top:0;color:var(--ink)}
#act{margin-top:24px;display:flex;gap:12px 26px;flex-wrap:wrap;align-items:baseline}
.go{border-bottom:1.5px solid var(--red);color:var(--red);padding:2px 0 3px;font-size:20px}html:lang(zh) .go{font-size:17px}
.go:hover{color:var(--ink);border-color:var(--ink)}.go[disabled]{opacity:.35;pointer-events:none}
.sub{border-bottom:1px solid var(--line);padding:2px 0 3px}.sub:hover{border-color:currentColor}
.st{display:inline-flex;align-items:center;gap:4px}.st span{color:var(--dim);margin-right:8px}.st b{font-weight:400;min-width:1.5em;text-align:center;font-variant-numeric:lining-nums tabular-nums;font-size:22px;line-height:1}.st button{width:36px;height:36px;font-size:20px;line-height:1}.st button:hover{color:var(--red)}.st button[disabled]{opacity:.3;pointer-events:none}
html:lang(zh) .st b{font-size:19px}
#ways{list-style:none;padding:0;margin-top:18px;border-top:1px solid var(--line);font-size:17.500px}#ways li{display:flex;justify-content:space-between;gap:14px;padding:6px 0;border-bottom:1px solid var(--line);color:var(--dim)}#ways li.on{color:var(--ink)}#ways li.now span:first-child{color:var(--red)}html:lang(zh) #ways{font-size:15px}
#pager{position:fixed;left:56px;bottom:34px;display:flex;gap:26px;z-index:5;align-items:baseline;font-size:18px}html:lang(zh) #pager{font-size:16px}
#pager button{color:var(--dim);padding:4px 0;border-bottom:1.5px solid transparent}#pager button:hover{color:var(--ink)}#pager #next.hot{color:var(--red);border-color:var(--red)}#pager button[disabled]{opacity:.35;pointer-events:none}
#tools{position:fixed;left:56px;bottom:86px;z-index:5;display:flex;gap:10px 22px;align-items:center;flex-wrap:wrap;width:min(420px,30vw);font-size:17px}html:lang(zh) #tools{font-size:15px}
#tools>button{color:var(--dim);padding:6px 0}#tools>button:hover{color:var(--ink)}#tools>button[disabled]{opacity:.35;pointer-events:none}#tools i{flex-basis:100%;height:0}
#side{position:fixed;right:56px;top:108px;width:min(250px,18vw);z-index:4;bottom:34px;display:flex;flex-direction:column;gap:30px}
#dial{width:200px;align-self:flex-end;overflow:visible;fill:none;stroke:var(--ink);stroke-width:1;margin-right:-8px}
#dial text{fill:var(--ink);stroke:none;font:15px Goudy,serif;text-anchor:middle;dominant-baseline:central;font-variant-numeric:lining-nums}#dial .n{cursor:pointer}#dial .n:hover{fill:var(--red)}#dial .hand{stroke-width:1.6}#dial .hub{fill:var(--ink);stroke:none}#dial .pit{fill:var(--dim);font-size:12px}
#ledger button{width:100%;display:flex;justify-content:space-between;align-items:baseline;text-align:left;cursor:default;padding-bottom:7px;font-size:18px}#ledger em{font-style:normal;color:var(--dim);font-size:16px;font-variant-numeric:lining-nums}html:lang(zh) #ledger button{font-size:16px}html:lang(zh) #ledger em{font-size:14px}
#ll{list-style:none;padding:0;border-top:1px solid var(--ink)}
#ll li{min-height:33px;border-bottom:1px solid var(--line);padding:4px 0 4px 2px;font-size:18px;line-height:24px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;color:var(--ink)}#ll li small{display:none;flex-basis:100%;font-size:16px;line-height:1.3;color:var(--dim);padding:0 0 5px}html:lang(zh) #ll li small{font-size:14px;line-height:1.55}#ll li.open small{display:block}#ll li.has{cursor:pointer}#ll li.has:hover{color:var(--lamp)}html:lang(zh) #ll li{font-size:15.500px}
#ll li i{font-style:normal;color:var(--dim);font-size:14px}
#ll li.lit{color:var(--lamp)}#ll li.gone span{text-decoration:line-through;text-decoration-color:var(--red);text-decoration-thickness:1.5px;color:var(--dim)}
#ll li.new span{animation:in .6s both}
#broke{font-size:17px}#broke h3{font-weight:400;font-size:18px;color:var(--ink)}#broke h3 b{font-weight:400;color:var(--red);font-variant-numeric:lining-nums}#broke p{color:var(--red);line-height:1.4;margin-top:3px}html:lang(zh) #broke{font-size:15px}html:lang(zh) #broke h3{font-size:16px}
#tag{position:fixed;left:0;top:0;z-index:5;pointer-events:none;opacity:0;transition:opacity .35s;font-size:19px;white-space:nowrap;color:var(--ink)}#tag.on{opacity:1}#tag i{position:absolute;height:1px;background:var(--ink);transform-origin:0 0}#tag span{position:absolute;background:var(--bg);padding:1px 8px 2px}html:lang(zh) #tag{font-size:16px}
#sc{position:fixed;left:0;top:0;width:54px;height:54px;margin:-27px 0 0 -27px;pointer-events:none;z-index:7;opacity:0;stroke:var(--ink);stroke-width:1.7;fill:none;stroke-linejoin:round;transition:opacity .2s;overflow:visible}
#sc path:first-child{fill:var(--ink)}#sc.on{opacity:1}#sc.hit{stroke:var(--red)}#sc.hit path:first-child{fill:var(--red)}
#sa,#sb{transition:transform .12s}#sa{transform:rotate(14deg)}#sb{transform:rotate(-14deg)}#sc.hit #sa{transform:rotate(19deg)}#sc.hit #sb{transform:rotate(-19deg)}#sc.snap #sa,#sc.snap #sb{transform:rotate(0)}
#sc.idle #sa{animation:sa 1.8s infinite}#sc.idle #sb{animation:sb 1.8s infinite}@keyframes sa{0%,55%,100%{transform:rotate(20deg)}72%{transform:rotate(2deg)}}@keyframes sb{0%,55%,100%{transform:rotate(-20deg)}72%{transform:rotate(-2deg)}}
dialog{border:0;background:var(--bg);color:var(--ink);padding:0;margin:auto;width:min(680px,92vw);max-height:min(86vh,900px);overflow:auto;border-top:2px solid var(--ink);user-select:text;-webkit-user-select:text;z-index:30}
dialog::backdrop{background:#0b100dcc}
#aboutt{padding:34px 44px 44px}#aboutt h2{font-weight:400;font-size:32px;line-height:1.15;margin-bottom:14px}#aboutt h3{font-weight:400;font-size:21px;margin:22px 0 4px}#aboutt p{margin:8px 0;font-size:18.500px;line-height:1.5}#aboutt .s{color:var(--dim);font-size:16.500px}html:lang(zh) #aboutt p{font-size:16px;line-height:1.8}html:lang(zh) #aboutt .s{font-size:14.500px}html:lang(zh) #aboutt h2{font-family:var(--serif);font-size:28px}
.x{position:sticky;top:12px;float:right;margin:12px 14px 0 0;width:44px;height:44px;font-size:17px}.x:before{content:"";position:absolute;left:14px;right:14px;top:21px;border-top:1.5px solid;transform:rotate(45deg)}.x:after{content:"";position:absolute;left:14px;right:14px;top:21px;border-top:1.5px solid;transform:rotate(-45deg)}
#toast{position:fixed;left:50%;bottom:40px;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:8px 18px;font-size:17px;z-index:40;opacity:0;pointer-events:none;transition:opacity .25s;max-width:90vw}#toast.on{opacity:1}
@media (min-width:761px){body.ending #story{top:92px;max-height:calc(100vh - 170px);overflow:auto;padding-bottom:10px}body.ending #say{margin-top:14px;font-size:18.500px}html:lang(zh) body.ending #say{font-size:16px}body.ending #act{margin-top:18px;column-gap:20px}body.ending #act .go,body.ending #act .sub{font-size:17.500px}}
#coda p{margin-top:20px;color:var(--dim);font-size:17.500px;line-height:1.42}html:lang(zh) #coda p{font-size:15px;line-height:1.75}
/* narrow desktop */
@media (min-width:761px) and (max-width:1120px){header{padding:20px 28px}#story,#pager,#tools{left:28px}#side{right:28px}#story{width:250px}#tools{width:250px}#q{font-size:34px}#dial{width:150px}#side{width:170px}}
@media (min-width:761px) and (max-height:760px){#story{top:84px}#q{font-size:36px!important}#say{margin-top:14px;font-size:18px}#side{top:76px;gap:16px}#dial{width:150px}#ll li{min-height:27px;padding:1px 0}#tools{bottom:72px}}
/* phone */
@media (max-width:760px),(max-height:540px){
  header{padding:13px 18px 0;align-items:center}h1{position:absolute;clip-path:inset(50%)}nav{gap:12px;font-size:15px;width:100%;justify-content:space-between;white-space:nowrap}html:lang(zh) nav{font-size:14px;gap:13px}
  nav button,nav a{padding:6px 0}
  header{background:var(--bg);min-height:54px}
}
@media (max-width:760px){
  #story{left:0;right:0;top:auto;bottom:calc(56px + env(safe-area-inset-bottom));width:auto;padding:12px 18px 6px;background:var(--bg)}
  #step{position:absolute;right:18px;top:12px;font-size:15px;margin:0}
  #q{font-size:29px!important;line-height:1.1;padding-right:44px}html:lang(zh) #q{font-size:24px!important;line-height:1.3}
  #say{margin-top:8px;font-size:18px;line-height:1.36;min-height:49px}html:lang(zh) #say{font-size:16px;line-height:1.6;min-height:51px;margin-top:6px}
  #say p+p{margin-top:6px}
  #act{margin-top:9px;gap:8px 22px}#act:empty{display:none}.go{font-size:19px;padding:5px 0}.sub{padding:5px 0}
  #pager{left:0;right:0;bottom:0;padding:8px 18px calc(12px + env(safe-area-inset-bottom));background:var(--bg);height:calc(56px + env(safe-area-inset-bottom));font-size:18px}#pager #skip{margin-left:auto}
  #pager button{padding:6px 0}
  #tools{left:0;right:0;width:auto;bottom:calc(56px + env(safe-area-inset-bottom));padding:2px 18px 4px;background:var(--bg);gap:0 20px;font-size:17px}#tools .st:nth-child(2){margin-left:auto}
  #tools>button{padding:9px 0}
  body.tools #story{bottom:calc(56px + var(--th,0px) + env(safe-area-inset-bottom))}
  body.ending #story{max-height:53vh;max-height:53dvh;overflow:auto}body.ending #step{display:none}#broke.zero{display:none}.st span{margin-right:4px}.st button{width:33px}.st b{min-width:1.3em}
  #side{left:0;right:0;padding:0 18px;background:var(--bg);width:auto;top:52px;bottom:auto;gap:0;pointer-events:none}
  #dial{display:none}#ledger{pointer-events:auto}
  #ledger button{font-size:15px;cursor:pointer;padding:3px 0 5px;gap:10px;align-items:center;border-bottom:1px solid var(--line)}html:lang(zh) #ledger button{font-size:14px}#ledger em{font-size:15px}#ledger button:after{content:"";width:8px;height:8px;border:solid var(--ink);border-width:0 1.3px 1.3px 0;transform:rotate(45deg) translate(-2px,-2px)}#ledger button span{flex:1}
  #ll{display:none;border:0;background:var(--bg);padding-bottom:8px}#ledger.open #ll{display:block}#ledger.open button:after{transform:rotate(225deg) translate(-2px,-2px)}
  #ledger .dots{display:flex;gap:5px}
  header>*{margin:0!important;padding:0!important}#broke{position:absolute;top:34px;left:18px;font-size:15px;background:var(--bg);padding:4px 8px 4px 0}#broke h3{font-size:15px}#broke p{max-width:104px;font-size:14px;line-height:1.3}html:lang(zh) #broke p{max-width:88px}html:lang(zh) #broke h3{font-size:14px}
  #ledger.open~#broke{display:none}
  #tag{font-size:17px}#aboutt{padding:22px 22px 34px}
  body:not(.ending) #toast{bottom:auto;top:96px}
  #ways{font-size:16px;margin-top:10px}#ways li{padding:4px 0}
}
/* landscape phone */
@media (min-width:541px) and (max-height:540px){
  header{padding:8px 18px 0}#story{left:18px;top:50px;bottom:auto;width:36vw;padding:0;background:none}#step{position:static;margin:0;font-size:14px}#q{font-size:25px!important;padding:0}html:lang(zh) #q{font-size:21px!important}#say{font-size:16px;line-height:1.32;margin-top:6px}html:lang(zh) #say{font-size:14.500px;line-height:1.55}#act{margin-top:8px}.go{font-size:17px}
  #pager{left:18px;right:auto;bottom:6px;padding:0;background:none;height:auto;font-size:16px;gap:18px}#tools{left:18px;bottom:38px;width:38vw;padding:0;background:none;font-size:15px;gap:0 14px}.st button{width:30px;height:30px}
  body.tools #story{bottom:auto}#side{left:auto;right:18px;top:52px;width:24vw;gap:8px;padding:0;background:none}header{min-height:0!important;background:none!important}body.ending #side{display:none}body.ending #story{width:48vw;top:44px!important;bottom:38px;max-height:none!important;overflow:auto}body.ending #say{margin-top:4px!important;font-size:15px!important}#say .take{font-size:15.500px!important;line-height:1.3!important}#say p+p{margin-top:5px}body.ending #act{margin-top:8px!important;gap:2px 16px}body.ending #coda,#broke.zero{display:none}#ll li small{display:none!important}#dial{display:none}#ll{display:block}#ledger button{font-size:14px;padding:0 0 3px}#ledger button:after{display:none}#ll li{min-height:21px;line-height:18px;font-size:14px!important;padding:1px 0}#ll li i{display:none}#broke{position:static}#broke p{max-width:none}
  #ways{font-size:14px;margin-top:6px}#ways li{padding:1px 0}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

#meter{position:relative;width:100%;max-width:330px;height:54px;font-size:16px;color:var(--dim);font-variant-numeric:lining-nums tabular-nums}#meter i{position:absolute;left:0;right:0;top:10px;border-top:1px solid var(--line)}#meter b{position:absolute;left:0;right:0;top:9px;height:3px;background:var(--ink);transform-origin:0 0;transform:scaleX(0)}#meter u{position:absolute;top:3px;height:15px;border-left:1.5px solid var(--ink)}#meter em{position:absolute;left:60%;top:22px;font-style:normal;padding-left:0;white-space:nowrap}#meter em:before{content:"";position:absolute;left:0;top:-21px;height:19px;border-left:1.5px solid var(--red)}#meter span{position:absolute;left:0;top:22px;color:var(--ink)}#meter.hot em{color:var(--red)}
@media (max-width:760px){#meter{height:44px;max-width:none}}
#say .take{font-style:italic;font-size:21px;line-height:1.36}html:lang(zh) #say .take{font-style:normal;font-family:var(--serif);font-size:18.500px;line-height:1.65}
@media (max-width:360px){nav{gap:7px!important;font-size:13.500px!important}}
@media (min-width:1700px) and (min-height:900px){header,#story,#side,#tools,#pager{zoom:1.16}}
#ledgerh{border-bottom:1px solid var(--ink)}#ll{border-top:0!important}#lh{color:var(--dim);font-size:16px;line-height:1.35;padding:8px 2px}html:lang(zh) #lh{font-size:14px;line-height:1.6}#ll.none li:nth-child(-n+2){display:none}@media (max-width:760px){#lh{display:none}#ledger.open #lh{display:block}}
@media (min-width:761px){#story,#side{transition:opacity .35s}body.close #story,body.close #side{opacity:0}}
@media (max-width:760px){#say{min-height:52px}}
/* one thing at a time: the list wakes with the first find, the floor dial comes with the rides */
#ledger,#dial{transition:opacity .5s}#ledger.sleep{opacity:0;pointer-events:none!important}#ledger.sleep button{visibility:hidden}
body[data-ch="1"] #dial,body[data-ch="2"] #dial,body[data-ch="3"] #dial,body[data-ch="4"] #dial,body[data-ch="5"] #dial,body[data-ch="6"] #dial{visibility:hidden}
@media (max-width:760px){#ledger.sleep{display:none}}
/* --- play pass, 25 Nov --- */
.big{font-size:22px;border:1.5px solid var(--red);color:var(--red);padding:9px 26px 10px;min-width:104px}.big:hover{background:var(--red);color:var(--bg)}.big[disabled]{opacity:.35;pointer-events:none}html:lang(zh) .big{font-size:19px}
#pager #next.hot{font-size:22px;border:0;background:var(--red);color:var(--bg);padding:9px 30px 10px}#pager #next.hot:hover{background:var(--ink)}html:lang(zh) #pager #next.hot{font-size:19px}
#pager{flex-direction:row}#pager #skip{font-size:16px}html:lang(zh) #pager #skip{font-size:14.500px}
#dots{display:flex;gap:17px;width:100%}#dots i{width:7px;height:44px;display:block;position:relative;background:repeating-linear-gradient(155deg,var(--ink) 0 2px,#b9b4a6 2px 5px);border-left:1px solid var(--ink);border-right:1px solid var(--ink)}#dots i.cut{-webkit-mask:linear-gradient(#000 0 15px,#0000 15px 29px,#000 29px);mask:linear-gradient(#000 0 15px,#0000 15px 29px,#000 29px);background:var(--red);border-color:var(--red)}
#q.ans{animation:in .5s both}
.st .plus{border:1.5px solid var(--red);color:var(--red);width:48px;height:44px;font-size:24px}.st .plus:hover{background:var(--red);color:var(--bg)!important}
#act .st button:not(.plus){width:44px;height:44px}
#rings i{position:fixed;left:-15px;top:-15px;width:30px;height:30px;border:1.7px solid var(--red);border-radius:50%;pointer-events:none;z-index:3;background:#ffffff26;animation:ring 2.2s infinite}#rings i:after{content:"";position:absolute;inset:9.500px;border-radius:50%;background:var(--red)}#rings i.on{background:#ffd58a99}@keyframes ring{0%,100%{box-shadow:0 0 0 0 #c5301f55}50%{box-shadow:0 0 0 7px #c5301f00}}
#hov{position:fixed;left:0;top:0;z-index:8;background:var(--ink);color:var(--bg);padding:2px 10px 3px;font-size:17px;pointer-events:none;white-space:nowrap}html:lang(zh) #hov{font-size:15px}
#grab{position:fixed;left:-32px;top:-64px;width:64px;z-index:4;pointer-events:none;animation:pull 1.5s infinite}#grab svg{width:64px;height:128px;fill:none;stroke:var(--red);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}@keyframes pull{0%{translate:0 -22px;opacity:0}25%{opacity:1}75%{opacity:1}100%{translate:0 34px;opacity:0}}
#halo1{position:fixed;width:104px;height:104px;border:2px solid var(--red);border-radius:50%;pointer-events:none;z-index:3;animation:ring2 1.8s infinite}@keyframes ring2{0%{scale:.75;opacity:.55}50%{scale:1;opacity:1}100%{scale:.75;opacity:.55}}
#sc{width:78px;height:78px;margin:-39px 0 0 -39px}#sc.idle{stroke:var(--red)}#sc.idle path:first-child{fill:var(--red)}
#ledger.sleep{opacity:1}
#ll li{padding:0;min-height:0}#ll li button{width:100%;display:flex;justify-content:space-between;text-align:left;padding:5px 2px;font-size:18px;cursor:pointer}html:lang(zh) #ll li button{font-size:16px}#ll li button:hover{color:var(--red)}#ll li i{font-style:normal;color:var(--dim)}#ll li.gone button{color:var(--dim);cursor:default}#ll li.gone span{text-decoration:line-through;text-decoration-color:var(--red)}
#ways li[role=button]{cursor:pointer}#ways li[role=button]:hover{color:var(--red)}#ways li.now{color:var(--ink)}#ways li.now span:first-child{color:var(--red)}
#act #ways{width:100%;margin-top:0}
#meter{max-width:360px}#meter span{white-space:nowrap}#meter b{height:7px;top:7px}
@media (max-width:760px){#ledger button{font-size:15px}#ll li button{padding:9px 2px;font-size:17px!important;border:0}#ll li button:after{display:none}#ways li{padding:5px 0}.big{flex:1}#pager #next.hot{padding:6px 26px 7px;font-size:19px}body.tools #say{min-height:0}#ledger.open{background:var(--bg)}}
@media (min-width:541px) and (max-height:540px){#ways{font-size:13px!important}.big{font-size:16px;padding:5px 14px}#dots i{height:20px;width:11px}#ll li button{font-size:13px!important;padding:1px 0}}
@media (min-width:761px) and (min-height:541px){#pager{position:static!important;margin-top:38px;align-items:center}#act:not(:empty)+#pager{margin-top:34px}}
body[data-ch="7"]:not(.free) #dial{visibility:hidden}
#tools>button{font-size:18px}html:lang(zh) #tools>button{font-size:16px}
@media (min-width:761px) and (min-height:541px){body:not(.free) #tools{bottom:34px}}
@media (max-width:760px){#rings i{left:-11px;top:-11px;width:22px;height:22px}#rings i:after{inset:6.500px}}

#meter small{position:absolute;top:-13px;font-size:14px;line-height:14px;transform:translateX(-100%);padding-right:5px;white-space:nowrap;color:var(--dim)}#meter{margin-top:16px;overflow:visible}#meter small:after{content:"";position:absolute;right:0;top:15px;height:15px;border-left:1.5px solid var(--ink)}
#meter.bal u{border:0;background:var(--red);opacity:.5;top:5px;height:11px}#meter.bal em:before{display:none}#meter.bal em{color:var(--red);left:60%}
/* buttons never move inside a step */
@media (min-width:761px) and (min-height:541px){body:not(.ending):not([data-ch="7"]) #q{min-height:2.16em}html:lang(zh) body:not(.ending):not([data-ch="7"]) #q{min-height:2.6em;display:flex;align-items:flex-end}body:not(.ending):not([data-ch="7"]) #say{min-height:6.2em}html:lang(zh) body:not(.ending):not([data-ch="7"]) #say{min-height:5.4em}
body.ending #coda{position:fixed;right:56px;top:128px;width:min(250px,18vw);z-index:4}body.ending #coda p{margin:0;font-size:19px;line-height:1.5;color:var(--ink);border-top:1.5px solid var(--red);padding-top:14px}html:lang(zh) body.ending #coda p{font-size:16.500px;line-height:1.85}body.ending #ledger{display:none}body.ending #story{max-height:none;overflow:visible}
body.close2 #side{opacity:0}}
@media (min-width:1700px) and (min-height:900px){body.ending #coda{right:48px}}
#coda p{color:var(--ink)}
@media (max-width:760px){body.ending #story{max-height:64vh;max-height:64dvh}body[data-ch="4"] #say,body[data-ch="5"] #say{min-height:80px}html:lang(zh) body[data-ch="4"] #say,html:lang(zh) body[data-ch="5"] #say{min-height:78px}}
body.ending #dial{display:none}
#lv b{position:fixed;left:0;top:0;font-weight:400;font-size:19px;z-index:3;pointer-events:none;background:var(--bg);padding:0 6px}html:lang(zh) #lv b{font-size:16px}
#bell{position:fixed;z-index:4;pointer-events:none}#bell:before,#bell:after{content:"";position:absolute;left:-14px;top:-14px;width:28px;height:28px;border:2.5px solid var(--red);border-radius:50%;animation:bell 1.1s infinite}#bell:after{animation-delay:.5s}@keyframes bell{0%{scale:.4;opacity:1}100%{scale:3.6;opacity:0}}
#bub{position:fixed;left:0;top:0;z-index:5;background:var(--ink);color:var(--bg);padding:5px 14px 7px;font-size:19px;white-space:nowrap;pointer-events:none}html:lang(zh) #bub{font-size:17px}

/* top bar standard */
header{align-items:center;height:56px;padding:0 28px!important;min-height:0!important;background:none!important}
header>*{margin:0!important;padding:0!important}
h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
header #home,header nav,header nav button{font-size:14px!important;color:var(--dim)}
header nav{width:auto;gap:20px;align-items:center;justify-content:flex-end}
header #home{display:inline-flex;align-items:center;min-height:40px;text-decoration:none}
header nav button{min-height:40px;display:inline-flex;align-items:center;padding:0!important}
header #home:hover,header nav button:hover{color:var(--red)}
header #theme svg{display:block}
@media (max-width:760px),(max-height:540px){header{height:48px;padding:0 16px!important}header nav{gap:14px}}
