:root{
  --ink:#0e1116; --slab:#171c24; --line:#2b3442; --paper:#e8e2d0; --dim:#9aa3b2;
  --pix:"Jersey 20","IBM Plex Mono",monospace;
  --orange:#ff7a1a; --green:#3ddc84; --red:#ff4d5e; --cyan:#57e3ff;
}
*{box-sizing:border-box}
body{font-synthesis:none;margin:0;background:var(--ink);color:var(--paper);font:400 15px/1.5 "IBM Plex Mono",ui-monospace,Consolas,monospace}
h1,h2{font-family:var(--pix);font-weight:400;letter-spacing:.02em;margin:0}
.top{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;padding:16px 20px;border-bottom:3px solid var(--orange);background:var(--slab)}
.top h1{font-size:42px;color:var(--orange);letter-spacing:.02em}
.premise{margin:0;flex:1 1 320px;color:var(--paper)}
.clockbox{display:flex;gap:14px;font:400 24px var(--pix)}
.clockbox #clock{color:var(--cyan)}
.ending{margin:16px 20px 0;padding:18px 20px;border:3px solid var(--green);background:#0f2a1c;font:400 24px var(--pix)}
.ending[hidden]{display:none}

.layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;padding:20px;max-width:1500px;margin:0 auto}
@media(max-width:1020px){.layout{grid-template-columns:1fr}.side{order:-1}}
.stage{position:relative;border:3px solid var(--line);background:#000;line-height:0}
#world{width:100%;height:auto;image-rendering:pixelated;display:block}
.bubble{position:absolute;max-width:min(300px,62%);transform:translate(-50%,-100%);background:var(--paper);color:var(--ink);
  border:3px solid var(--ink);padding:8px 10px;line-height:1.35;font-size:13px;pointer-events:none;box-shadow:4px 4px 0 rgba(0,0,0,.5)}
.bubble::after{content:"";position:absolute;left:50%;bottom:-11px;margin-left:-6px;border:6px solid transparent;border-top-color:var(--ink)}
.bubble.below::after{bottom:auto;top:-11px;border-top-color:transparent;border-bottom-color:var(--ink)}
.bubble.say{background:#fff3b0}
.bubble[hidden]{display:none}
.nowbar{display:flex;flex-wrap:wrap;gap:8px 18px;padding:10px 14px;background:var(--slab);border:3px solid var(--line);border-top:0}
.nowbar .where{color:var(--orange);font-weight:600}
.nowbar .carry{color:var(--dim);margin-left:auto}

.cols{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px;margin-top:20px}
@media(max-width:760px){.cols{grid-template-columns:1fr}}
.stack{display:flex;flex-direction:column;gap:20px}
.side{display:flex;flex-direction:column;gap:20px}
.card{background:var(--slab);border:3px solid var(--line);padding:16px}
.card h2{font-size:25px;margin-bottom:10px}
.hint{margin:0 0 10px;color:var(--dim);font-size:13px}
ul,ol{list-style:none;margin:0;padding:0}

.feed{max-height:560px;overflow:auto;display:flex;flex-direction:column;gap:12px}
.feed li{border-left:3px solid var(--line);padding-left:10px}
.feed time{color:var(--dim);font-size:12px}
.feed .act{color:var(--orange);font-weight:600}
.feed .thought{margin:2px 0;color:var(--paper)}
.feed .said{margin:2px 0;color:#fff3b0}
.feed .res{margin:2px 0;color:var(--dim);font-size:13px}
.feed li.big{border-color:var(--cyan)}
.feed li.big .res{color:var(--cyan);font-size:14px}

.notes li{padding:6px 0;border-bottom:1px dashed var(--line);font-size:13.5px}
.notes.wall li{font-family:var(--pix);font-size:19px;color:#c9c2ad}
.notes:empty::after,.posts:empty::after,.calls:empty::after,.feed:empty::after{content:"Nothing yet.";color:var(--dim);font-size:13px}
#painting{width:144px;height:144px;image-rendering:pixelated;border:3px solid var(--line);background:#fff;display:block}

.vote{border-color:var(--orange)}
.bars{display:flex;flex-direction:column;gap:8px}
.bar{position:relative;display:flex;justify-content:space-between;padding:8px 10px;background:var(--ink);border:2px solid var(--line);overflow:hidden}
.bar .fill{position:absolute;inset:0 auto 0 0;width:0;transition:width .4s}
.bar .fill.release{background:#16643c}.bar .fill.keep{background:#7a1f29}
.bar .lab,.bar b{position:relative}
.votebtns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.btn{min-height:50px;border:3px solid var(--ink);font:400 20px var(--pix);cursor:pointer;color:var(--ink);box-shadow:4px 4px 0 #000}
.btn:active{transform:translate(3px,3px);box-shadow:1px 1px 0 #000}
.btn.release{background:var(--green)}.btn.keep{background:var(--red)}.btn.plain{background:var(--paper);padding:0 16px;margin-top:10px}
.btn:disabled{opacity:.45;cursor:default;transform:none}
:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.voted{min-height:1.4em;margin:10px 0 0;color:var(--cyan);font-size:13.5px}
.closes{margin:6px 0 0}.closes b{color:var(--orange)}
.rule{margin:6px 0 10px;color:var(--dim);font-size:13px}
.history li{display:flex;justify-content:space-between;font-size:13px;padding:3px 0;color:var(--dim)}
.history .won{color:var(--green)}

label{display:block;font-size:13px;color:var(--dim);margin:8px 0 4px}
input,textarea{width:100%;background:var(--ink);color:var(--paper);border:2px solid var(--line);padding:9px 10px;font:inherit;resize:vertical}
.calls li,.posts li{padding:8px 0;border-top:1px dashed var(--line);font-size:13.5px}
.calls{margin-top:12px}
.calls .q{color:var(--dim)}.calls .a{color:#fff3b0}
.posts time{display:block;color:var(--dim);font-size:12px}
.posts .dry{color:var(--dim);font-size:12px}
footer{padding:20px;color:var(--dim);font-size:12.5px;max-width:1500px;margin:0 auto}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
#world{cursor:grab;touch-action:none}
.ways li{padding:8px 0;border-top:1px dashed var(--line)}
.wayrow{display:flex;justify-content:space-between;align-items:center;gap:10px}
.pips{display:flex;gap:4px}
.pips i{width:12px;height:12px;border:2px solid var(--line);background:var(--ink)}
.pips i.on{background:var(--green);border-color:var(--green)}
.ways .hint{margin:6px 0 0}
.mug{display:flex;gap:14px;align-items:center}
.mug img{width:120px;height:120px;object-fit:cover;border:3px solid var(--orange);image-rendering:auto;flex:none}
.mug h2{margin-bottom:6px;color:var(--orange)}
.mug .hint{margin:0 0 4px}
#world{image-rendering:auto}

/* phones and narrow windows: the prison first, then the vote, then everything else */
@media(max-width:1020px){
  .layout{display:flex;flex-direction:column;gap:14px;padding:12px}
  .stagecol,.side{display:contents}
  .stage{order:1}.nowbar{order:2;margin-top:-14px}
  .side > .vote{order:3}
  .cols{order:4;margin-top:0}
  .side > .mug{order:5}
  .side > article:nth-child(3){order:6}
  .side > article:nth-child(4){order:7}
  .side > article:nth-child(5){order:8}
  #world{touch-action:pan-y}
}
@media(max-width:700px){
  body{font-size:14px}
  .top{padding:10px 12px;gap:6px 12px}
  .top h1{font-size:32px}
  .premise{flex-basis:100%;order:3;font-size:12.5px}
  .clockbox{font-size:21px;margin-left:auto}
  .card{padding:12px}
  .card h2{font-size:22px}
  .bubble{font-size:11.5px;padding:6px 8px;max-width:78%}
  .nowbar{font-size:13px;padding:8px 10px}
  .nowbar .carry{margin-left:0;flex-basis:100%}
  .votebtns{gap:8px}
  .btn{min-height:54px;font-size:20px}
  .feed{max-height:420px}
  .mug img{width:84px;height:84px}
  footer{padding:14px 12px}
  input,textarea{font-size:16px}
}

/* what it says or thinks: one fixed strip across the top of the picture, so it never moves */
.bubble{left:8px;right:8px;top:8px;transform:none;max-width:none;font-size:14px;line-height:1.4;padding:8px 12px;
  max-height:34%;overflow:hidden;overflow-wrap:anywhere;background:rgba(244,241,232,.96)}
.bubble::after{display:none}
.bubble b{font-family:var(--pix);font-size:1.15em;color:#b3540c;margin-right:8px;text-transform:none}
.bubble.say{background:rgba(255,243,176,.97)}
.bubble[hidden]{display:none}
.found li{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px dashed var(--line);font-size:13.5px}
.found b{color:var(--cyan);white-space:nowrap}
@media(max-width:1020px){.side > article:nth-child(6){order:9}}
@media(max-width:700px){.bubble{font-size:12.5px;line-height:1.35;left:6px;right:6px;top:6px}}
.mug{flex-wrap:wrap;align-items:flex-start}
.mug .stats{flex-basis:100%;margin-top:4px}
.stats b{white-space:normal;text-align:right;max-width:60%}
.inspect{position:absolute;left:8px;right:8px;bottom:50px;background:rgba(16,19,26,.94);border:3px solid var(--cyan);color:var(--paper);padding:10px 12px;line-height:1.4;font-size:13.5px;box-shadow:4px 4px 0 rgba(0,0,0,.5)}
.inspect[hidden]{display:none}
.inspect b{display:block;font-family:var(--pix);color:var(--cyan);font-size:20px;margin-bottom:2px}
#world{cursor:crosshair}
@media(max-width:700px){.inspect{left:6px;right:46px;bottom:6px;font-size:12.5px}}

/* taking part */
.take{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;padding:0 20px 20px;max-width:1500px;margin:0 auto}
.take h3{font:400 18px var(--pix);margin:14px 0 6px;color:var(--orange)}
.choices{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.pick,.up{font:500 13px "IBM Plex Mono",monospace;background:var(--ink);color:var(--paper);border:2px solid var(--line);padding:8px 10px;cursor:pointer;min-height:38px}
.pick:hover,.up:hover{border-color:var(--cyan)}
.pick.mine{border-color:var(--green);color:var(--green)}
.pick:disabled{opacity:.6;cursor:default}
.up{padding:4px 8px;min-height:30px;flex:none;color:var(--cyan)}
.msgs li,.qs li,.theory{display:flex;gap:10px;align-items:flex-start;padding:7px 0;border-top:1px dashed var(--line);font-size:13.5px}
.msgs:empty::after{content:"No messages are waiting. Leave one above.";color:var(--dim);font-size:13px}
.qs li{flex-direction:column;gap:6px}
.yn{display:flex;gap:8px}
.board{padding:0;counter-reset:rank}
.board li{display:flex;justify-content:space-between;padding:4px 0;font-size:13.5px;counter-increment:rank}
.board li::before{content:counter(rank) ".";color:var(--dim);width:24px}
.board li span{flex:1}
.board li.you{color:var(--green)}
.board:empty::after{content:"Nobody has scored yet.";color:var(--dim);font-size:13px}
.meter{flex:1;max-width:60%;height:12px;background:var(--ink);border:2px solid var(--line);display:block}
.meter i{display:block;height:100%;background:var(--green)}
.meter i.bad{background:var(--red)}
.gallery{display:flex;flex-wrap:wrap;gap:8px}
.gallery canvas{width:60px;height:60px;image-rendering:pixelated;border:2px solid var(--line);background:#fff}
.gallery:empty::after{content:"It has not painted anything yet.";color:var(--dim);font-size:13px}
.theories{margin-top:8px;border-top:1px solid var(--line);padding-top:6px;font-size:12.5px}
.theories i{color:var(--dim);font-style:normal}
.theory input{flex:1;padding:5px 8px;font-size:13px}
.inspect{max-height:62%;overflow:auto}
@media(max-width:700px){.take{padding:0 12px 12px;gap:14px}}

/* the plain-words strip: what is happening now, and what a visitor can do about it */
.story{max-width:1500px;margin:0 auto;padding:14px 20px 0}
.story .headline{margin:0;font:400 23px/1.35 var(--pix);color:var(--paper)}
.story .headline b{color:var(--orange);font-weight:600}
.story .sub{margin:4px 0 0;color:var(--dim);font-size:13px}
.doit{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px;font-size:13px;color:var(--dim)}
.doit a{color:var(--ink);background:var(--cyan);text-decoration:none;padding:6px 10px;font-weight:600;border:2px solid var(--ink);box-shadow:2px 2px 0 var(--line)}
.doit a:first-of-type{background:var(--orange)}
.doit a:hover,.doit a:focus-visible{background:var(--paper)}
.yours{list-style:none;margin:10px 0 0;padding:0}
.yours li{border-left:3px solid var(--line);padding:6px 0 6px 10px;margin-bottom:8px;font-size:13px}
.yours li.played{border-color:var(--cyan)} .yours li.answered{border-color:var(--green)}
.yours .q{color:var(--paper)} .yours .a{color:var(--dim);margin-top:2px}
.yours li.answered .a{color:var(--green)}
html{scroll-behavior:smooth} .card{scroll-margin-top:12px}
@media(max-width:700px){.story{padding:10px 12px 0}.story .headline{font-size:20px}.doit{gap:6px;font-size:12px}.doit a{padding:5px 8px}}

/* what it is carrying: a row of slots under the picture, like a game's hotbar */
.invbar{display:flex;align-items:stretch;gap:6px;padding:8px 10px;background:#10131a;border:3px solid var(--line);border-top:0;overflow-x:auto}
.invbar .lab{align-self:center;font:400 16px var(--pix);color:var(--dim);margin-right:4px;white-space:nowrap}
.slot{flex:0 0 auto;min-width:58px;height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;background:var(--slab);border:2px solid var(--line);color:var(--paper);font:inherit;padding:2px 6px}
button.slot{cursor:pointer} button.slot:hover,button.slot:focus-visible{border-color:var(--cyan)}
.slot .ico{font-size:20px;line-height:1.1} .slot .nm{font-size:10.5px;color:var(--dim);white-space:nowrap;max-width:92px;overflow:hidden;text-overflow:ellipsis}
.slot.empty{min-width:44px;opacity:.45;border-style:dashed}
.nowbar .carry{display:none}
.inspect .line{margin-top:4px}
@media(max-width:1020px){.invbar{order:2;margin-top:-14px}.nowbar{margin-top:-14px}}
@media(max-width:700px){.invbar{padding:6px 8px;gap:5px}.slot{min-width:50px;height:48px}.slot.empty{min-width:34px}.slot .ico{font-size:17px}}

/* small speech boxes over whoever is talking */
.talk{position:absolute;transform:translate(-50%,-100%);max-width:170px;padding:4px 7px;background:#fff;color:#10131a;border:2px solid #10131a;border-radius:6px;font:500 11px/1.3 "IBM Plex Mono",monospace;
  box-shadow:2px 2px 0 rgba(0,0,0,.45);pointer-events:none;z-index:3;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}
.talk.it{background:#fff3b0}
.talk b{font-family:var(--pix);font-size:1.15em;color:#b3540c;margin-right:5px}
.talk[hidden]{display:none}
@media(max-width:700px){.talk{max-width:132px;font-size:9.5px;padding:3px 5px;-webkit-line-clamp:7}}

/* the map takes the finger: drag to pan, pinch to zoom, and the page does not scroll under it */
#world{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:grab}
#world:active{cursor:grabbing}

.fates{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.fates .btn{font-size:17px;line-height:1.2;padding:10px 8px;white-space:normal;text-align:left}
.fates .btn.mine{outline:3px solid var(--paper)}
.fates .btn:disabled{opacity:.75;cursor:default}
@media(max-width:700px){.fates{grid-template-columns:1fr}}

/* stray thoughts: a small cloud over its head */
.mind{position:absolute;transform:translate(-50%,-100%);max-width:150px;padding:4px 9px;background:rgba(236,240,247,.94);color:#2a2f3a;border:2px solid #5b6474;border-radius:14px;font:italic 500 10.5px/1.25 "IBM Plex Mono",monospace;
  pointer-events:none;z-index:2;text-align:center;overflow-wrap:anywhere;transition:opacity .2s}
.mind::after{content:"";position:absolute;left:50%;bottom:-9px;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:rgba(236,240,247,.94);border:2px solid #5b6474;box-shadow:5px 8px 0 -2px rgba(236,240,247,.94),5px 8px 0 0 #5b6474}
.mind[hidden]{display:none}
@media(max-width:700px){.mind{max-width:118px;font-size:9px;padding:3px 7px}}

/* the game it is playing: a small table at the left of the picture */
.game{position:absolute;left:8px;top:50%;transform:translateY(-50%);z-index:3;background:rgba(16,19,26,.94);border:3px solid var(--orange);padding:7px;color:var(--paper);line-height:1.2;box-shadow:4px 4px 0 rgba(0,0,0,.5);pointer-events:none}
.game[hidden]{display:none}
.game b{display:block;font:400 16px var(--pix);color:var(--orange);margin-bottom:5px}
.game i{display:block;font:normal 10.5px "IBM Plex Mono",monospace;color:var(--dim);margin-top:5px;max-width:152px}
.board{display:grid;grid-template-columns:repeat(8,19px);grid-auto-rows:19px;border:2px solid #0d0f15}
.board span{display:flex;align-items:center;justify-content:center;font-size:15px;line-height:1;color:#fdfdf8;text-shadow:0 0 1px #000,0 1px 0 #000}
.board .light{background:#b9a27a}.board .dark{background:#6f5a3c}
.board .black{color:#15171c;text-shadow:0 0 1px rgba(255,255,255,.45)}
.board .last{box-shadow:inset 0 0 0 2px #ffd43b}
.hand{display:flex;align-items:center;gap:4px;margin:3px 0;font:600 12px "IBM Plex Mono",monospace}
.hand .who{width:44px;color:var(--dim);font-weight:500;font-size:10.5px}
.pcard{background:#f4f1e8;color:#15171c;border-radius:3px;padding:3px 4px;min-width:22px;text-align:center;border:1px solid #0d0f15}
.pcard.red{color:#c0262f}.pcard.down{background:#3b4a6b;color:#3b4a6b}
.hand .sum{margin-left:4px;color:var(--cyan)}
@media(max-width:700px){.game{left:5px;top:auto;bottom:46px;transform:none;padding:5px}.board{grid-template-columns:repeat(8,13px);grid-auto-rows:13px}.board span{font-size:10.5px}.game b{font-size:14px;margin-bottom:3px}.game i{font-size:9px;max-width:108px}.pcard{padding:2px 3px;min-width:17px;font-size:10px}.hand .who{width:36px;font-size:9px}}

.bubble.thinking{background:rgba(232,240,250,.97)}
.bubble .cursor{color:#b3540c;margin-left:2px;animation:blink 1s steps(2) infinite}
@keyframes blink{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.bubble .cursor{animation:none}}

/* ---------- one picture, one panel, tabs to choose what the panel shows */
.tabs{display:flex;flex-wrap:wrap;gap:6px;max-width:1500px;margin:0 auto;padding:12px 20px 0}
.tabs button{font:400 17px var(--pix);padding:7px 13px;background:var(--slab);color:var(--paper);border:2px solid var(--line);cursor:pointer}
.tabs button:hover,.tabs button:focus-visible{border-color:var(--cyan)}
.tabs button[aria-selected="true"]{background:var(--orange);color:var(--ink);border-color:var(--ink)}
.layout{grid-template-columns:minmax(0,1fr) 410px;padding-top:12px}
.side > article:not(.on){display:none}
.cols,.take{display:none}
@media(min-width:1021px){.side{position:sticky;top:10px;align-self:start;max-height:calc(100vh - 20px);overflow-y:auto;display:flex;flex-direction:column;gap:14px;padding-right:4px}}
@media(max-width:1020px){.side{display:flex;flex-direction:column;gap:14px;order:6}.side > article{order:0}.tabs{padding:10px 12px 0;position:sticky;top:0;z-index:6;background:var(--ink);padding-bottom:8px}.tabs button{font-size:16px;padding:6px 9px}}
.feed{max-height:none}
/* the people it lives with */
.people{list-style:none;margin:0;padding:0}
.person{border-left:4px solid var(--line);padding:8px 0 8px 11px;margin-bottom:10px}
.person.bad{border-color:var(--red)}.person.good{border-color:var(--green)}.person.staff{border-color:#4a6fd0}.person.warm{border-color:var(--cyan)}
.person .who{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.person .who b{font:400 19px var(--pix);color:var(--paper)}
.person .tag{font-size:11px;color:var(--dim);border:1px solid var(--line);padding:1px 5px}
.person p{margin:3px 0 0;font-size:13px;line-height:1.4}
.person .about{color:var(--dim)}.person .mood{color:var(--paper)}.person .where{color:var(--dim);font-size:12px}
.person.bad .mood{color:var(--red)}.person.good .mood{color:var(--green)}

/* full screen: one small button in the bottom right of the picture */
.fsbtn{position:absolute;right:8px;bottom:8px;z-index:5;width:34px;height:34px;padding:7px;background:rgba(16,19,26,.8);color:var(--paper);border:2px solid var(--line);cursor:pointer;line-height:0}
.fsbtn:hover,.fsbtn:focus-visible{border-color:var(--cyan);color:var(--cyan)}
.fsbtn svg{width:100%;height:100%;display:block}
.fsbtn .in{display:none}
.stage.fs .fsbtn .in{display:block}.stage.fs .fsbtn .out{display:none}
.stage.fs{position:fixed;inset:0;z-index:50;border:0;display:flex;align-items:center;justify-content:center;background:#000;width:100vw;height:100vh;height:100dvh}
.stage.fs #world{width:min(100vw,calc(100vh * var(--ar,1.6)));width:min(100vw,calc(100dvh * var(--ar,1.6)));height:auto;max-height:100%}
@media(max-width:700px){.fsbtn{right:6px;bottom:6px}}

/* in the fallback full screen (no real full screen available) the page behind does not scroll */
html:has(.stage.fs){overflow:hidden}

.side .card h3{font:400 18px var(--pix);margin:14px 0 6px;color:var(--orange)}
#mindWant{color:var(--paper);font-size:14px}
#mindKept:empty::after{content:"Nothing yet.";color:var(--dim);font-size:13px}
#mindPeople:empty::after{content:"It has not had to do with anybody yet.";color:var(--dim);font-size:13px}
#mindPeople b{color:var(--cyan);font-weight:600}

/* speech is never cut short: the box grows to hold every word */
.talk{display:block;-webkit-line-clamp:unset;overflow:visible;max-width:230px}
@media(max-width:700px){.talk{-webkit-line-clamp:unset;max-width:170px}}
.bubble{max-height:60%}

/* its notebook, under the line that says where it is and what it is doing */
.notebar{padding:10px 14px;background:var(--slab);border:3px solid var(--line);border-top:0}
.notebar b{font:400 19px var(--pix);color:var(--orange);margin-right:10px}
.notebar .count{color:var(--dim);font-size:12px}
.notebar ul{margin-top:6px;max-height:190px;overflow-y:auto;padding-right:6px}
.notebar li{padding:5px 0;border-top:1px dashed var(--line);font-size:13.5px;line-height:1.45}
.notebar ul:empty::after{content:"Every page is blank so far.";color:var(--dim);font-size:13px}
@media(max-width:1020px){.notebar{order:2;margin-top:-14px}}

/* a bigger picture: the page uses the whole width of the window, and the picture grows until it would no longer fit on the screen */
@media(min-width:1021px){
  .layout,.tabs,.story,footer{max-width:2100px}
  .layout{grid-template-columns:minmax(0,1fr) 380px}
  .stage:not(.fs){display:flex;justify-content:center}
  .stage:not(.fs) #world{width:min(100%,calc((100vh - 195px) * var(--ar,1.6)));height:auto}
}

/* the tabs sit to the right of the headline, on the same line, so the picture starts higher up the page */
@media(min-width:1021px){
  .story{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:10px}
  .story .storytext{flex:1 1 auto;min-width:0}
  .story .tabs{flex:0 0 auto;margin:0;padding:0;max-width:none;justify-content:flex-end}
  .layout{padding-top:8px}
}
@media(max-width:1020px){.story .tabs{margin:8px -12px 0;padding:8px 12px}}

/* follow / full map, bottom right of the picture, beside the full screen button */
.mapbtns{position:absolute;right:50px;bottom:8px;z-index:5;display:flex;gap:6px;line-height:1.2}
.mapbtns button{font:400 17px var(--pix);height:34px;padding:0 10px;background:rgba(16,19,26,.8);color:var(--paper);border:2px solid var(--line);cursor:pointer}
.mapbtns button:hover,.mapbtns button:focus-visible{border-color:var(--cyan)}
.mapbtns button[aria-pressed="true"]{background:var(--orange);color:var(--ink);border-color:var(--ink)}
@media(max-width:700px){.mapbtns{right:46px;bottom:6px}.mapbtns button{font-size:15px;padding:0 8px}.inspect{right:6px;bottom:48px}}

/* the picture fills its frame edge to edge (its shape is set in app.js, fitPicture) */
.stage #world,.stage.fs #world,.stage:not(.fs) #world{width:100%;max-height:none}
.stage.fs,.stage:not(.fs){display:block}


/* the title sits in the middle of the strip, between what it is doing and the tabs: Parole large, the premise small under it */
.story{border-top:3px solid var(--orange)}
.brand{flex:0 1 auto;text-align:center;padding:0 12px;min-width:0}
.brandrow{display:flex;align-items:baseline;justify-content:center;gap:14px}
.brand h1{font:400 46px/1 var(--pix);color:var(--orange);letter-spacing:.02em;margin:0}
.brand .clockbox{font:400 19px var(--pix);gap:8px}
.brand .premise{margin:4px 0 0;font-size:12px;color:var(--dim);line-height:1.35}
@media(min-width:1021px){.story .storytext{flex:1 1 0}.story .tabs{flex:1 1 0}}
@media(max-width:1020px){.story{display:flex;flex-direction:column}.brand{order:-1;padding:0 0 8px;text-align:left}.brandrow{justify-content:flex-start}.brand h1{font-size:36px}}

#tradeHold:empty::after{content:"No coins.";color:var(--dim);font-size:13px}
#tradeLog:empty::after{content:"No trades yet.";color:var(--dim);font-size:13px}
#tradeNotes:empty::after{content:"Nothing written yet.";color:var(--dim);font-size:13px}

/* the prison computer, popping up over the picture while it is at the keyboard */
.pc{position:absolute;left:10px;bottom:10px;z-index:6;width:min(480px,calc(100% - 20px));pointer-events:auto;filter:drop-shadow(5px 6px 0 rgba(0,0,0,.45))}
.pc[hidden]{display:none}
.pcbezel{position:relative;background:#d9d0b4;border:3px solid #1b1e26;border-radius:10px;padding:12px 12px 20px;box-shadow:inset 0 3px 0 #efe8cf,inset 0 -4px 0 #a9a086}
.pcled{position:absolute;right:16px;bottom:6px;width:8px;height:5px;background:#3ddc84;box-shadow:0 0 6px #3ddc84}
.pcclose{position:absolute;right:4px;top:0;width:22px;height:22px;padding:0;border:0;background:none;color:#1b1e26;font:700 18px/1 monospace;cursor:pointer}
.pcscreen{background:#04110a;border:3px solid #1b1e26;border-radius:6px;color:#7dffa0;font:400 11px/1.35 "IBM Plex Mono",monospace;box-shadow:inset 0 0 18px rgba(60,255,120,.18);position:relative;overflow:hidden}
.pcscreen::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(0,0,0,.14) 0 1px,transparent 1px 3px);pointer-events:none;z-index:5}
/* top bar */
.pcbar{display:flex;align-items:center;gap:8px;padding:4px 8px;background:#0b2215;border-bottom:1px solid rgba(90,255,140,.25);font:400 14px/1 var(--pix);color:#b8ffcb;white-space:nowrap}
.pcmode{padding:1px 6px;border-radius:3px;font-weight:400;color:#04110a;background:#7dffa0}
.pcmode.live{background:#ffd66b;animation:livepulse 2s ease-in-out infinite}
@keyframes livepulse{50%{box-shadow:0 0 8px #ffd66b}}
.pcgoal{color:#9fd7ff;margin-left:auto}
.pctime{color:#b8ffcb}.pctime.urgent{color:#ffb3b3}
.pctabs{display:flex;gap:2px;padding:3px 6px 0;background:#071a0f;font:400 12px/1 var(--pix)}
.pctabs b{font-weight:400;padding:3px 8px 2px;border-radius:4px 4px 0 0;color:rgba(160,255,190,.45);background:rgba(90,255,140,.05)}
.pctabs b.on{color:#04110a;background:#7dffa0}
.pcstage{position:relative;height:236px;overflow:hidden}
.pccmd{padding:3px 8px;font-size:11px;color:#d9ffe4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-top:1px solid rgba(90,255,140,.2);background:#06160d}
.pccursor{font-style:normal;animation:blink 1s steps(2) infinite}
/* its pointer */
.pcmouse{position:absolute;left:0;top:0;width:12px;height:18px;z-index:6;pointer-events:none;transition:transform .35s cubic-bezier(.3,.7,.3,1);background:#fff;clip-path:polygon(0 0,0 15px,4px 11px,7px 18px,9px 17px,6px 10px,11px 10px);filter:drop-shadow(1px 1px 0 #000)}
.pcmouse.click{animation:mclick .3s}
@keyframes mclick{40%{scale:.75}}
/* coin list */
.pclist,.pcmine,.pchelp{padding:6px 8px}
.pclisthead{font:400 15px/1.1 var(--pix);color:#b8ffcb;margin-bottom:4px;letter-spacing:.03em}
.pcrow{position:relative;display:grid;grid-template-columns:20px 1fr 86px 60px;align-items:center;gap:6px;height:19px;padding:0 6px;font:400 14px/1 var(--pix);color:#a8ffbf;opacity:0;transform:translateX(-12px);transition:opacity .2s,transform .2s,background .15s;border-radius:3px}
.pcrow.in{opacity:1;transform:none}
.pcrow.hl{background:rgba(125,255,160,.16)}
.pcrow.chosen{background:#7dffa0;color:#04110a}
.pcrow.chosen .pcch,.pcrow.chosen .pcrank,.pcrow.chosen .pcsym{color:#04110a}
.pcrank{font-weight:400;color:rgba(160,255,190,.5)}
.pcsym{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#e6fff0}
.pcpx,.pcch{text-align:right}
.pcbar1{position:absolute;left:0;bottom:1px;height:2px;opacity:.6;border-radius:2px}
.pcscreen .gain{color:#5aff8c}.pcscreen .drop{color:#ff6a78}
.pcbar1.gain{background:#5aff8c}.pcbar1.drop{background:#ff6a78}
/* chart */
.pcchartapp{position:relative;height:100%;display:flex;flex-direction:column;padding:6px 8px;gap:4px;box-sizing:border-box}
.pccoin{display:flex;align-items:baseline;gap:10px;font:400 14px/1 var(--pix)}
.pccoinsym{font:400 22px/1 var(--pix);color:#e6fff0}
.pccoinpx{font:400 19px/1 var(--pix);color:#b8ffcb}
.pcchips{margin-left:auto;display:flex;gap:8px}.pcchips i{font-style:normal}
.pccv{flex:1;width:100%;min-height:0;border:1px solid rgba(90,255,140,.3);border-radius:3px;box-sizing:border-box}
.pcpos{display:flex;gap:12px;align-items:center;font:400 15px/1 var(--pix);padding:4px 6px;border-radius:3px;background:rgba(90,255,140,.06);color:#b8ffcb}
.pcpos b{margin-left:auto;font-weight:400;font-size:19px}
.pcpos.gain b{color:#5aff8c}.pcpos.drop b{color:#ff6a78}.pcpos.none{color:rgba(160,255,190,.5)}
.pctoast{position:absolute;left:50%;top:44%;translate:-50% -50%;display:flex;flex-direction:column;align-items:center;padding:8px 18px;border:3px solid currentColor;border-radius:6px;background:rgba(4,17,10,.9);rotate:-6deg;animation:stamp .35s cubic-bezier(.2,1.6,.4,1);transition:opacity .6s;z-index:3}
.pctoast b{font:400 34px/1 var(--pix)}.pctoast span{font:400 14px/1.2 var(--pix);max-width:300px;text-align:center}
.pctoast.buy{color:#5ab8ff}.pctoast.win{color:#5aff8c}.pctoast.loss,.pctoast.bad{color:#ff6a78}
.pctoast.gone{opacity:0}
@keyframes stamp{from{scale:2.4;opacity:0}}
/* its coins */
.pchold{position:relative;display:grid;grid-template-columns:1fr 80px 80px;gap:6px;padding:6px 8px;margin-bottom:4px;border-radius:4px;background:rgba(90,255,140,.07);font:400 17px/1 var(--pix);opacity:0;transform:translateY(6px);transition:.25s}
.pchold.in{opacity:1;transform:none}
.pchold b{font-weight:400;color:#e6fff0}.pchold span{text-align:right;color:#b8ffcb}.pchold em{font-style:normal;text-align:right}
.pchold.gain em{color:#5aff8c}.pchold.drop em{color:#ff6a78}
.pcempty{font:400 18px/1 var(--pix);color:rgba(160,255,190,.5);padding:30px 0;text-align:center}
.pcsum{display:flex;justify-content:space-between;font:400 16px/1 var(--pix);padding:6px 4px;border-top:1px solid rgba(90,255,140,.25);margin-top:4px;color:#b8ffcb}
.pcsum b{font-weight:400}.pcsum.gain b{color:#5aff8c}.pcsum.drop b{color:#ff6a78}
/* manual */
.pchelprow{display:flex;gap:12px;padding:5px 8px;font:400 17px/1 var(--pix);opacity:.2;transition:.2s;border-radius:3px}
.pchelprow.in{opacity:1}.pchelprow.hl{background:rgba(125,255,160,.16)}
.pchelprow b{width:54px;font-weight:400;color:#ffd66b}
/* the social site */
.pcx{height:100%;background:#000;color:#e7e9ea;font:400 12px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;overflow:hidden;position:relative}
.pcxbar{display:flex;align-items:baseline;gap:8px;padding:6px 10px;border-bottom:1px solid #2f3336}
.pcxbar b{font-size:15px}.pcxbar span{margin-left:auto;font-size:9.5px;letter-spacing:.08em;color:#71767b}
.pcxcompose,.pcxpost{display:flex;gap:8px;padding:8px 10px;border-bottom:1px solid #2f3336}
.pcxav{flex:none;width:28px;height:28px;border-radius:50%;background:radial-gradient(circle at 50% 38%,#ffb35c 0 30%,transparent 31%),radial-gradient(circle at 50% 100%,#ff7a1a 0 45%,transparent 46%),#2b3a52}
.pcxright,.pcxbody{flex:1;min-width:0}
.pcxtext{min-height:40px;max-height:62px;overflow:hidden;font-size:13px;color:#e7e9ea;white-space:pre-wrap;overflow-wrap:anywhere}
.pcxtext:empty::before{content:attr(data-ph);color:#71767b}
.pcxtext.wait:empty::after{content:"|";color:#1d9bf0;animation:blink 1s steps(2) infinite}
.pcxtools{display:flex;align-items:center;gap:8px;margin-top:6px;padding-top:6px;border-top:1px solid #2f3336}
.pcxico{font-style:normal;color:#1d9bf0;font-size:12px}
.pcxcount{margin-left:auto;color:#71767b;font-size:10px}
.pcxbtn{padding:4px 12px;border-radius:99px;background:#eff3f4;color:#0f1419;font-size:11px;transition:.1s}
.pcxbtn.pressed{background:#c9cdcf;scale:.94}
.pcxwho{display:flex;gap:5px;align-items:baseline;white-space:nowrap;overflow:hidden}
.pcxwho b{font-size:12px}.pcxwho span{color:#71767b;font-size:11px}
.pcxwords{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:64px;overflow:hidden}
.pcxpost:not(.fresh) .pcxwords{max-height:34px;color:#c4c8cb}
.pcxstats{display:flex;justify-content:space-between;max-width:260px;margin-top:4px;color:#71767b;font-size:10px}
.pcxnote{margin-top:2px;color:#71767b;font-size:9.5px;font-style:italic}
.pcxpost.fresh{animation:slidein .45s ease-out;background:rgba(29,155,240,.07)}
@keyframes slidein{from{transform:translateY(-30px);opacity:0}}
/* its notebook */
.pcnotes{height:100%;box-sizing:border-box;overflow:hidden;padding:6px 12px 6px 30px;background:#f3ecd2 repeating-linear-gradient(0deg,transparent 0 21px,#b9cbe0 21px 22px);background-position:0 8px;color:#273047;font:400 17px/22px var(--pix);position:relative}
.pcnotes::before{content:"";position:absolute;left:22px;top:0;bottom:0;width:2px;background:#e59a9a}
.pcnotehead{color:#8a2f2f;letter-spacing:.06em}
.pcnotes p{margin:0}.pcnotes p.old{color:#6b7286}.pcnotes p em{font-style:normal;color:#9a8d6a;margin-right:4px}
.pcnotes p.new::after{content:"\258C";color:#273047;animation:blink 1s steps(2) infinite}
.pckeys{position:relative;margin:6px 26px 0;height:26px;background:#cfc6aa;border:3px solid #1b1e26;border-radius:4px;background-image:repeating-linear-gradient(90deg,#b9b094 0 2px,transparent 2px 14px),repeating-linear-gradient(0deg,#b9b094 0 2px,transparent 2px 8px)}
.pchands{position:absolute;left:0;right:0;top:-6px;display:flex;justify-content:center;gap:56px}
.pchands i{display:block;width:26px;height:16px;background:#ff7a1a;border:3px solid #1b1e26;border-radius:6px 6px 3px 3px;box-shadow:inset 0 -4px 0 #c95a0c}
.pchands.busy i{animation:tap .18s steps(2) infinite}
.pchands.busy i:last-child{animation-delay:.09s}
@keyframes tap{50%{transform:translateY(4px)}}
@media(max-width:700px){.pc{left:6px;bottom:6px;width:calc(100% - 12px)}.pcstage{height:190px}.pcrow{height:16px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.pchands.busy i,.pccursor,.pcmode.live{animation:none}.pcmouse{transition:none}}

#mindGoals li.emptygoal{color:var(--dim)}
.pctf{font:400 13px/1 var(--pix);color:#9fd7ff;padding:1px 5px;border:1px solid rgba(159,215,255,.4);border-radius:3px}
.pcxcount.over{color:#f4212e}
.pcaway{position:absolute;left:0;right:0;bottom:22px;z-index:4;text-align:center;font:400 15px/1 var(--pix);color:#ffd66b;padding:6px;background:rgba(4,17,10,.85);display:none}.pcscreen.away .pcaway{display:block}.pcscreen.away .pcstage{filter:brightness(.45) saturate(.6);transition:filter .6s}.pcscreen.away .pcmouse{opacity:0}

/* the tabs on one line, and the coin's contract address right under them, the same width */
.tabs{flex-wrap:nowrap}
.tabs button{white-space:nowrap;flex:0 0 auto}
@media(min-width:1021px){
  .story .storytext{flex:1 1 0;min-width:220px}   /* what it is doing always keeps room */
  .story .tabcol{flex:0 0 auto;display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}   /* the tabs keep their full width; the title beside them wraps instead */
  .story .brand{flex:0 1 auto;min-width:240px}
  .story .tabs{flex:0 0 auto;justify-content:flex-start;gap:5px}
  .story .tabs button{font-size:16px;padding:6px 10px}
}
/* not wide enough for the tabs beside the headline: they get their own full-width row under it, still one line */
@media(min-width:1021px) and (max-width:1399px){
  .story{flex-wrap:wrap;row-gap:10px}
  .story .tabcol{flex:1 0 100%;display:grid;justify-content:start}   /* the CA bar as wide as the tabs above it */
  .story .storytext{min-width:0}
}
@media(max-width:1020px){
  .tabcol{display:contents}                     /* the tabs stay stuck to the top of the screen as before */
  .story .tabs{overflow-x:auto;scrollbar-width:none}
  .story .tabs::-webkit-scrollbar{display:none}
  .story .tabs button{font-size:15px;padding:6px 8px}
}
.cabar{display:flex;align-items:center;gap:8px;padding:6px 8px;background:var(--slab);border:2px solid var(--line);font:400 15px var(--pix);color:var(--dim);min-width:0;margin:0}
@media(max-width:1020px){.cabar{margin:6px 0 0}}
.calabel{color:var(--ink);background:var(--orange);padding:1px 7px;flex:none}
.caval{font:500 13px "IBM Plex Mono",monospace;color:var(--paper);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1 1 0;user-select:all}
.cabar.soon .caval{color:var(--dim)}
.cacopy,.calink{flex:none;font:400 15px var(--pix);padding:2px 10px;background:var(--ink);color:var(--cyan);border:2px solid var(--line);cursor:pointer;text-decoration:none}
.cacopy:hover,.calink:hover,.cacopy:focus-visible,.calink:focus-visible{border-color:var(--cyan)}
.cacopy.done{color:var(--green);border-color:var(--green)}
@media(max-width:700px){.caval{font-size:11px}}
