/* The Otherworld Agency, a private test. Her two reading faces only; the sign's lettering is hers to pick. One colour scheme. */
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 200 900; font-display: swap; size-adjust: 112%; src: url(fonts/crimson.woff2) format("woff2"); }
@font-face { font-family: Lora; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/lora-italic.woff2) format("woff2"); }
:root { color-scheme: light; --wall: #cfe6da; --wall2: #c1dfd0; --pink: #e9a9ae; --door: #4f9f92; --brass: #c9a95b; --ink: #20281f; --soft: #4a5647; --manila: #e6d3a4; --manila2: #d3bc84; --stamp: #a32c28; --gold: #6e5416; --board: #23221f; --cream: #f1ebd9; --bezel: #39302a; }
* { box-sizing: border-box; }
html { background: var(--wall); }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 400 20px/1.45 "Crimson Pro", Georgia, serif; background: linear-gradient(var(--pink), var(--pink)) left bottom 88px / 100% 10px no-repeat, conic-gradient(#3f8f80 25%, #f6efd9 0 50%, #3f8f80 0 75%, #f6efd9 0) left bottom / 88px 88px repeat-x, url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><rect width='60' height='120' fill='%23c1dfd0'/><g transform='translate(90 30)'><ellipse cx='-12' cy='6' rx='8' ry='4' fill='%239cc7b1' transform='rotate(-24 -12 6)'/><ellipse cx='12' cy='6' rx='8' ry='4' fill='%239cc7b1' transform='rotate(24 12 6)'/><circle r='9' fill='%23f0c2c6'/><circle cx='1' cy='-1' r='5.5' fill='%23e8a6ae'/><circle cx='1' cy='-1' r='2.4' fill='%23d98a95'/></g><g transform='translate(30 90)'><ellipse cx='-12' cy='6' rx='8' ry='4' fill='%239cc7b1' transform='rotate(-24 -12 6)'/><ellipse cx='12' cy='6' rx='8' ry='4' fill='%239cc7b1' transform='rotate(24 12 6)'/><circle r='9' fill='%23f0c2c6'/><circle cx='1' cy='-1' r='5.5' fill='%23e8a6ae'/><circle cx='1' cy='-1' r='2.4' fill='%23d98a95'/></g></svg>") left top / 120px 120px, var(--wall); }
body::before { content: ""; display: block; height: 24px; border-top: 6px solid var(--brass); background: radial-gradient(circle at 14px 0, var(--pink) 13px, transparent 14px) left top / 28px 18px repeat-x; }
body.inhall::before { display: none; }
main { max-width: 720px; margin: 0 auto; padding: 8px 16px 124px; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; margin: 0; }
h2:focus, h1:focus { outline: none; }
/* words that sit right on the wallpaper keep a little of the wall around them, so a rose never crosses a letter */
main h1, main h2, .aside, .back, main > div > p { text-shadow: 0 0 2px var(--wall), 0 0 5px var(--wall), 0 0 9px var(--wall); }
p { margin: .6em 0; }
.aside { font-family: Lora, Georgia, serif; font-style: italic; color: var(--soft); font-size: 18px; }
button, a.btn { font: inherit; }
a { color: var(--ink); }
.btn { display: block; width: 100%; min-height: 56px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--cream); font-size: 22px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.btn.quiet { background: rgba(255, 251, 240, .9); color: var(--ink); font-weight: 500; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; }
.row { display: grid; gap: 10px; margin-top: 16px; }
.back { display: inline-block; padding: 8px 0; font-size: 19px; }

/* the door: the sign on frosted glass, and someone standing behind it in the hall, in a patch wiped clear */
.door { position: relative; max-width: 480px; margin: 24px auto 0; padding: 12px; background: var(--door); border: 8px solid var(--pink); border-radius: 10px 10px 4px 4px; box-shadow: 0 0 0 2px var(--brass), 0 5px 0 2px rgba(0, 0, 0, .22); }
.door::before { content: ""; position: absolute; left: 6%; right: 6%; top: -28px; height: 20px; background: radial-gradient(circle at 16px 20px, var(--pink) 15px, var(--brass) 16px 17px, transparent 18px) left top / 32px 20px repeat-x; }
.glass { position: relative; overflow: hidden; text-align: center; border: 3px solid var(--brass); border-radius: 6px; background: linear-gradient(160deg, #f4f8f2, #dfeae3 45%, #f0f5ee); }
.glass::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .28) 36% 42%, rgba(255, 255, 255, 0) 48%); }
.glass h1 { position: relative; z-index: 1; padding: 18px 8px 0; color: var(--gold); font-size: clamp(27px, 9vw, 44px); letter-spacing: .04em; text-transform: uppercase; }
.glass .the { display: block; font-size: .5em; letter-spacing: .3em; }
.glass p { position: relative; z-index: 1; margin: 8px 0 0; padding: 0 10px; }
.peek { margin-top: 2px; aspect-ratio: 350 / 300; background: url(shop/the-dream-that-keeps-coming-back.jpg) 85% 20.1% / 136.86% auto no-repeat; -webkit-mask-image: linear-gradient(transparent, #000 16%), linear-gradient(90deg, transparent, #000 12% 88%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(transparent, #000 16%), linear-gradient(90deg, transparent, #000 12% 88%, transparent); mask-composite: intersect; }
.rail { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.rail p { flex: 1; margin: 0; padding: 6px 12px; font-size: 18px; line-height: 1.25; background: #f8ebc2; border: 2px solid #a98a3d; border-radius: 3px; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.doorknob { flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fff3c4, #d2ad57 45%, #7f6220); box-shadow: 0 3px 3px rgba(0, 0, 0, .35); }

/* the televisions */
.bank { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0; padding: 8px; background: var(--bezel); border-radius: 4px; }
.crt { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12% / 14%; background: #101410; box-shadow: inset 0 0 0 2px #17110d; }
.crt .frame { position: absolute; inset: 0; overflow: hidden; }
.crt img { position: absolute; display: block; max-width: none; height: auto; filter: saturate(.8) contrast(1.05); }
.crt .lid { position: absolute; border-radius: 50%; transform: scaleY(0); transform-origin: 50% 0; }
.crt.blink .lid { animation: blink .22s ease-in-out; }
@keyframes blink { 50% { transform: scaleY(1); } }
.crt .mouth { visibility: hidden; }
.crt.talk .mouth { visibility: visible; animation: speak .34s steps(3) infinite alternate; }
@keyframes speak { from { transform: scaleY(.85); } to { transform: scaleY(1.7); } }
.crt.talk { box-shadow: inset 0 0 0 2px #17110d, 0 0 12px rgba(214, 235, 214, .75); }
.crt .glow { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, #fff7dc, rgba(255, 240, 190, 0)); animation: glow 3.4s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .15; } }
.crt .thing { position: absolute; right: 6%; top: 7%; width: 22%; height: auto; color: #e8f2d9; animation: turn 9s linear infinite; }
.crt .digit { position: absolute; right: 7%; top: 5%; color: #e8f2d9; font-weight: 700; font-size: clamp(14px, 4vw, 24px); }
@keyframes turn { to { transform: rotate(360deg); } }
.crt::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .2) 0 1px, rgba(0, 0, 0, 0) 1px 3px), radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .55)); animation: flick 5s steps(2) infinite; }
@keyframes flick { 94% { opacity: 1; } 97% { opacity: .75; } }

/* the number machine, and the paper that comes out of its slot */
.stand { position: relative; width: min(100%, 340px); margin: 34px auto 0; }
.machine { position: relative; z-index: 2; padding: 16px 14px 10px; text-align: center; border-radius: 42px 42px 14px 14px; background: linear-gradient(#c2453a, #a32c28 60%, #872320); box-shadow: 0 4px 0 rgba(0, 0, 0, .28), inset 0 3px 0 rgba(255, 255, 255, .28); }
.machine::before { content: ""; position: absolute; left: 50%; top: -24px; width: 84px; height: 44px; margin-left: -42px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 44'><path d='M38 20C26 4 8 0 3 6c-4 7 0 24 6 30 7 4 21-4 29-12z' fill='%23f3b9c0' stroke='%238c4a55' stroke-width='2'/><path d='M46 20C58 4 76 0 81 6c4 7 0 24-6 30-7 4-21-4-29-12z' fill='%23f3b9c0' stroke='%238c4a55' stroke-width='2'/><path d='M12 10l8 22M22 8l6 19M72 10l-8 22M62 8l-6 19' stroke='%23fff' stroke-width='3' opacity='.75'/><rect x='35' y='13' width='14' height='16' rx='5' fill='%23e58c98' stroke='%238c4a55' stroke-width='2'/></svg>") center / contain no-repeat; }
.machine .btn { background: #fff4e4; border-color: #fff4e4; border-radius: 12px; color: var(--stamp); }
.machine .btn:disabled { color: #8a5a4c; background: #f1dcc6; border-color: #f1dcc6; cursor: default; }
.slot { display: block; height: 10px; margin: 12px 8px 0; background: #2a1512; border-radius: 5px; box-shadow: inset 0 2px 2px #000, 0 1px 0 rgba(255, 255, 255, .25); }
.feed { position: relative; z-index: 3; display: flex; justify-content: center; margin-top: -14px; padding-bottom: 8px; overflow: hidden; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.tongue, .ticket { background: #fdf6dc linear-gradient(rgba(120, 90, 30, .28), rgba(120, 90, 30, 0) 12px); -webkit-mask: radial-gradient(circle 5px at 50% 100%, transparent 96%, #000) left top / 14px 100%; mask: radial-gradient(circle 5px at 50% 100%, transparent 96%, #000) left top / 14px 100%; }
.tongue { width: 154px; height: 30px; }
.ticket { width: 182px; padding: 18px 14px 20px; color: var(--ink); text-align: center; font-size: 19px; line-height: 1.2; animation: feed .6s ease-out; }
.ticket b { display: block; font-size: 46px; line-height: 1.05; color: var(--stamp); }
@keyframes feed { from { transform: translateY(-100%); } }

/* the waiting room */
.wait h2, .office h2 { font-size: 32px; }
.serving { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0; padding: 8px; color: #ffb35c; background: #17130f; border: 4px solid var(--bezel); letter-spacing: .08em; text-transform: uppercase; font-size: 18px; }
.serving b { font-size: 40px; line-height: 1; }
.wait .bank { grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 10px 0 8px; scroll-margin-top: 8px; }
.crt.dead { background: #2a2f29 repeating-linear-gradient(0deg, #4c524a 0 2px, #1c201b 2px 3px, #6e736b 3px 4px, #252a24 4px 7px); background-size: 100% 28px; animation: snow .5s steps(6) infinite; }
@keyframes snow { to { background-position: 0 28px; } }
.heard { margin: 0 0 8px; padding: 8px 12px; color: var(--cream); background: var(--ink); font-size: 21px; }
.room { display: grid; gap: 10px; }
.wing { display: grid; grid-template-columns: 42% 1fr; gap: 10px; align-items: stretch; }
.wing .serving { flex-direction: column; gap: 2px; margin: 0; font-size: 15px; text-align: center; }

/* the window, and the receptionist behind it */
.window { position: relative; display: block; padding: 8px 8px 30px; cursor: pointer; font: inherit; background: #d9dcc6; border: 6px solid #5a4530; border-radius: 3px; }
.crt.undead { border-radius: 2px; }
.crt.undead img { filter: grayscale(.55) hue-rotate(58deg) brightness(.82) contrast(1.15); }
.crt.undead::after { background: linear-gradient(115deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 42%); animation: none; }
.crt.undead .thing, .crt.head .thing, .crt.head .digit, .crt.undead .digit { display: none; }
.crt.undead .lid { background: #8fa17e !important; }
.window .plate { position: absolute; left: 0; right: 0; bottom: 5px; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }

/* the spirit phone in the middle of the room */
.mid { display: grid; justify-items: center; }
.spirit { position: relative; z-index: 1; width: 46%; max-width: 170px; margin-bottom: -6px; padding: 0; background: none; border: 0; cursor: pointer; transform-origin: 50% 90%; animation: ring 11s linear infinite; }
.spirit.up { animation: none; }
.spirit.up svg path:nth-of-type(2) { transform: translate(14px, -10px) rotate(9deg); transform-origin: 50% 50%; }
.spirit svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); }
@keyframes ring { 0%, 90%, 100% { transform: rotate(0); } 91%, 93%, 95%, 97% { transform: rotate(-4deg); } 92%, 94%, 96%, 98% { transform: rotate(4deg); } }
.table { width: 62%; max-width: 230px; height: 16px; background: #5c4230; border-radius: 50%; box-shadow: 0 5px 0 #3b2a1e; }
.line { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 6; max-width: 704px; margin: 0 auto; padding: 10px; background: #f8efd0; border: 2px solid #5a4510; box-shadow: 0 -3px 14px rgba(0, 0, 0, .35); }
.line:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); overflow: auto; }
.line .heard { flex: 0 0 100%; margin: 0; font-size: 19px; line-height: 1.25; }
.tape.ringing { font-size: 19px; letter-spacing: 0; line-height: 32px; animation: glow 1.2s ease-in-out infinite; }
.wait .bank.hush { width: min(100%, calc((100vh - 330px) * 1.78)); min-width: 50%; margin-left: auto; margin-right: auto; }
@media (max-height: 520px) { .dial { flex-basis: 158px; } .hole { font-size: 16px; } }
.dial { position: relative; flex: 0 0 min(212px, 58vw); aspect-ratio: 1; border-radius: 50%; background: #e8bd2c; border: 3px solid #5a4510; }
.dial.ringing { animation: shiver .28s linear infinite; }
@keyframes shiver { 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
.dial::after { content: ""; position: absolute; left: 28%; top: 28%; width: 44%; height: 44%; border-radius: 50%; background: #f8efd0; border: 2px solid #5a4510; }
.wheel { position: absolute; inset: 0; border-radius: 50%; z-index: 1; }
.hole { position: absolute; width: 18.8%; aspect-ratio: 1; padding: 0; transform: translate(-50%, -50%); font: inherit; font-size: 20px; font-weight: 700; line-height: 1; color: var(--ink); background: #f8efd0; border: 2px solid #5a4510; border-radius: 50%; cursor: pointer; }
.stop { position: absolute; z-index: 2; left: 92%; top: 66%; width: 11%; height: 4%; background: #5a4510; border-radius: 2px; transform: rotate(20deg); }
.side { flex: 1 1 0; min-width: 0; max-width: 240px; display: grid; gap: 8px; }
.tape { min-height: 42px; margin: 0; padding: 4px; overflow: hidden; text-align: center; font-size: 24px; font-weight: 700; letter-spacing: .08em; background: #fff; border: 1px dashed #8c7a46; }
.line .btn { min-height: 48px; padding: 6px 4px; font-size: 19px; line-height: 1.15; }
.line .btn.on { background: var(--stamp); border-color: var(--stamp); color: var(--cream); }
.line .btn:disabled { border-style: dashed; color: var(--soft); font-size: 17px; cursor: default; }
.bank.hush .crt.talk:not(.answer) .mouth { visibility: hidden; }
.bank .crt { transition: filter .25s; }
.bank.answering .crt:not(.answer) { filter: brightness(.45); }
.bank .crt.answer { z-index: 2; transform: scale(1.12); box-shadow: 0 0 0 3px #ffe9ad, 0 0 20px 8px rgba(255, 233, 173, .9); }
.tape.long { font-size: 15px; letter-spacing: 0; line-height: 32px; }
.trouble { font-size: 16px; line-height: 1.2; text-align: center; }

/* the coffee station, and what the brews do */
.station { display: block; width: 100%; margin-top: 12px; padding: 0; background: none; border: 0; cursor: pointer; }
.station svg { display: block; width: 100%; height: auto; }
.station .steam { animation: steam 3s ease-in-out infinite; }
@keyframes steam { 50% { opacity: .15; transform: translateY(-4px); } }
.menu { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 6; max-width: 704px; margin: 0 auto; padding: 10px 12px 12px; background: #f8efd0; border: 2px solid #5a4510; box-shadow: 0 -3px 14px rgba(0, 0, 0, .35); }
.menu .note { margin: 0 0 8px; font-size: 18px; text-align: center; }
.mugs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.mug { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 8px; font: inherit; font-size: 17px; line-height: 1.1; text-align: left; color: var(--ink); background: #fff8e4; border: 1px solid #5a4510; border-radius: 3px; cursor: pointer; }
.mug i { flex: none; width: 26px; height: 26px; border: 3px solid #f1ebd9; outline: 1px solid #5a4510; border-radius: 50%; }
.menu .btn { min-height: 46px; padding: 6px; font-size: 19px; }
.brewfx { display: none; }
html.brew-night .brewfx, html.brew-cold .brewfx { display: block; position: fixed; inset: 0; z-index: 50; pointer-events: none; }
html.brew-night .brewfx { background: radial-gradient(circle 120px at var(--px, 50%) var(--py, 45%), rgba(5, 6, 4, 0) 45%, rgba(5, 6, 4, .985) 100%); }
html.brew-cold .brewfx { background: rgba(170, 212, 240, .2); box-shadow: inset 0 0 90px 42px rgba(226, 243, 255, .95); }
html.brew-cold .crt img { filter: saturate(.25) brightness(1.1) hue-rotate(160deg); }
html.brew-watched .glassbox, html.brew-watched .window .clerk, html.brew-watched .office .crt { transition: transform .25s; transform: perspective(240px) rotateY(calc(var(--lx, 0) * 38deg)) rotateX(calc(var(--ly, 0) * -30deg)); }
html.brew-watched .bank .crt .lid { display: none; }
html.brew-decaf main { opacity: .3; transition: opacity 2s; }
html.brew-second .crt, html.brew-second h1, html.brew-second h2, html.brew-second h3, html.brew-second p, html.brew-second .btn, html.brew-second .serving, html.brew-second .spirit, html.brew-second .station { filter: drop-shadow(13px 6px 0 rgba(32, 40, 31, .5)); }
html.brew-flip { transform: rotate(180deg); transform-origin: 50% var(--flipy, 50%); }

/* being in a room: the room fills the window and what you are doing sits over it */
html.place3d, html.place3d body { overflow: hidden; }
html.place3d body::before { display: none; }
canvas.place { position: fixed; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; cursor: grab; }
html.place3d main { padding: 0; }
html.place3d .wait.busy > .aside { display: none; }
html.place3d .wait > h2 { position: absolute; left: -999px; }
html.place3d .wait > .aside { position: fixed; left: 8px; top: 8px; z-index: 2; margin: 0; padding: 3px 12px; color: #6e5416; background: #f8ebc2; border: 2px solid #a98a3d; border-radius: 3px; text-shadow: none; }
html.place3d .scenewrap, html.place3d .room, html.place3d .wait > .back { display: none; }
html.place3d .foot { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 3; max-width: 704px; margin: 0 auto; }
html.place3d .line, html.place3d .menu { z-index: 6; }
html.place3d .foot .btn { min-height: 44px; padding: 6px 12px; font-size: 19px; }
html.place3d .said { font-size: 19px; margin-bottom: 6px; }
/* the options in a room: a floor plan on paper, pinned up, with you on it */
.plan { display: none; }
html.place3d .foot { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px; pointer-events: none; }
html.place3d .foot > * { pointer-events: auto; }
html.place3d .foot .said { grid-column: 1 / -1; margin: 0; }
html.place3d .foot .said:empty { display: none; }
html.place3d .foot .row { margin: 0; }
html.place3d .plan { display: block; position: relative; width: min(200px, 54vw); aspect-ratio: 1 / .86; background: #fdf6dc; background-image: linear-gradient(rgba(160, 130, 70, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 130, 70, .14) 1px, transparent 1px); background-size: 12px 12px; border: 1px solid #b59c5e; transform: rotate(-1.6deg); box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.plan::before { content: ""; position: absolute; left: 50%; top: -6px; width: 13px; height: 13px; margin-left: -6px; background: radial-gradient(circle at 35% 30%, #f7bcc4, #c8505f); border-radius: 50%; box-shadow: 0 2px 2px rgba(0, 0, 0, .4); }
.planhead { position: absolute; left: 0; right: 0; top: 3px; text-align: center; font-family: Lora, Georgia, serif; font-style: italic; font-size: 13px; color: var(--stamp); }
.spot { position: absolute; display: flex; align-items: center; justify-content: center; padding: 0; font: inherit; font-size: 12px; line-height: 1; color: #20281f; cursor: pointer; border: 1px solid #5a4510; border-radius: 3px; }
.spot.tall { writing-mode: vertical-rl; }
.spot.desk { background: #8fd0c2; } .spot.mdoor { background: #4f9f92; color: #fff; font-size: 10px; } .spot.tvs { background: #e9a9ae; } .spot.seatsp { background: #f3c6cb; }
.spot.ph { background: #e8bd2c; border-radius: 50%; } .spot.cof { background: #c9a27a; } .spot.wayin { background: #231244; color: #fff; } .spot.dirb { background: #39302a; color: #fff; font-size: 11px; }
.you { position: absolute; z-index: 2; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--stamp); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); pointer-events: none; }
html.place3d .wait.busy .foot { display: none; }
/* the telephone and the coffee: small, in a corner, so the room stays in view */
html.place3d .line:not([hidden]) { left: auto; right: 8px; bottom: 8px; width: min(calc(100vw - 16px), 330px); padding: 8px; gap: 6px 8px; background: rgba(248, 239, 208, .94); }
html.place3d .line .heard { font-size: 16px; padding: 6px 8px; margin: 0; }
html.place3d .dial { flex: 0 0 150px; } html.place3d .hole { font-size: 15px; }
html.place3d .side { gap: 4px; } html.place3d .tape { min-height: 30px; font-size: 18px; padding: 1px; line-height: 26px; } html.place3d .tape.ringing { font-size: 15px; line-height: 26px; }
html.place3d .line .btn { min-height: 34px; padding: 2px 4px; font-size: 16px; } html.place3d .trouble { font-size: 13px; }
html.place3d .menu { left: auto; right: 8px; width: min(calc(100vw - 16px), 330px); padding: 8px; }
html.place3d .menu .note { font-size: 15px; margin-bottom: 4px; } html.place3d .mugs { gap: 4px; margin-bottom: 4px; } html.place3d .mug { min-height: 36px; font-size: 14px; gap: 5px; padding: 2px 5px; } html.place3d .mug i { width: 18px; height: 18px; border-width: 2px; } html.place3d .menu .btn { min-height: 36px; font-size: 16px; }
/* the window: you ask, and a slip comes back */
.askwrap { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 6; max-width: 704px; max-height: 80vh; margin: 0 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #f8efd0; border: 2px solid #5a4510; box-shadow: 0 -3px 14px rgba(0, 0, 0, .35); }
html.place3d .askwrap { left: auto; right: 8px; width: min(calc(100vw - 16px), 420px); }
.ask { padding: 10px 12px 12px; color: var(--ink); text-align: left; }
.askpage { max-width: 620px; margin: 0 auto; background: #f8efd0; border: 2px solid #5a4510; }
.askpage h2 { margin: 12px 12px 0; text-shadow: none; color: var(--ink); }
.asksaid { margin: 0 0 8px; font-size: 19px; line-height: 1.25; }
.askform { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 8px; }
.askform label { grid-column: 1 / -1; font-size: 20px; font-weight: 600; }
.askform input { min-width: 0; min-height: 44px; padding: 4px 8px; font: inherit; font-size: 18px; color: var(--ink); background: #fffdf4; border: 1px solid #5a4510; border-radius: 2px; }
.askform .btn { width: auto; min-height: 44px; padding: 4px 16px; font-size: 18px; }
.askparts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.askpart { min-height: 40px; padding: 4px 8px; font: inherit; font-size: 16px; line-height: 1.1; text-align: left; color: var(--ink); background: #fdf6dc; border: 1px solid #b59c5e; border-radius: 2px; cursor: pointer; }
.askslip { padding: 8px 10px; background: #fdf6dc linear-gradient(transparent 7px, rgba(200, 80, 95, .55) 7px 8px, transparent 8px); border: 1px solid #b59c5e; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.askhead { margin: 8px 0 2px; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: #6e5416; }
.askslip .askhead:first-child { margin-top: 2px; }
.askline { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 7px 0; color: var(--ink); text-decoration: none; border-top: 1px dotted #b59c5e; }
.askline b { font-size: 18px; font-weight: 600; text-decoration: underline; }
.askline span { grid-column: 1; font-size: 16px; line-height: 1.2; }
.askline i { grid-column: 2; grid-row: 1; font-style: normal; font-size: 18px; }
.ask .row { gap: 5px; margin-top: 8px; }
.ask .btn { min-height: 42px; padding: 4px 8px; font-size: 18px; }
.asknote { margin: 6px 0 0; font-size: 16px; font-style: italic; }
.askfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.askmini { padding: 6px 10px; font: inherit; font-size: 16px; color: var(--ink); background: none; border: 1px solid #5a4510; border-radius: 2px; cursor: pointer; }
.askfoot .trouble { margin-left: auto; font-size: 15px; color: var(--ink); }
.cover .blank { display: inline-block; width: 4.2em; border-bottom: 2px solid currentColor; vertical-align: baseline; }
/* the meeting: the questions come to you on cards */
html.place3d .office { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 3; max-width: 520px; margin: 0 auto; }
html.place3d .office .desk { display: none; }
html.place3d .office > h2 { padding: 8px 12px; font-size: 21px; line-height: 1.2; background: #f8ebc2; border: 2px solid #a98a3d; text-shadow: none; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
html.place3d .office .row { gap: 5px; margin-top: 6px; }
html.place3d .office .btn { min-height: 38px; padding: 5px 12px; font-size: 18px; font-weight: 500; text-align: left; color: var(--ink); background: #fdf6dc linear-gradient(transparent 7px, rgba(200, 80, 95, .55) 7px 8px, transparent 8px); border: 1px solid #b59c5e; border-radius: 2px; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
html.place3d .office .btn:nth-child(odd) { transform: rotate(-.7deg); } html.place3d .office .btn:nth-child(even) { transform: rotate(.6deg); }
html.place3d .office .stamp { position: fixed; left: 50%; top: 20%; margin-left: -80px; background: rgba(253, 246, 220, .85); }
.veil { position: fixed; inset: 0; z-index: 20; background: #fdf1e6; animation: veil .3s ease-out; }
@keyframes veil { from { opacity: 0; } }
.toroom { position: fixed; left: 8px; bottom: 8px; z-index: 5; padding: 5px 12px; font-size: 16px; color: #6e5416; background: #f8ebc2; border: 2px solid #a98a3d; border-radius: 3px; text-decoration: none; box-shadow: 0 2px 5px rgba(0, 0, 0, .35); }
.toroom[hidden] { display: none; }
html.place3d .office ~ .toroom { top: 8px; bottom: auto; }
html.place3d .toroom { top: 8px; bottom: auto; }
.hall .said { position: relative; color: var(--ink); }
.cover h2, .cover .aside, .board h2, .hall h2, .hall .said, .sheet h2, .sheet .aside, .sheet p, .form h2, .form p, .said, .office > h2 { text-shadow: none; }
body.inhall .toroom { top: 8px; bottom: auto; }
.hall .said:empty { display: none; }
.hall .btn.quiet { position: relative; }
html.brew-decaf canvas.place { opacity: .35; transition: opacity 2s; }
html.brew-second canvas.place { filter: drop-shadow(11px 5px 0 rgba(32, 40, 31, .32)); }

/* her cloud room: one long wall you slide along */
.scenewrap { position: relative; margin: 10px 0 8px; scroll-margin-top: 8px; }
.scene { overflow-x: auto; overflow-y: hidden; border: 3px solid var(--brass); border-radius: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scene::-webkit-scrollbar { display: none; }
.wait .bank.pano { display: block; position: relative; height: clamp(250px, 58vh, 620px); aspect-ratio: 2200 / 1119; width: auto; min-width: 0; margin: 0; padding: 0; gap: 0; border-radius: 0; background: url(room/clouds.jpg) left top / 100% 100% no-repeat; transition: height .25s; }
.wait .bank.pano.hush { width: auto; min-width: 0; margin: 0; height: clamp(150px, calc(100vh - 340px), 620px); height: clamp(150px, calc(100dvh - 340px), 620px); }
.glassbox { position: absolute; overflow: hidden; border-radius: 12% / 14%; transition: transform .25s, box-shadow .25s; }
.glassbox .crt { position: absolute; border-radius: 0; box-shadow: none; }
.wait .bank.pano::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(10, 16, 12, 0); transition: background .25s; }
.wait .bank.pano.answering::after { background: rgba(10, 16, 12, .5); }
.glassbox.speaking { z-index: 2; overflow: hidden; transform: scale(1.22); box-shadow: 0 0 0 3px #ffe9ad, 0 0 22px 9px rgba(255, 233, 173, .95); }
.bank.pano .crt.answer { transform: none; box-shadow: none; filter: none; }
.nudge { position: absolute; top: 50%; z-index: 3; width: 42px; height: 42px; margin-top: -21px; padding: 0; font: inherit; cursor: pointer; background: #f8ebc2; border: 2px solid #a98a3d; border-radius: 50%; box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.nudge::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -6px 0 0 -6px; border: solid #6e5416; border-width: 0 0 3px 3px; }
.nudge.left { left: 6px; } .nudge.left::before { margin-left: -3px; transform: rotate(45deg); }
.nudge.right { right: 6px; } .nudge.right::before { margin-left: -8px; transform: rotate(225deg); }
.window .clerk { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.window { background: #f8ebc2; border-color: var(--pink); box-shadow: 0 0 0 2px var(--brass); }
.seats .visitor { display: block; padding: 0; font: inherit; cursor: pointer; background: none; border: 0; }
.visitor img { display: block; width: 100%; aspect-ratio: 1 / 1.2; object-fit: cover; border: 4px solid var(--brass); border-radius: 50%; box-shadow: 0 0 0 2px #7f6220, 0 4px 6px rgba(0, 0, 0, .35); }

/* the other members, on the chairs along the side */
.seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; align-items: end; margin-top: 8px; }
.member { position: relative; display: block; min-height: 112px; padding: 0 0 4px; font: inherit; background: none; border: 0; cursor: pointer; }
.member .head { position: relative; z-index: 2; width: 74%; margin: 0 auto -6px; border-radius: 50%; box-shadow: 0 2px 3px rgba(0, 0, 0, .4); }
.member .head::after { display: none; }
.member .coat { position: relative; z-index: 1; display: block; width: 66%; height: 38px; margin: 0 auto; background: #2e332c; border-radius: 40% 40% 8% 8%; }
.member .chair { display: block; width: 92%; height: 24px; margin: -9px auto 0; background: linear-gradient(#b5654a 0 45%, transparent 45%), linear-gradient(90deg, transparent 10%, #3e332b 10% 17%, transparent 17% 83%, #3e332b 83% 90%, transparent 90%); border-radius: 4px 4px 0 0; }
/* each of them a little wrong */
@keyframes hover { 50% { transform: translateY(-13px); } }
.foot { position: sticky; bottom: 8px; z-index: 4; margin-top: 14px; }
.foot .row { margin-top: 8px; }
.said { margin: 0; padding: 8px 12px; font-size: 21px; line-height: 1.3; background: #f8efd0; border: 2px solid #5a4510; }
.said:empty { padding: 0; border: 0; }
.goin .btn.quiet { background: var(--wall); }

/* behind the door: the staff, off shift */
.staff { padding: 12px; background: #d8c99f; border: 6px solid #2a1f14; box-shadow: inset 0 0 40px rgba(60, 40, 10, .45); }
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 4px; }
.cubby { padding: 0 0 4px; border-bottom: 7px solid #5c4230; }
.staff .crt.head { width: 80%; margin: 0 auto; border-radius: 50%; box-shadow: 0 2px 3px rgba(0, 0, 0, .4); }
.staff .crt.head::after { display: none; }
.hooks { display: flex; justify-content: space-between; gap: 4px; margin: 14px 0 12px; padding-top: 6px; border-top: 5px solid #3e332b; }
.hung { display: block; flex: 1; max-width: 42px; height: 62px; background: #2e332c; border-radius: 40% 40% 8% 8%; }
.hung:nth-child(1) { background: #4b2f4f; }
.hung:nth-child(2) { background: #36594f; }
.hung:nth-child(3) { background: #6b5a2c; height: 74px; }
.hung:nth-child(4) { background: #7b2f35; }
.hung:nth-child(5) { background: #27313f; }
.hung:nth-child(7) { background: #5c4230; height: 50px; }
.tea { display: grid; grid-template-columns: 46% 1fr; gap: 12px; align-items: center; }
.rota { margin: 0; padding: 10px 8px; font-size: 18px; line-height: 1.2; text-align: center; color: var(--ink); background: #f8efd0; transform: rotate(2deg); box-shadow: 0 2px 3px rgba(0, 0, 0, .3); }
.ajar .said { min-height: 2.8em; margin-top: 12px; }
.ajar .said:empty { background: none; border: 0; }
.ajar .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* the sorting meeting */
.office .desk { max-width: 420px; margin: 8px auto 14px; padding: 12px 12px 8px; background: #5c4230; border-radius: 4px; box-shadow: 0 5px 0 #3b2a1e; }
.office .crt { border: 7px solid var(--bezel); }
.office .plate { margin: 8px auto 0; width: fit-content; padding: 1px 12px; color: #2a2010; background: #c9a95b; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }

/* the hall back: everything rushes at you and the building leans */
body.inhall { background: #171a12; }
body.inhall main { padding-bottom: 16px; }
.office .thing { display: none; }
.hall { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); overflow: hidden; color: var(--cream); }
.hall .well { position: fixed; inset: 0; overflow: hidden; animation: lean 7s ease-in-out infinite alternate; }
.hall .well i { position: absolute; left: 50%; top: 44%; width: 58vmin; height: 84vmin; margin: -42vmin 0 0 -29vmin; border: 3.2vmin solid #6a9180; background: transparent; box-shadow: inset 0 0 0 1.2vmin #e6a4a4; animation: rush 5.6s linear infinite; opacity: 0; }
.hall .well i:nth-child(even) { border-color: #d6c27c; box-shadow: inset 0 0 0 1.2vmin #233b33; border-style: dashed; }
@keyframes rush { 0% { transform: scale(.04); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(3.4) rotate(7deg); opacity: 1; } }
@keyframes lean { from { transform: rotate(-6deg) skewX(3deg); } to { transform: rotate(7deg) skewX(-5deg); } }
/* the door left open a crack, standing still in all that rushing */
.ajardoor { position: relative; display: block; flex: none; align-self: center; width: 112px; height: 176px; margin-bottom: 4px; background: #4d3a26; border: 4px solid #2a1f14; transform: perspective(420px) rotateY(-16deg); transform-origin: 0 50%; box-shadow: 10px 0 22px 4px rgba(255, 224, 150, .75); }
.ajardoor::after { content: ""; position: absolute; top: 0; bottom: 0; right: -9px; width: 5px; background: #ffe9ad; }
.ajardoor .knob { position: absolute; right: 9px; top: 52%; width: 10px; height: 10px; border-radius: 50%; background: #c9a95b; }
.ajardoor.shut { transform: none; box-shadow: none; }
.ajardoor.shut::after { display: none; }
.hall h2 { position: relative; padding: 8px 12px; text-align: center; font-size: 30px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); background: #e9e2c6; border: 2px solid var(--ink); }
.hall .btn { position: relative; background: var(--cream); color: var(--ink); border-color: var(--cream); margin-bottom: 8px; }

/* the book at the window */
.cover { width: min(78vw, 300px); aspect-ratio: 3 / 4; margin: 16px auto; padding: 44px 22px; text-align: center; color: #e9cf85; background: #4f1c22; border-left: 14px solid #33101a; border-radius: 3px 8px 8px 3px; box-shadow: 4px 6px 12px rgba(0, 0, 0, .4); }
.cover h2 { font-size: 34px; }
.cover .aside { color: #d9c28a; }
.page .sheet { border-left: 12px solid #d9cfae; }

/* the directory: white letters pressed into a black board */
.board { margin-top: 14px; padding: 16px; background: var(--board); color: var(--cream); border: 8px solid #5a4530; border-radius: 3px; }
.board h2 { font-size: 24px; letter-spacing: .14em; text-transform: uppercase; text-align: center; margin-bottom: 8px; }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li > * { display: flex; gap: 12px; align-items: baseline; min-height: 54px; padding: 12px 2px; border-top: 1px solid rgba(241, 235, 217, .22); font-size: 22px; color: var(--cream); text-decoration: none; }
.board .fl { width: 1.4em; flex: none; }
.board .nm { flex: 1; text-transform: uppercase; letter-spacing: .06em; }
.board .ct { font-size: 18px; white-space: nowrap; }
.board .shut { opacity: .46; }
.board a .nm { text-decoration: underline; text-underline-offset: 4px; }

/* the files */
.dept h2 { font-size: 34px; margin-top: 4px; }
.files { display: grid; gap: 22px; margin-top: 16px; padding: 0; list-style: none; }
.file { position: relative; display: block; margin-top: 18px; padding: 12px; text-decoration: none; color: var(--ink); background: var(--manila); border-radius: 0 4px 4px 4px; box-shadow: 0 3px 0 var(--manila2), 0 5px 9px rgba(0, 0, 0, .2); }
.file .tab { position: absolute; left: 0; top: -22px; height: 23px; padding: 1px 12px; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; background: var(--manila); border-radius: 5px 5px 0 0; }
.file .inner { display: grid; grid-template-columns: 42% 1fr; gap: 12px; align-items: start; }
.file .crt { border: 5px solid var(--bezel); }
.file h3 { font-size: 25px; }
.file p { margin: 4px 0 0; font-size: 19px; line-height: 1.25; }
.file .fee { font-weight: 600; }

/* an open file */
.open .sheet { padding: 16px; background: #fbf5e2; box-shadow: 0 2px 6px rgba(0, 0, 0, .22); }
.open img.pic { display: block; width: 100%; max-width: 420px; margin: 0 auto 14px; }
.open h2 { font-size: 32px; }
.open ul { margin: .5em 0; padding-left: 1.1em; }
.bill { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 20px; }
.bill caption { text-align: left; font-weight: 600; padding-bottom: 4px; }
.bill td { padding: 7px 0; border-top: 1px dashed #99906f; vertical-align: top; }
.bill td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-weight: 600; }

/* intake: one line of the form at a time */
.form { padding: 18px 16px; background: #fbf5e2; box-shadow: 0 2px 6px rgba(0, 0, 0, .22); }
.form .of { font-size: 17px; letter-spacing: .05em; text-transform: uppercase; color: var(--soft); }
.form label { display: block; margin: 12px 0 8px; font-size: 30px; line-height: 1.15; font-weight: 600; }
.form textarea, .form input, .form select { display: block; width: 100%; padding: 12px; font: inherit; font-size: 22px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 2px; }
.form textarea { min-height: 7.5em; resize: vertical; }
.form .no { border-color: var(--stamp); }
.form .say { min-height: 1.4em; color: var(--stamp); font-weight: 600; }

/* the folder that follows you, and the window */
.folder { position: fixed; right: 12px; bottom: 12px; z-index: 5; min-height: 56px; padding: 10px 18px; font: inherit; font-size: 20px; font-weight: 600; color: var(--ink); background: var(--manila); border: 2px solid var(--ink); border-radius: 3px; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); cursor: pointer; }
.cases { margin: 12px 0; padding: 0; list-style: none; }
.cases li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed #99906f; }
.cases .x { padding: 0 8px; font-size: 18px; text-decoration: underline; color: var(--soft); background: none; border: 0; cursor: pointer; min-height: 44px; }
.total { font-size: 24px; font-weight: 600; text-align: right; }
.stamp { display: inline-block; margin: 8px 0 14px; padding: 6px 16px; font-size: 36px; font-weight: 800; letter-spacing: .08em; color: var(--stamp); border: 5px solid var(--stamp); border-radius: 5px; transform: rotate(-5deg); animation: thump .22s ease-out; }
@keyframes thump { from { transform: rotate(-5deg) scale(1.7); opacity: 0; } }
.note { font-size: 18px; color: var(--soft); }

@media (min-width: 620px) {
  .bank, .wait .bank { grid-template-columns: repeat(6, 1fr); }
  .room { grid-template-columns: 1fr 1.1fr 1fr; align-items: end; }
  .wing { grid-template-columns: 1fr; order: 3; }
  .mid { order: 2; }
  .seats { order: 1; grid-template-columns: repeat(3, 1fr); }
  .file .inner { grid-template-columns: 34% 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
/* every floor (2 December): a reading without a television shows its picture; the magpie in the hall */
.file .thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border: 5px solid var(--bezel); border-radius: 12% / 14%; }
.dept h2 { text-transform: capitalize; }
.hall .magpie { position: relative; align-self: flex-end; padding: 4px 12px; font-size: 18px; font-style: italic; color: var(--ink); background: #e9e2c6; border: 2px solid var(--ink); border-radius: 3px; }
