/* Tell Me About a Time: the room, the book, the board, the lobby. */
:root {
  --ink: #e9e4da;
  --muted: #a29d93;
  --s: .5;            /* plate scale, set by app.js */
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #a49f97; }
body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #1b1b1b;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; }
img { -webkit-user-drag: none; }

/* ------------------------------------------------------------------ the room */
#room {
  position: fixed; inset: 0; overflow: hidden;
  background: linear-gradient(#a6a199 0 48%, #b78b5a 48% 100%);
  touch-action: manipulation;
}
#plate {
  position: absolute; left: 0; top: 0; width: 2560px; height: 1700px;
  transform-origin: 0 0; will-change: transform;
}
#plate-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pose {
  position: absolute; left: 840px; top: 0; width: 1040px; height: 1000px;
  opacity: 0; transition: opacity .2s linear; pointer-events: none;
}
.pose.on { opacity: 1; }

#clock { position: absolute; left: 1956px; top: 152px; width: 0; height: 0; pointer-events: none; filter: blur(.7px); }
#clock .hand { position: absolute; left: 0; bottom: 0; transform-origin: 50% 100%; border-radius: 3px; background: #262626; }
#clock .h { width: 10px; height: 62px; margin-left: -5px; }
#clock .m { width: 7px; height: 92px; margin-left: -3.5px; }
#clock .s { width: 3px; height: 104px; margin-left: -1.5px; background: #a3302c; transform-origin: 50% calc(100% - 18px); bottom: -18px; }
#clock b { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #262626; }

#ink { position: absolute; left: 0; top: 0; width: 400px; height: 553px; transform-origin: 0 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 72%); mask-image: linear-gradient(to top, #000 40%, transparent 72%); }
#ink-lines { position: absolute; inset: 0; transform: rotate(180deg); padding: 58px 26px 0 64px; font: 500 17px/16px Caveat, cursive; color: rgba(28, 38, 84, .78); }
#ink-lines div { height: 16px; white-space: nowrap; overflow: hidden; }
#pad-hot { position: absolute; left: 1090px; top: 812px; width: 400px; height: 96px; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
#pad-hot:focus-visible { outline: 6px solid rgba(255,255,255,.7); }
#landing { position: absolute; left: 640px; top: 800px; width: 440px; height: 100px; pointer-events: none; }

/* captions: closed-caption style, top centre */
#cc {
  position: fixed; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%);
  width: max-content; max-width: min(92vw, 860px); text-align: center; pointer-events: none; z-index: 65;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
html.phone #cc { flex-direction: column; gap: 6px; max-width: calc(100vw - 24px); }
#cc p { margin: 0 auto; width: fit-content; }
#cc-line {
  font: 500 clamp(15px, 1.55vw, 21px)/1.35 Inter, system-ui, sans-serif; color: #fff;
  background: rgba(10, 10, 10, .72); padding: .28em .7em .32em; border-radius: 3px;
  opacity: 0; transition: opacity .18s;
}
#cc-line.on { opacity: 1; }
#cc-extra { margin: 0 !important; pointer-events: auto; flex: none; }
#cc-extra:empty { display: none; }
#cc-extra a {
  display: inline-block; font: 500 clamp(14px, 1.3vw, 17px)/1 Inter, system-ui, sans-serif; color: #fff; text-decoration: underline;
  text-underline-offset: 3px; background: rgba(10, 10, 10, .72); padding: .5em .75em .55em; border-radius: 3px;
}

#sound {
  position: absolute; right: max(10px, env(safe-area-inset-right)); top: max(10px, env(safe-area-inset-top)); z-index: 31;
  width: 38px; height: 38px; border-radius: 19px; border: 0; padding: 8px; cursor: pointer;
  background: rgba(10, 10, 10, .42); color: #fff;
}
#sound svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#sound svg path:first-child { fill: currentColor; stroke: none; }
#sound .x { display: none; }
#sound[aria-pressed="false"] .x { display: block; }
#sound[aria-pressed="false"] .w1, #sound[aria-pressed="false"] .w2 { display: none; }

/* ------------------------------------------------------------------ your side of the table */
#table { position: absolute; inset: 0; pointer-events: none; }
#table > * { pointer-events: auto; }

#resume-copy {
  position: absolute; width: 170px; height: 220px; padding: 16px 15px; border: 0; cursor: pointer; text-align: left;
  background: #f7f5f0; border-radius: 1px; transform: rotate(-7deg) scale(var(--k, 1)); transform-origin: 100% 0%;
  box-shadow: 0 1px 1px rgba(0,0,0,.18), 6px 10px 16px -6px rgba(60, 35, 10, .45);
  font-family: 'EB Garamond', Georgia, serif; color: #222; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
#resume-copy:hover { transform: rotate(-7deg) translateY(-4px) scale(var(--k, 1)); box-shadow: 0 1px 1px rgba(0,0,0,.18), 8px 16px 22px -6px rgba(60, 35, 10, .5); }
#resume-copy:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rc-name { display: block; font-size: 13px; letter-spacing: .14em; font-weight: 600; text-transform: uppercase; }
.rc-rule { display: block; height: 1px; background: #333; margin: 6px 0 7px; }
.rc-lines { display: block; font-size: 5.4px; line-height: 1.55; color: #444; }
.rc-lines b { font-weight: 600; color: #222; }

#book { position: absolute; perspective: 1700px; perspective-origin: 50% -40%; touch-action: pan-y; }
.case {
  position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--tilt, 10deg)); transform-origin: 50% 100%;
  border-radius: 14px / 18px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255,255,255,.07), rgba(255,255,255,0) 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    #171615;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 -2px 0 rgba(0,0,0,.6) inset,
              0 26px 30px -14px rgba(45, 25, 8, .6), 0 6px 10px -2px rgba(30, 15, 5, .45);
}
.zip { position: absolute; top: 1.6%; bottom: 1.6%; width: 49%; pointer-events: none;
  border: 3px dotted #8d8a83; border-radius: 10px; box-shadow: 0 0 0 3px #232221, inset 0 0 0 1px #0c0c0c; opacity: .9; }
.zip-l { left: .7%; border-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.zip-r { right: .7%; border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.pull { position: absolute; right: -6px; top: 7%; width: 12px; height: 34px; border-radius: 3px 3px 6px 6px;
  background: linear-gradient(90deg, #6d6a64, #d9d6cf 45%, #8a877f 60%, #5b5853); box-shadow: 1px 2px 3px rgba(0,0,0,.5); }
.pull::after { content: ""; position: absolute; left: 3px; top: 18px; width: 6px; height: 10px; border-radius: 3px; background: #2c2b29; }

.half { position: absolute; top: 0; bottom: 0; width: 50%; }
.half.left { left: 0; }
.half.right { right: 0; }
.page {
  position: absolute; top: var(--pad-y, 4.2%); bottom: var(--pad-y, 4.2%);
  background: #0b0b0b; border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 1px 2px rgba(0,0,0,.7);
}
.half.left .page { left: var(--pad-x, 3.2%); right: var(--gutter, 3.4%); }
.half.right .page { right: var(--pad-x, 3.2%); left: var(--gutter, 3.4%); }
.stack { position: absolute; top: calc(var(--pad-y, 4.2%) + 2px); bottom: calc(var(--pad-y, 4.2%) - 3px); width: var(--stack, 4px);
  background: repeating-linear-gradient(90deg, #2c2c2c 0 1px, #0e0e0e 1px 2px); border-radius: 2px; }
.half.left .stack { left: calc(var(--pad-x, 3.2%) - var(--stack-l, 4px)); width: var(--stack-l, 4px); }
.half.right .stack { right: calc(var(--pad-x, 3.2%) - var(--stack-r, 4px)); width: var(--stack-r, 4px); }

/* a sleeve: black insert, the print mounted on it, clear plastic over the top */
.sleeve { position: absolute; inset: 0; margin: 0; }
.sleeve::after { /* the plastic */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255,255,255,0) 28%, rgba(255,255,255,.075) 41%, rgba(255,255,255,.02) 50%, rgba(255,255,255,0) 58%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 18%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.sleeve .holes { position: absolute; top: 8%; bottom: 8%; width: 9px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.half.left .sleeve .holes, .flip .back .sleeve .holes { right: 5px; }
.half.right .sleeve .holes, .flip .front .sleeve .holes { left: 5px; }
.sleeve .holes i { width: 9px; height: 9px; border-radius: 50%; background: #2a2723; box-shadow: inset 0 1px 2px rgba(0,0,0,.8), 0 0 0 2px rgba(255,255,255,.05); }
.print {
  position: absolute; left: 8.5%; right: 8.5%; top: 7%; bottom: 15%;
  display: flex; align-items: center; justify-content: center;
  border: 0; padding: 0; background: none; cursor: pointer;
}
.print img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  box-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04); transition: transform .2s ease, box-shadow .2s ease; }
.print:hover img, .print:focus-visible img { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.print:focus-visible { outline: none; }
.print:focus-visible img { outline: 2px solid #f2ede4; outline-offset: 3px; }
.sleeve figcaption {
  position: absolute; left: 8.5%; right: 8.5%; bottom: 5.2%; height: 7%; display: flex; align-items: center; justify-content: center; gap: .6em;
  font: 500 clamp(10px, 1.02vw, 14px)/1 Inter, system-ui, sans-serif; color: #e4dfd5; letter-spacing: .01em; white-space: nowrap; overflow: hidden;
  pointer-events: none;
}
.sleeve figcaption span { color: #8d887f; font-weight: 400; letter-spacing: .08em; font-size: .82em; text-transform: uppercase; }
.sleeve.empty .print, .sleeve.empty figcaption { display: none; }

.corner { position: absolute; bottom: calc(var(--pad-y, 4.2%) - 1px); width: 46px; height: 46px; border: 0; padding: 0; cursor: pointer; background: none; z-index: 3; }
.corner::before { content: ""; position: absolute; width: 26px; height: 26px; bottom: 0; transition: width .18s, height .18s; }
.corner.next { right: calc(var(--pad-x, 3.2%) - 1px); }
.corner.next::before { right: 0; background: linear-gradient(135deg, rgba(0,0,0,0) 49%, #1d1d1d 50%, #3c3b39 70%, #0d0d0d); border-top-left-radius: 4px; box-shadow: -2px -2px 4px rgba(0,0,0,.6); }
.corner.prev { left: calc(var(--pad-x, 3.2%) - 1px); }
.corner.prev::before { left: 0; background: linear-gradient(225deg, rgba(0,0,0,0) 49%, #1d1d1d 50%, #3c3b39 70%, #0d0d0d); border-top-right-radius: 4px; box-shadow: 2px -2px 4px rgba(0,0,0,.6); }
.corner:hover::before, .corner:focus-visible::before { width: 36px; height: 36px; }
.corner[hidden] { display: none; }
.prev-phone { display: none; }
html.phone .prev-phone:not([hidden]) { display: block; left: calc(var(--gutter, 7%) - 1px); right: auto; }
html.phone .half.left, html.phone .zip-l { display: none; }
html.phone .half.right { width: 100%; }
html.phone .zip-r { width: auto; left: .7%; border-left: 3px dotted #8d8a83; border-radius: 10px; }
html.phone .rings { left: calc(var(--gutter, 7%) / 2 + 1px); width: 20px; margin-left: -10px; }
html.phone .rings::before { left: 5px; right: 5px; }

.flip { position: absolute; top: 0; bottom: 0; transform-style: preserve-3d; transform-origin: 0% 50%; pointer-events: none; display: none; }
.flip.on { display: block; }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip .back { transform: rotateY(180deg); }
.flip .front .page { left: var(--gutter, 3.4%); right: var(--pad-x, 3.2%); }
.flip .back .page { left: var(--pad-x, 3.2%); right: var(--gutter, 3.4%); }
.flip .shade { position: absolute; inset: 0; pointer-events: none; background: #000; opacity: 0; }

.rings { position: absolute; left: 50%; top: 5%; bottom: 5%; width: 26px; margin-left: -13px; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between; transform: translateZ(2px); }
.rings::before { content: ""; position: absolute; left: 7px; right: 7px; top: 4%; bottom: 4%; border-radius: 6px;
  background: linear-gradient(90deg, #4c4b48, #d8d6d0 35%, #f4f2ec 45%, #8e8c86 65%, #3e3d3a); box-shadow: 0 2px 4px rgba(0,0,0,.6); }
.rings i { position: relative; display: block; height: 16px; margin: 0 -18px; border-radius: 9px; border: 3px solid #bdbab3;
  border-left-color: #7c7a74; border-bottom-color: #8f8c86; box-shadow: 0 2px 3px rgba(0,0,0,.55); }

#all-out {
  position: absolute; border: 0; cursor: pointer; padding: 8px 13px; border-radius: 3px;
  font: 500 13px/1 Inter, system-ui, sans-serif; color: #2a2016; background: rgba(255, 250, 240, .55);
  box-shadow: 0 1px 2px rgba(60, 35, 10, .3); white-space: nowrap;
}
#all-out:hover, #all-out:focus-visible { background: rgba(255, 250, 240, .78); }

/* every sleeve out on the table */
#spread { position: absolute; overflow: hidden; }
#spread.scroll { -webkit-mask-image: linear-gradient(transparent 0, #000 34px); mask-image: linear-gradient(transparent 0, #000 34px); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#spread .inner { position: relative; }
html:not(.phone) #spread .inner { transform: perspective(1100px) rotateX(16deg); transform-origin: 50% 100%; }
.loose {
  position: absolute; border: 0; padding: 0; cursor: pointer; background: #0d0d0d; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 4px 8px 12px -4px rgba(40, 22, 6, .6);
  transition: transform .5s cubic-bezier(.2,.8,.25,1), box-shadow .2s, opacity .4s;
}
.loose img { display: block; width: 90%; height: 84%; object-fit: contain; }
.loose:hover, .loose:focus-visible { scale: 1.3; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 8px 16px 20px -4px rgba(40, 22, 6, .65); z-index: 2; outline: none; }
.loose:focus-visible { outline: 2px solid #fff; }

/* a print on its way across the table */
.flying { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; transform-origin: 0 0; background: #0b0b0b; padding: 2.5%;
  display: flex; align-items: center; justify-content: center; box-shadow: 4px 10px 18px -6px rgba(30, 15, 4, .6); }
.flying img { display: block; max-width: 100%; max-height: 100%; }

/* ------------------------------------------------------------------ the board: the case study, laid on the table */
#board { position: fixed; inset: 0; z-index: 50; }
#board[hidden] { display: none; }
.board-shade { position: absolute; inset: 0; background: rgba(24, 18, 12, .5); opacity: 0; transition: opacity .3s; }
#board.on .board-shade { opacity: 1; }
.board-paper {
  position: absolute; left: 50%; top: max(2.5vh, env(safe-area-inset-top)); bottom: 2.5vh; width: min(1080px, 94vw);
  transform: translateX(-50%) translateY(8px) scale(.985); opacity: 0; transition: transform .32s cubic-bezier(.2,.8,.25,1), opacity .25s;
  display: flex; flex-direction: column; border-radius: 3px; color: var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    #111110;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 30px 60px -20px rgba(0,0,0,.7), 0 10px 20px rgba(0,0,0,.35);
}
#board.on .board-paper { transform: translateX(-50%); opacity: 1; }
.board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 14px 28px; flex: none; }
#board-title { margin: 0; font: 600 clamp(19px, 2vw, 26px)/1.15 Inter, system-ui, sans-serif; letter-spacing: -.005em; }
#board-client { margin: 5px 0 0; font: 500 11px/1 Inter, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#board-client:empty { display: none; }
#board-close { flex: none; width: 42px; height: 42px; margin: -4px -6px 0 0; border: 0; border-radius: 21px; cursor: pointer;
  font: 300 30px/42px Inter, system-ui, sans-serif; color: var(--ink); background: rgba(255,255,255,.08); }
#board-close:hover, #board-close:focus-visible { background: rgba(255,255,255,.16); outline: none; }
#board-scroll { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 28px 34px; user-select: text; -webkit-user-select: text; }
#board-work { --ab-fg: var(--ink); --ab-muted: var(--muted); --ab-accent: #f2ede4; --ab-chrome: 150px; font: 400 15px/1.55 Inter, system-ui, sans-serif; max-width: 980px; margin: 0 auto; }
#board-work .ab-lede { font-size: 17px; line-height: 1.5; color: #f1ece2; max-width: 46em; }
#board-work .ab-heading { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #cfc9be; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.09); }
#board-work .ab-text { color: #cdc7bb; max-width: 50em; }
#board-work .ab-credits { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.09); line-height: 1.6; }
#board-work figcaption { color: var(--muted); }
#board-work audio { filter: invert(.9) hue-rotate(180deg); }

/* the résumé: the same board, as a printed page */
#board.paper .board-paper { width: min(760px, 94vw); background: #fbfaf6; color: #1d1d1d;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 8px 16px rgba(0,0,0,.25); }
#board.paper #board-close { color: #333; background: rgba(0,0,0,.06); }
#board.paper .board-head { padding-bottom: 0; }
#board.paper #board-title, #board.paper #board-client { display: none; }
.resume { font-family: 'EB Garamond', Georgia, serif; color: #1d1d1d; max-width: 600px; margin: 0 auto; padding: 4px 0 20px; }
.resume h2 { margin: 0; font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: .16em; text-transform: uppercase; text-align: center; }
.resume .title { margin: 6px 0 0; text-align: center; font-size: 18px; font-style: italic; }
.resume .contact { margin: 10px 0 0; text-align: center; font-size: 15px; color: #444; }
.resume .contact a { color: #1d1d1d; }
.resume hr { border: 0; border-top: 1px solid #222; margin: 18px 0 16px; }
.resume .bio { font-size: 18px; line-height: 1.45; margin: 0; }
.resume h3 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin: 22px 0 10px; }
.resume ul { list-style: none; margin: 0; padding: 0; }
.resume li { margin: 0 0 11px; font-size: 16.5px; line-height: 1.35; }
.resume li b { font-weight: 600; }
.resume li span { display: block; color: #4a4a4a; font-size: 15px; }

/* ------------------------------------------------------------------ her notes, glimpsed */
#glimpse { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(24, 18, 12, .35); cursor: zoom-out; opacity: 0; transition: opacity .25s; }
#glimpse.on { opacity: 1; }
#glimpse[hidden] { display: none; }
.g-pad { width: min(440px, 80vw); aspect-ratio: 8.5 / 11.75; perspective: 1400px; }
.g-sheet {
  position: relative; width: 100%; height: 100%; transform: rotateX(18deg) rotate(180deg);
  background:
    linear-gradient(90deg, transparent 13%, rgba(205, 70, 70, .55) 13% 13.3%, transparent 13.3% 14%, rgba(205, 70, 70, .55) 14% 14.3%, transparent 14.3%),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--rule) - 1px), rgba(70, 120, 180, .45) calc(var(--rule) - 1px) var(--rule)),
    linear-gradient(#fbf3a6, #f6ec93);
  background-position: 0 0, 0 calc(var(--top) - 2px), 0 0;
  box-shadow: 0 30px 40px -16px rgba(0,0,0,.6), 0 4px 10px rgba(0,0,0,.25);
  --rule: 6.1%; --top: 11%;
}
.g-sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5.5%; background: linear-gradient(#7b2d22, #5f2219); }
.g-lines { position: absolute; left: 17%; right: 6%; top: calc(11% + 1.2%); font: 500 clamp(19px, 4.4vw, 27px)/1 Caveat, cursive; color: #1f2c5c; }
.g-lines div { height: calc(var(--lh) * 1px); display: flex; align-items: flex-end; white-space: nowrap; }

/* ------------------------------------------------------------------ the lobby */
#lobby { position: fixed; inset: 0; z-index: 60; overflow: hidden; background: #a7a39b; cursor: pointer; }
#lobby-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%;
  transform-origin: 81% 42%; transition: transform 1s cubic-bezier(.5,0,.7,1), opacity .5s .55s; }
#lobby.leaving #lobby-img { transform: scale(1.35); opacity: 0; }
#lobby.leaving .badge { opacity: 0; transition: opacity .3s; }
#lobby.leaving.quick { pointer-events: none; background: transparent; }
#lobby.leaving.quick #lobby-img { transition: transform .5s cubic-bezier(.5,0,.7,1), opacity .28s .22s; }
#lobby.leaving.quick .badge { transition: opacity .18s; }
#lobby.gone { display: none; }
.badge {
  position: absolute; left: 50%; bottom: 9%; width: min(300px, 40vw); aspect-ratio: 1.55; transform: translateX(-50%) perspective(700px) rotateX(48deg) rotate(-5deg);
  background: #fbfbf8; border-radius: 9px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 2px 1px rgba(60, 40, 15, .35), 0 10px 14px -6px rgba(40, 25, 10, .45);
}
.badge-band { height: 30%; background: #b8262c; color: #fff; display: grid; place-items: center; font: 800 clamp(16px, 2.3vw, 24px)/1 Inter, system-ui, sans-serif; letter-spacing: .26em; padding-left: .26em; }
.badge-name { height: 58%; display: grid; place-items: center; font: 400 clamp(18px, 3vw, 34px)/1 'Permanent Marker', cursive; color: #1b1b1d; letter-spacing: .02em; white-space: nowrap; }
.badge-foot { height: 12%; background: #b8262c; }

/* ------------------------------------------------------------------ phones */
@media (max-width: 700px) and (orientation: portrait) {
  #resume-copy { width: 120px; height: 156px; padding: 11px 10px; }
  .rc-name { font-size: 9.5px; }
  .rc-lines { font-size: 4px; }
  .rings i { margin: 0 -10px; height: 12px; }
  #all-out { font-size: 12.5px; }
  .badge { width: 52vw; bottom: 12%; }
  #lobby-img { object-position: 83% 50%; }
  #sound { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); right: 12px; }
  #resume-copy { width: 112px; height: 146px; }
}
@media (prefers-reduced-motion: reduce) {
  .board-paper, .loose, #lobby-img, .pose { transition: none !important; }
}
.flying.sheet { background: #f7f5f0; }
