:root { --ground:#f2420d; --ink:#140500; --lid:#080606; --black:"Futura-CondensedExtraBold","Futura Condensed ExtraBold","Futura","Arial Narrow","Impact",sans-serif; --text:"Futura","Avenir Next","Century Gothic",sans-serif; --book:"Baskerville","Libre Baskerville",Georgia,serif; }
* { box-sizing:border-box; margin:0; }
[hidden] { display:none !important; }
html,body { height:100%; overflow:hidden; background:var(--ground); color:var(--ink); overscroll-behavior:none; }
body { font-family:var(--text); -webkit-user-select:none; user-select:none; touch-action:none; -webkit-tap-highlight-color:transparent; -webkit-text-size-adjust:100%; }
#field,#lids { position:fixed; inset:0; width:100%; height:100%; display:block; }
#stage { position:fixed; inset:0; display:grid; place-items:center; padding:0 6vw; text-align:center; }
#stage > * { grid-area:1/1; max-width:100%; }
#words { position:relative; }
#who { position:absolute; left:50%; bottom:100%; transform:translateX(-50%); white-space:nowrap; padding-bottom:14px; font:italic 600 22px/1.2 var(--book); }
#phrase { font-family:var(--black); font-stretch:condensed; font-weight:800; line-height:1.04; text-wrap:balance; font-size:min(var(--fs,15vw),13vh); }
#phrase.direction { font:italic 500 min(8.5vw,7vh)/1.2 var(--book); }
#card { opacity:0; transition:opacity .5s; }
#card.on { opacity:1; }
#work { font:italic 600 clamp(32px,10vw,72px)/1.08 var(--book); text-wrap:balance; }
#author { margin-top:.9em; font-size:17px; line-height:1.4; text-wrap:balance; }
#lids { pointer-events:none; }
#lids path { fill:var(--lid); }
#hint { position:fixed; left:8vw; right:8vw; bottom:calc(env(safe-area-inset-bottom) + 12vh); text-align:center; color:#f4ece6; font-size:17px; line-height:1.45; opacity:0; transition:opacity .4s; pointer-events:none; text-wrap:balance; }
#hint.on { opacity:1; }
#hint.open { color:var(--ink); }

button { font:600 19px/1.2 var(--text); min-height:56px; width:100%; max-width:34em; border:0; border-radius:0; background:#140500; color:#fff3ea; touch-action:manipulation; }
button.quiet { background:none; color:inherit; box-shadow:inset 0 0 0 2px currentColor; }
button:focus-visible,summary:focus-visible,input:focus-visible { outline:3px solid #fff3ea; outline-offset:3px; }

#door,#pause,#chapters { position:fixed; inset:0; padding:calc(env(safe-area-inset-top) + 24px) 7vw calc(env(safe-area-inset-bottom) + 28px); }
#door,#chapters { overflow:auto; touch-action:pan-y; -webkit-overflow-scrolling:touch; }
#door { background:#f2420d; color:#140500; transition:opacity .5s; }
#door.gone { opacity:0; pointer-events:none; visibility:hidden; transition:opacity .5s,visibility 0s .5s; }
#door h1 { font-family:var(--black); font-weight:800; font-size:min(25vw,170px); line-height:.95; letter-spacing:-.02em; margin:4vh 0 14px; }
#door > p { font-size:19px; line-height:1.4; max-width:32em; }
#problem:not(:empty) { margin-top:14px; font-weight:600; }
#books { list-style:none; padding:0; margin:26px 0; max-width:40em; border-bottom:2px solid #140500; }
.book { display:grid; grid-template-columns:1fr auto; gap:2px 14px; align-items:baseline; width:100%; max-width:none; min-height:72px; padding:14px 0; text-align:left; background:none; color:#140500; border-top:2px solid #140500; }
.book .title { grid-column:1/-1; font:800 34px/1.05 var(--black); font-stretch:condensed; }
.book .by,.book .note { font-size:16px; font-weight:500; line-height:1.35; }
.book .note { text-align:right; }
.book.picked,.book:active { background:#140500; color:#fff3ea; box-shadow:-7vw 0 #140500,7vw 0 #140500; }
.opening .book:not(.picked) { opacity:.45; }
label { display:flex; gap:12px; align-items:flex-start; font-size:16px; line-height:1.45; max-width:34em; padding:6px 0; }
input[type=checkbox] { flex:none; width:26px; height:26px; margin:0; accent-color:#140500; }
details { font-size:15px; line-height:1.45; margin-top:12px; }
summary { padding:10px 0; cursor:pointer; }
#credits p { font-size:14px; margin-top:10px; overflow-wrap:anywhere; }
#credits a { color:inherit; }

#pause,#chapters { color:#f4ece6; }
#pause { display:flex; flex-direction:column; justify-content:flex-end; gap:14px; }
#pause h2 { font:800 min(16vw,110px)/1 var(--black); font-stretch:condensed; text-wrap:balance; }
#pause p { font-size:18px; line-height:1.45; margin-bottom:14px; }
#p-on { background:#f2420d; color:#140500; }
#chapters { background:var(--lid); }
#c-back { position:sticky; top:0; background:var(--lid); z-index:1; }
#list { list-style:none; padding:0; margin:14px 0 0; }
#list button { display:block; max-width:none; text-align:left; background:none; color:inherit; padding:12px 0; border-bottom:1px solid #3a3230; font-size:18px; }
#list small { display:block; font:italic 400 17px/1.35 var(--book); margin-top:2px; }
#list [aria-current] { color:#ff6a3a; }
#list .group { font:800 26px/1.1 var(--black); padding:28px 0 8px; }
#cam { position:fixed; width:2px; height:2px; left:0; top:0; opacity:.01; pointer-events:none; }

#b-add { margin-top:24px; }
#add { position:fixed; inset:0; overflow:auto; touch-action:pan-y; -webkit-overflow-scrolling:touch; background:#f2420d; color:#140500; padding:calc(env(safe-area-inset-top) + 20px) 7vw calc(env(safe-area-inset-bottom) + 40px); }
#add > * { max-width:34em; }
#add h2 { font:800 min(15vw,96px)/.98 var(--black); font-stretch:condensed; letter-spacing:-.01em; margin:26px 0 16px; text-wrap:balance; overflow-wrap:break-word; outline:none; }
#add p { font-size:19px; line-height:1.42; margin-bottom:18px; }
#add p.label { font-size:16px; font-weight:600; margin:22px 0 10px; }
#add .back { width:auto; min-height:44px; padding:0 20px; font-size:17px; }
#add form { display:grid; gap:14px; }
#add input[type=text] { width:100%; min-height:64px; padding:0 14px; font:600 22px/1.2 var(--text); color:#140500; background:#fff3ea; border:0; border-radius:0; -webkit-appearance:none; -webkit-user-select:text; user-select:text; }
#add input::placeholder { color:#7a5a4c; opacity:1; font-weight:500; }
.picks { list-style:none; padding:0; margin:0 0 22px; border-bottom:2px solid #140500; }
.pick { display:grid; gap:4px; align-content:center; width:100%; max-width:none; min-height:72px; padding:14px 0; text-align:left; background:none; color:inherit; border-top:2px solid #140500; }
.pick .title { font:800 30px/1.06 var(--black); font-stretch:condensed; overflow-wrap:anywhere; }
.pick .note { font-size:16px; font-weight:500; line-height:1.4; }
.pick .has { font-weight:700; }
.pick.small { min-height:56px; padding:10px 0; } .pick.small .title { font:600 18px/1.35 var(--text); }
.pick.tint { background:var(--g); color:var(--i); padding:14px; border-top-width:0; }
.pick[aria-pressed=true] .title::after { content:" ✓"; }
.pick:active { background:#140500; color:#fff3ea; }
.busy { height:6px; background:#140500; transform-origin:left; animation:busy 1.6s ease-in-out infinite alternate; }
@keyframes busy { from { transform:scaleX(.04); } to { transform:scaleX(1); } }
#add > button + button { margin-top:14px; }
#speed { display:grid; grid-template-columns:1fr auto 1fr; gap:12px; align-items:center; width:100%; max-width:34em; }
#speed button { min-height:52px; font-size:17px; } #speed button:disabled { opacity:.35; }
#speed span { font-size:16px; font-weight:600; text-align:center; width:6.2em; line-height:1.25; font-variant-numeric:tabular-nums; }
#hint.open { left:50%; right:auto; width:max-content; max-width:84vw; transform:translateX(-50%); padding:8px 14px; background:var(--ground); font-weight:600; }

#more { margin:18px 0 0; font-size:17px; } #more a { color:inherit; text-underline-offset:3px; }

#problem + button + label { margin-top:18px; }

#b-title:not(:empty) { font-size:min(17vw,120px); } #door a { color:inherit; text-underline-offset:3px; } #b-start { margin-top:22px; }
