#redink{--pen:#d3262c;--soft:color-mix(in srgb,var(--global-text-color) 72%,var(--global-bg-color));--desk:var(--rest);--red:#c4161c;--rest:#e9e6df;--hand:Hand,'Kaiti SC',STKaiti,serif;margin-top:.5rem}
html[data-theme=dark] #redink{--rest:#33353c}
#redink ::selection{background:var(--red);color:#fff}
#redink :focus-visible{outline:2px solid var(--global-theme-color);outline-offset:3px;border-radius:3px}
#redink button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}

#stage{position:relative;outline:1px solid #8883;outline-offset:-1px;border-radius:8px;overflow:clip;background:var(--desk);transition:background-color 1.4s!important}
#world{position:absolute;left:0;top:0;transform-origin:0 0}
html #redink #world.sizing *{transition:none!important}
#world{transition:opacity .25s}#stage:not(.ready) #world{opacity:0}
.sheet{position:absolute;top:0;overflow:hidden;isolation:isolate;cursor:zoom-in;box-shadow:0 2px 4px #0003,0 14px 30px -8px #0004;transition:box-shadow 1.6s}
.one .sheet{cursor:zoom-out}
.sheet::before{content:'';position:absolute;inset:0;background:#fffefb;transition:opacity 1.6s}
.body{position:absolute;left:204px;top:0;width:480px}
.body>*{position:absolute}
#redink .text{width:480px;max-width:none;top:0;mix-blend-mode:multiply;margin:0;border-radius:0}
.hl{position:absolute;transform:scaleX(0);transform-origin:0 50%;border-radius:1.5px}
.hl.rule{border-radius:0}
.hl.on{transform:none}
.hl.live{transition:transform .34s cubic-bezier(.3,.7,.3,1) var(--d)}
#redink svg.ink{left:-204px;top:0;width:888px;overflow:visible;fill:none;stroke:var(--red);stroke-linecap:round;stroke-linejoin:round;pointer-events:none;transition:stroke 1.6s}
.ink path{stroke-dasharray:1;stroke-dashoffset:1;opacity:0;stroke-width:1.5}
.ink path.lead{stroke-width:.65}
.ink path.on{stroke-dashoffset:0;opacity:1}
.ink path.live{transition:stroke-dashoffset .7s cubic-bezier(.3,.7,.3,1) var(--d)}
#redink .ri-note{position:absolute;width:186px;margin:0;text-align:left;font-family:var(--hand);color:var(--red);line-height:1.28;visibility:hidden;transform:rotate(var(--r));transition:color 1.6s;overflow-wrap:anywhere}
#redink .ri-note.on{visibility:visible}
.ri-note.cut{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.ri-note i{font-style:normal}
.ri-note.live i{animation:write .01s var(--w) both}
@keyframes write{from{opacity:0}}
.ri-note.hot{text-shadow:0 0 1px currentColor}

#bar{display:flex;align-items:center;gap:4px;padding-top:12px;color:var(--global-text-color);font-size:12px}
#redink #bar button{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:50%}
#redink #bar button:hover{background:color-mix(in srgb,currentColor 10%,transparent)}
#redink #bar button[aria-disabled=true]{opacity:.3;background:none;cursor:default}
#bar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
#play svg{fill:currentColor;stroke:none}
#play .b,.playing #play .a{display:none}.playing #play .b{display:block}
#line{position:relative;flex:1;height:56px;margin:0 14px 0 10px;cursor:pointer;touch-action:none}
#line .s{position:absolute;bottom:20px;height:1px;background:currentColor;opacity:.45}
#line .t{position:absolute;bottom:20px;width:2px;margin-left:-1px;background:currentColor;opacity:.6}
#line .t.on{background:#d3262c;opacity:1}
html[data-theme=dark] #line .t.on{background:#ff5348}
#line .l{position:absolute;bottom:-2px;white-space:nowrap;font-variant-numeric:tabular-nums}
#head{position:absolute;bottom:14px;top:0;width:1px;background:currentColor;transition:left .25s}
#clock{flex:none;width:92px;text-align:right;font-variant-numeric:tabular-nums}
#clock b{font-weight:600}
.one #bar{position:sticky;bottom:0;z-index:2;background:var(--global-bg-color);padding-bottom:6px}

@media(max-width:720px){
  #stage{scrollbar-width:none}
  .sheet{cursor:default}
  #bar{flex-wrap:wrap;padding-top:6px}
  #line{order:-1;flex:1 0 100%;margin:0 6px 4px}
  #clock{flex:1;width:auto;order:0}
}
@media(prefers-reduced-motion:reduce){#redink *,#redink *::before{transition:none!important;animation:none!important}}

/* the papers and their drafts */
.paper{display:grid;grid-template-columns:1fr auto;column-gap:24px;align-items:baseline;padding:20px 0 18px;border-top:1px solid var(--global-divider-color)}
.paper:first-child{border-top:0;padding-top:0}
#redink .paper h2{font-size:1.05rem;line-height:1.4;font-weight:500;margin:0;text-wrap:balance}
#redink .paper h2 button{text-align:left;text-wrap:balance}
#redink .paper h2 button:hover{color:var(--global-theme-color)}
.paper .venue{color:var(--soft);font-size:.85rem;white-space:nowrap}
#player{grid-column:1/-1;min-width:0}
#papers~#player{display:none}
#redink #was{margin:10px 0 8px;min-height:1.5em;font-size:.9rem;line-height:1.5;color:var(--soft)}
#redink #was span{color:inherit;background:linear-gradient(var(--pen),var(--pen)) 0 56%/100% 1.5px no-repeat;animation:strike .8s .5s cubic-bezier(.4,0,.1,1) backwards}
@keyframes strike{from{background-size:0 1.5px}}
#stage{height:270px}
#redink{overflow-anchor:none}
#redink #was[hidden]{display:block;min-height:0;margin:8px 0 10px}
@media(max-width:720px){.paper{grid-template-columns:1fr}}
#bar{margin-left:-11px}
@media(max-width:720px){#redink #was{min-height:4.6em}#redink #was[hidden]{min-height:0}#bar{margin-left:0}}

html[data-theme=dark] #redink{--pen:#ff5348}
.post-header h1{margin-bottom:1.4rem}
#redink .ri-note,#redink .ink path,.hl{transition:opacity .35s,color 1.6s}
#redink .hl.live{transition:opacity .35s,transform .34s cubic-bezier(.3,.7,.3,1) var(--d)}
#redink .ink path.live{transition:opacity .35s,stroke-dashoffset .7s cubic-bezier(.3,.7,.3,1) var(--d)}
#stage.glide{transition:background-color 1.4s,height .55s cubic-bezier(.2,.8,.2,1)!important}
#stage.glide #world{transition:opacity .25s,transform .55s cubic-bezier(.2,.8,.2,1)}
#stage{border-radius:4px}

.hl{mix-blend-mode:multiply}
.ink .stroke{stroke:var(--c)}
.ink path.lead.hot{stroke-width:1.8}
#player{position:relative;padding-bottom:6px}
#redink #panel{position:absolute;z-index:5;width:max-content;max-width:min(100%,400px);margin:0;padding:12px 16px;font:20px/1.5 var(--hand);color:#b01218;background:#fffefb;border-radius:4px;box-shadow:0 1px 2px #0003,0 10px 30px -6px #0006;pointer-events:none;text-wrap:pretty;overflow-wrap:anywhere}
#redink #panel[hidden]{display:none}
#redink .paper h2 svg,.venue svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
#redink .paper h2 svg{margin-left:8px;opacity:.55;transition:transform .32s cubic-bezier(.2,.8,.2,1)}
.paper h2 button[aria-expanded=true] svg{transform:rotate(180deg)}
#redink .paper h2 button:hover svg{opacity:1}
.venue svg{margin-left:5px;width:9px;height:9px}
#redink .venue:hover{color:var(--global-theme-color);text-decoration:none}


.strip{grid-column:1/-1;display:grid;grid-template-columns:repeat(8,1fr);gap:8px 0;margin:10px -7px 0}
#redink .draft{justify-self:start;padding:7px 7px 6px;display:flex;flex-direction:column;gap:6px;align-items:flex-start;border-radius:5px;transition:background-color .2s}
#redink .draft:hover{background:color-mix(in srgb,var(--global-text-color) 6%,transparent)}
.draft canvas{display:block}
.draft span{font-size:11px;line-height:1.2;white-space:nowrap;color:var(--soft);font-variant-numeric:tabular-nums}
.draft span b{font-weight:400}
.draft.on span{color:var(--global-text-color);box-shadow:0 2px 0 -.5px var(--pen)}
@media(max-width:991px){.strip{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}}
@media(max-width:720px){.strip{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:max-content;gap:0 4px;overflow-x:auto;scrollbar-width:none;position:relative}#redink .draft{padding:5px}.strip{margin-inline:-5px}}

#view{position:relative}
#stage{overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain}
#stage::-webkit-scrollbar{display:none}
#end{position:absolute;top:0;width:1px;height:1px}
#redink .pg{position:absolute;top:50%;width:36px;height:36px;margin-top:-18px;display:grid;place-items:center;border-radius:50%;color:#222;background:#fffefbee;box-shadow:0 1px 2px #0003,0 4px 14px #0003;opacity:0;transition:opacity .25s}
#redink #back{left:10px}#redink #more{right:10px}
.pg svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#view:hover .pg:not([aria-disabled=true]),.pg:focus-visible:not([aria-disabled=true]){opacity:1!important}
.pg[aria-disabled=true]{pointer-events:none}
@media(hover:none){.pg:not([aria-disabled=true]){opacity:.9!important}}
@media(max-width:720px){.pg{display:none!important}}
#redink .by{grid-column:1/-1;margin:1px 0 0;font-size:12px;line-height:1.5;color:var(--soft);white-space:pre-wrap;font-variant-numeric:tabular-nums}
