/* Baseline is Chrome 61 (the mini-tool container's oldest WebView): no flex gap, no inset, no clamp(), no aspect-ratio. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* .btn sets display, which would otherwise show a button marked hidden */
[hidden] { display: none !important; }
/* --top: where the page's own top-edge things may start; set by engine.js from the host's window info */
:root { --top: 0px; }
html, body { height: 100%; background: #1c1613; }
body {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", -apple-system, "PingFang SC", "Microsoft YaHei", serif;
  color: #2b2320;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  overflow: hidden;
}
#app { position: relative; height: 100%; max-width: 520px; margin: 0 auto; background: #f4ecdf; overflow: hidden; }
.screen { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: none; }
.screen.on { display: block; }
#play.on { display: flex; flex-direction: column; }

.btn {
  display: block; width: 100%; border: 0; border-radius: 6px; padding: 15px 16px;
  font: inherit; font-size: 17px; letter-spacing: 2px; cursor: pointer;
}
.btn.primary { background: #b3312a; color: #fff6ea; box-shadow: 0 3px 0 #7d1f1a; }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #7d1f1a; }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; margin-top: 12px; opacity: .85; }

/* ---------- cover ---------- */
#cover { background: #1c1613; color: #f7efe2; }
.cover-art { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #2a211c center top / cover no-repeat; }
.cover-shade { position: absolute; left: 0; bottom: 0; width: 100%; height: 62%; background: linear-gradient(to bottom, rgba(28,22,19,0), rgba(28,22,19,.82) 45%, #1c1613 88%); }
.cover-text { position: absolute; left: 0; bottom: 0; width: 100%; padding: 0 26px 34px; padding-bottom: calc(34px + env(safe-area-inset-bottom)); text-align: center; }
.cover-kicker { font-size: 13px; letter-spacing: 3px; opacity: .8; }
#cover h1 { font-size: 44px; letter-spacing: 6px; margin: 10px 0 8px; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.cover-chapter { font-size: 15px; letter-spacing: 2px; opacity: .85; margin-bottom: 26px; }
.cover-note { font-size: 12px; line-height: 1.5; opacity: .7; margin-top: 10px; }

/* ---------- play ---------- */
.art { position: relative; flex: 0 0 40%; background: #2a211c; overflow: hidden; }
.art-layer { position: absolute; left: -3%; top: -3%; width: 106%; height: 106%; background: center / cover no-repeat; opacity: 0; transition: opacity .7s ease; }
.art-layer.on { opacity: 1; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-1.2%, 0, 0) scale(1); } to { transform: translate3d(1.2%, -1%, 0) scale(1.04); } }
/* the people in the scene: the heroine stands left, whoever she is talking to stands right; only the speaker is lit */
.cast { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.pt { position: absolute; bottom: -3%; height: 92%; width: auto; opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .28s ease, transform .28s ease, filter .28s ease, -webkit-filter .28s ease; -webkit-filter: brightness(.5) saturate(.7); filter: brightness(.5) saturate(.7); }
.pt.left { left: -5%; } .pt.right { right: -5%; }
.pt.on { opacity: 1; transform: none; }
/* the heroine was drawn smaller in her frame than the others; this brings her to their size */
.pt[data-face="me"] { height: 112%; left: -9%; }
.pt.lit { -webkit-filter: none; filter: none; z-index: 1; }
.art-fade { z-index: 2; position: absolute; left: 0; bottom: 0; width: 100%; height: 34%; background: linear-gradient(to bottom, rgba(244,236,223,0), #f4ecdf); }

.stamp {
  position: absolute; left: 50%; top: 42%; width: 132px; height: 132px; margin: -66px 0 0 -66px;
  border: 5px solid #b3312a; border-radius: 12px; color: #b3312a; background: rgba(244,236,223,.9);
  font-size: 50px; font-weight: 700; line-height: 122px; text-align: center; letter-spacing: 2px;
  opacity: 0; transform: scale(2.6) rotate(-14deg); pointer-events: none; z-index: 3;
  box-shadow: inset 0 0 0 3px rgba(179,49,42,.25);
}
.stamp.hit { animation: stamp 1.5s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: scale(2.6) rotate(-14deg); }
  14% { opacity: 1; transform: scale(.92) rotate(-9deg); }
  22% { transform: scale(1.04) rotate(-9deg); }
  30%, 78% { opacity: 1; transform: scale(1) rotate(-9deg); }
  100% { opacity: 0; transform: scale(1.06) rotate(-9deg); }
}
#play.shake { animation: shake .42s linear; }
@keyframes shake {
  0%, 100% { transform: translate3d(0,0,0); }
  15% { transform: translate3d(-7px, 3px, 0); } 30% { transform: translate3d(6px, -4px, 0); }
  45% { transform: translate3d(-5px, -2px, 0); } 60% { transform: translate3d(4px, 3px, 0); }
  80% { transform: translate3d(-2px, 1px, 0); }
}

.progress { flex: 0 0 2px; background: rgba(43,35,32,.1); }
.progress i { display: block; height: 100%; width: 0; background: #b3312a; transition: width .4s ease; }

.hud { flex: 0 0 auto; padding: 10px 18px 0; display: flex; }
.stat { flex: 1; text-align: center; position: relative; font-size: 13px; }
.stat .k { opacity: .6; letter-spacing: 2px; margin-right: 6px; }
.stat b { font-size: 20px; font-variant-numeric: tabular-nums; }
.stat.bump b { animation: bump .5s ease; color: #b3312a; }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
.stat b { display: inline-block; }
.float {
  position: absolute; left: 0; width: 100%; top: -6px; text-align: center; font-size: 17px; font-weight: 700; color: #b3312a;
  animation: floatUp 1.25s ease-out forwards; pointer-events: none;
}
.float.neg { color: #5c6b78; }
@keyframes floatUp { from { opacity: 0; transform: translate3d(0, 8px, 0); } 20% { opacity: 1; } to { opacity: 0; transform: translate3d(0, -30px, 0); } }

.box { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 16px 24px 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.who { display: inline-block; min-height: 26px; font-size: 14px; letter-spacing: 2px; padding: 3px 10px; margin-bottom: 10px; color: #fff6ea; background: #3d6b5c; border-radius: 3px; visibility: hidden; }
.who.show { visibility: visible; }
.who.me { background: #b3312a; }
.text { font-size: 19px; line-height: 1.78; letter-spacing: .5px; min-height: 5.4em; white-space: pre-wrap; }
.text.narr { color: #4a3f39; }
.text.letter { font-family: "Kaiti SC", "STKaiti", "KaiTi", serif; font-size: 21px; padding: 14px 16px; background: #fbf6ec; border-left: 3px solid #b3312a; box-shadow: 0 1px 6px rgba(0,0,0,.08); min-height: 0; }
/* a plain button to go on with: tapping anywhere on the screen does the same, but the screen has to show that there
   is something to press (2026-11-25: a screen of words with only a small mark in the corner looked like a dead end) */
.more { position: absolute; right: 20px; bottom: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); padding: 7px 18px; font: inherit; font-size: 14px; letter-spacing: 3px; color: #fff6ea; background: #b3312a; border: 0; border-radius: 17px; opacity: .45; }
.more.on { opacity: 1; }
@keyframes nod { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.choices { margin: auto -6px 0; display: none; }
.choices.on { display: block; }
.opt {
  display: block; width: 100%; text-align: left; border: 1px solid #c9b79c; border-radius: 6px; background: #fbf6ec;
  font: inherit; font-size: 17px; line-height: 1.5; color: #2b2320; padding: 13px 14px; margin-top: 10px; cursor: pointer;
  box-shadow: 0 2px 0 #d9cbb3; opacity: 0; animation: optIn .35s ease forwards;
}
.opt:nth-child(2) { animation-delay: .08s; } .opt:nth-child(3) { animation-delay: .16s; }
@keyframes optIn { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
.opt:active, .opt.picked { background: #b3312a; border-color: #b3312a; color: #fff6ea; box-shadow: 0 2px 0 #7d1f1a; }
.opt .sw { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: -3px; margin-right: 10px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 0 0 1px rgba(0,0,0,.15); }
.opt small { display: block; font-size: 13px; opacity: .65; margin: 2px 0 0 28px; }
/* while options are up, the line being answered stays as a two-line reminder so the options always fit */
.box.choosing .who { display: none; }
.box.choosing .text { min-height: 0; font-size: 15px; line-height: 1.7; opacity: .7; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.box.choosing .text.letter { padding: 6px 10px; }
.box.choosing .more { display: none; }

/* ---------- end card ---------- */
#end { background: #1c1613; color: #f7efe2; padding: 28px 22px; padding-top: calc(30px + var(--top)); overflow-y: auto; }
.card { background: #f4ecdf; color: #2b2320; border-radius: 10px; padding: 26px 22px 22px; text-align: center; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.card-kicker { font-size: 13px; letter-spacing: 3px; opacity: .6; }
.card h2 { font-size: 36px; letter-spacing: 5px; color: #b3312a; margin: 14px 0 4px; }
.card-sub { font-size: 12px; letter-spacing: 3px; opacity: .5; }
.card-stats { display: flex; margin: 22px 0 16px; padding: 16px 0; border-top: 1px solid #dccfb9; border-bottom: 1px solid #dccfb9; }
.card-stats div { flex: 1; }
.card-stats b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; }
.card-stats span { font-size: 12px; letter-spacing: 3px; opacity: .6; }
.card-line { font-size: 15px; line-height: 1.7; color: #4a3f39; }
.card-next { margin-top: 18px; padding: 14px; background: #2b2320; color: #f4ecdf; border-radius: 6px; text-align: left; }
.card-next-name { font-size: 13px; letter-spacing: 2px; color: #e2a99f; }
.card-next-tease { font-size: 15px; line-height: 1.7; margin-top: 6px; }

.card-craft { font-size: 13px; white-space: nowrap; color: #b3312a; margin-bottom: 10px; }

/* ---------- workbench ---------- */
#craft { background: #2a1c15 url(./img/bench.jpg) center / cover no-repeat; color: #f4e6d2; }
#craft.on { display: flex; flex-direction: column; padding: 14px 16px 18px; padding-top: calc(14px + var(--top)); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.cr-top { flex: 0 0 auto; display: flex; align-items: center; background: #f4ecdf; color: #2b2320; border-radius: 8px; padding: 12px 12px 10px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.cr-order { flex: 1 1 auto; min-width: 0; padding-right: 10px; }
.cr-who { display: inline-block; white-space: nowrap; font-size: 13px; letter-spacing: 2px; padding: 2px 9px; color: #fff6ea; background: #3d6b5c; border-radius: 3px; }
.cr-ask { font-size: 16px; line-height: 1.55; margin-top: 7px; }
.cr-sws { flex: 0 0 132px; }
/* the two swatches overlap so the colours meet edge to edge: a difference of one scoop is visible */
.cr-pair { display: flex; justify-content: center; }
.cr-pair i { display: block; width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 -5px 9px rgba(0,0,0,.18), inset 0 4px 6px rgba(255,255,255,.22); transition: background .25s ease; }
.cr-pair i + i { margin-left: -16px; }
.cr-pair i.empty { box-shadow: none; border: 2px dashed #c9b79c; }
.cr-names { display: flex; margin-top: 6px; }
.cr-names span { flex: 1; text-align: center; font-size: 12px; color: #6b5d53; white-space: nowrap; }
.cr-note { flex: 0 0 auto; min-height: 3.2em; font-size: 14px; line-height: 1.6; margin: 10px 4px 0; text-shadow: 0 1px 3px rgba(0,0,0,.8); }

.cr-stage { position: relative; flex: 1 1 auto; min-height: 110px; }
.cr-mortar, .cr-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: center / 100% 100% no-repeat; border-radius: 50%; }
.cr-mortar { background-image: url(./img/mortar.jpg); box-shadow: 0 14px 26px rgba(0,0,0,.55); cursor: pointer; }
.cr-box { background-image: url(./img/box.jpg); box-shadow: 0 12px 22px rgba(0,0,0,.5); display: none; }
.cr-mortar canvas, .cr-box canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.cr-box canvas { left: -10%; top: -10%; width: 120%; height: 120%; }
.cr-mortar.drop { animation: crDrop .22s ease; }
.cr-mortar.hit { animation: crHit .2s ease; }
@keyframes crDrop { 40% { transform: translate(-50%, -50%) scale(1.035); } }
@keyframes crHit { 35% { transform: translate(-50%, -48%) scale(.955); } }
.cr-pestle { position: absolute; right: -7%; top: -22%; width: 46%; height: 56%; background: url(./img/pestle.png) center / contain no-repeat; display: none; pointer-events: none; -webkit-filter: drop-shadow(0 8px 6px rgba(0,0,0,.4)); filter: drop-shadow(0 8px 6px rgba(0,0,0,.4)); }
.cr-pestle.hit { animation: crPestle .2s ease; }
@keyframes crPestle { 35% { transform: translate(-16%, 18%) scale(.94); } }

.cr-mid { flex: 0 0 auto; height: 34px; display: flex; align-items: center; justify-content: center; }
.cr-slots { display: flex; }
.cr-slot { width: 24px; height: 24px; margin: 0 5px; border-radius: 50%; border: 2px dashed rgba(244,230,210,.55); background: transparent; padding: 0; }
.cr-slot.in { border: 2px solid #f4ecdf; box-shadow: 0 1px 4px rgba(0,0,0,.5); cursor: pointer; }
.cr-gauge { position: relative; display: none; width: 72%; height: 12px; border-radius: 6px; background: rgba(20,12,8,.7); box-shadow: inset 0 1px 3px rgba(0,0,0,.6); overflow: hidden; }
.cr-gauge i { position: relative; z-index: 1; display: block; width: 0; height: 100%; background: #c8402f; border-radius: 6px; }
.cr-gauge b { position: absolute; top: 0; right: 0; height: 100%; width: 19%; background: #d9a441; display: none; }

.cr-low { flex: 0 0 auto; height: 104px; }
.cr-dishes { display: flex; height: 100%; align-items: center; }
.cr-dish { flex: 1; background: transparent; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.cr-dish i { display: block; width: 66px; height: 66px; margin: 0 auto 6px; border-radius: 50%; background: center / 100% 100% no-repeat; box-shadow: 0 6px 12px rgba(0,0,0,.5); transition: transform .12s ease; }
.cr-dish:active i { transform: scale(.9); }
.cr-dish span { display: block; font-size: 14px; letter-spacing: 1px; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.cr-do { display: none; height: 100%; line-height: 104px; text-align: center; font-size: 20px; letter-spacing: 3px; text-shadow: 0 2px 6px rgba(0,0,0,.8); }

.cr-actions { flex: 0 0 auto; display: flex; height: 54px; }
.cr-actions .btn { margin: 0; }
#crRedo { flex: 0 0 34%; margin-right: 10px; border-color: rgba(244,230,210,.7); }
#crGo { flex: 1; }
#crHold { display: none; flex: 1; -webkit-touch-callout: none; }
#crHold.held { transform: translateY(2px); box-shadow: 0 1px 0 #7d1f1a; background: #9a2a24; }
.btn:disabled { opacity: .45; }

#craft[data-phase="pound"] .cr-pestle { display: block; }
#craft[data-phase="pound"] .cr-slots, #craft[data-phase="fill"] .cr-slots, #craft[data-phase="result"] .cr-slots { display: none; }
#craft[data-phase="pound"] .cr-gauge, #craft[data-phase="fill"] .cr-gauge, #craft[data-phase="result"] .cr-gauge { display: block; }
#craft[data-phase="fill"] .cr-gauge b, #craft[data-phase="result"] .cr-gauge b { display: block; }
#craft[data-phase="pound"] .cr-dishes, #craft[data-phase="fill"] .cr-dishes, #craft[data-phase="result"] .cr-dishes { display: none; }
#craft[data-phase="pound"] .cr-do, #craft[data-phase="fill"] .cr-do, #craft[data-phase="result"] .cr-do { display: block; }
#craft[data-phase="pound"] #crRedo { visibility: hidden; }
#craft[data-phase="fill"] #crRedo, #craft[data-phase="fill"] #crGo, #craft[data-phase="result"] #crRedo, #craft[data-phase="result"] #crGo { display: none; }
#craft[data-phase="fill"] #crHold, #craft[data-phase="result"] #crHold { display: block; }
#craft[data-phase="fill"] .cr-mortar, #craft[data-phase="result"] .cr-mortar { display: none; }
#craft[data-phase="fill"] .cr-box, #craft[data-phase="result"] .cr-box { display: block; cursor: pointer; }

.cr-result { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: rgba(20,12,8,.72); display: flex; align-items: center; justify-content: center; padding: 22px; }
.cr-card { width: 100%; background: #f4ecdf; color: #2b2320; border-radius: 10px; padding: 24px 20px 18px; text-align: center; box-shadow: 0 12px 34px rgba(0,0,0,.5); animation: optIn .3s ease; }
.cr-grade { display: inline-block; font-size: 40px; font-weight: 700; letter-spacing: 6px; padding: 4px 8px 4px 14px; border: 4px solid currentColor; border-radius: 10px; color: #b3312a; transform: rotate(-6deg); }
.cr-grade.good { color: #a8662b; } .cr-grade.ok { color: #6b6f63; }
.cr-grade.hit { animation: crGrade .5s cubic-bezier(.2,.9,.3,1); }
@keyframes crGrade { 0% { opacity: 0; transform: scale(2.4) rotate(-14deg); } 60% { opacity: 1; transform: scale(.94) rotate(-6deg); } 100% { transform: scale(1) rotate(-6deg); } }
.cr-made { margin: 18px 0 12px; font-size: 15px; color: #4a3f39; }
.cr-made i { display: inline-block; width: 34px; height: 34px; vertical-align: -11px; margin-right: 10px; border-radius: 50%; box-shadow: inset 0 -4px 7px rgba(0,0,0,.22), inset 0 3px 5px rgba(255,255,255,.3), 0 1px 3px rgba(0,0,0,.3); }
.cr-say { font-size: 17px; line-height: 1.7; text-align: left; padding: 12px 0; border-top: 1px solid #dccfb9; }
.cr-pay { font-size: 18px; font-weight: 700; color: #b3312a; letter-spacing: 1px; padding-top: 2px; }
.cr-learn { font-size: 13px; line-height: 1.6; color: #3d6b5c; margin-top: 8px; }
.cr-next { font-size: 12px; letter-spacing: 3px; opacity: .5; margin-top: 14px; }

@media (max-height: 620px) {
  .cr-low { height: 86px; } .cr-do { line-height: 86px; font-size: 18px; }
  .cr-dish i { width: 52px; height: 52px; margin-bottom: 3px; } .cr-dish span { font-size: 12px; letter-spacing: 0; }
  .cr-dishes.two .cr-dish i { width: 38px; height: 38px; } #craft .cr-low.tall { height: 128px; }
  .cr-ask { font-size: 15px; } .cr-note { font-size: 13px; margin-top: 8px; }
  .cr-actions { height: 50px; } .cr-actions .btn { padding: 12px 10px; }
  .cr-sws { flex-basis: 104px; } .cr-pair i { width: 46px; height: 46px; }
  .cr-who { letter-spacing: 1px; } .cr-top { padding: 10px 8px 9px 12px; }
}

.cr-back { flex: 0 0 auto; align-self: flex-start; background: transparent; border: 0; color: #f4e6d2; font: inherit; font-size: 14px; padding: 0 4px 10px; text-shadow: 0 1px 3px rgba(0,0,0,.8); cursor: pointer; }
.cr-dishes.two { flex-wrap: wrap; align-content: center; }
.cr-dishes.two .cr-dish { flex: 0 0 25%; }
.cr-dishes.two .cr-dish i { width: 44px; height: 44px; margin-bottom: 2px; }
.cr-dishes.two .cr-dish span { font-size: 12px; }
.cr-dish.out { opacity: .35; }
#craft .cr-low.tall { height: 150px; }

/* ---------- the shop floor ---------- */
#hub { background: #f4ecdf; }
#hub.on { display: flex; flex-direction: column; }
.hb-art { position: relative; flex: 0 0 24%; min-height: 120px; background: #2a211c url(./img/shop.jpg) center 60% / cover no-repeat; }
.hb-art::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 70%; background: linear-gradient(to bottom, rgba(28,22,19,0), rgba(28,22,19,.78)); }
.hb-day { position: absolute; z-index: 1; left: 18px; bottom: 44px; color: #fff6ea; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.hb-day b { font-size: 26px; letter-spacing: 3px; margin-right: 10px; }
.hb-day span { font-size: 13px; letter-spacing: 2px; opacity: .9; }
.hb-goal { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; padding: 5px 10px; font-size: 13px; color: #fff6ea; background: rgba(179,49,42,.92); border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-goal.ok { background: rgba(61,107,92,.95); }
.hb-hud { padding-top: 12px; }
.pips { display: inline-block; vertical-align: 2px; }
.pips i { display: inline-block; width: 12px; height: 12px; margin: 0 2px; border-radius: 50%; border: 2px solid #b3312a; }
.pips i.on { background: #b3312a; }
.hb-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 10px 16px 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.hb-shelf { flex: 0 1 auto; min-height: 34px; max-height: 76px; overflow: hidden; }
.chip { display: inline-block; font-size: 13px; padding: 4px 9px 4px 6px; margin: 0 6px 6px 0; background: #fbf6ec; border: 1px solid #dccfb9; border-radius: 14px; white-space: nowrap; }
.chip .sw, .row .sw, .sv-item .sw { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; margin-right: 6px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), 0 0 0 1px rgba(0,0,0,.15); }
.chip.held { border-style: dashed; opacity: .8; } .chip.none { opacity: .55; border-style: dashed; }
.hb-inv { flex: 0 0 auto; font-size: 12px; line-height: 1.6; color: #7a6d63; margin: 2px 2px 0; }
.hb-tip { flex: 0 0 auto; font-size: 14px; line-height: 1.5; color: #4a3f39; margin: 4px 2px 10px; min-height: 2.9em; }
.hb-acts { flex: 0 0 auto; display: flex; flex-wrap: wrap; margin: auto -4px 0; }
.act { flex: 1 1 28%; margin: 4px; padding: 11px 4px 9px; background: #fbf6ec; border: 1px solid #c9b79c; border-radius: 6px; box-shadow: 0 2px 0 #d9cbb3; font: inherit; color: #2b2320; cursor: pointer; }
.act:active { transform: translateY(2px); box-shadow: none; }
.act b { display: block; font-size: 18px; letter-spacing: 2px; }
.act small { display: block; font-size: 11px; opacity: .6; margin-top: 3px; white-space: nowrap; }
.hb-policy { flex: 0 0 auto; display: flex; margin: 10px 0; border: 1px solid #c9b79c; border-radius: 6px; overflow: hidden; }
.seg { flex: 1; padding: 8px 0; background: transparent; border: 0; font: inherit; font-size: 14px; letter-spacing: 2px; color: #6b5d53; cursor: pointer; }
.seg + .seg { border-left: 1px solid #c9b79c; }
.seg.on { background: #2b2320; color: #f4ecdf; }
#hbOpen { flex: 0 0 auto; }

.sheet { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: rgba(20,12,8,.55); display: flex; align-items: flex-end; z-index: 5; }
.sheet-card { width: 100%; max-height: 84%; display: flex; flex-direction: column; background: #f4ecdf; border-radius: 14px 14px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.4); animation: sheetUp .22s ease; padding-bottom: env(safe-area-inset-bottom); }
@keyframes sheetUp { from { transform: translate3d(0, 30px, 0); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { flex: 0 0 auto; display: flex; align-items: center; padding: 14px 16px 10px; border-bottom: 1px solid #dccfb9; }
.sheet-head b { flex: 1; font-size: 17px; letter-spacing: 1px; }
.sheet-head button { background: transparent; border: 1px solid #c9b79c; border-radius: 4px; font: inherit; font-size: 13px; padding: 4px 12px; color: #4a3f39; }
.sheet-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 16px 16px; }
.sheet-note { font-size: 12px; line-height: 1.6; color: #7a6d63; margin: 10px 0 4px; }
.row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #e6dcc9; }
.row .dish { flex: 0 0 40px; width: 40px; height: 40px; margin-right: 10px; border-radius: 50%; background: center / 100% 100% no-repeat; box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.row > .sw { flex: 0 0 26px; width: 26px; height: 26px; margin-right: 10px; }
.row-mid { flex: 1 1 auto; min-width: 0; }
.row-mid b { display: block; font-size: 16px; }
.row-mid small { display: block; font-size: 12px; line-height: 1.5; color: #7a6d63; margin-top: 2px; }
.row-mid small.up { color: #b3312a; }
.row-act { flex: 0 0 auto; display: flex; margin-left: 8px; }
.mini { background: #b3312a; color: #fff6ea; border: 0; border-radius: 5px; font: inherit; font-size: 14px; padding: 8px 10px; margin-left: 6px; white-space: nowrap; box-shadow: 0 2px 0 #7d1f1a; cursor: pointer; }
.mini:active { transform: translateY(2px); box-shadow: none; }
.mini:disabled { background: #c9b79c; box-shadow: none; color: #f4ecdf; }
.got { font-size: 13px; color: #3d6b5c; }
.plots { display: flex; flex-wrap: wrap; margin: 6px -5px 0; }
.plot { flex: 0 0 33.33%; background: transparent; border: 0; padding: 6px 5px; font: inherit; color: #4a3f39; cursor: pointer; }
.plot i { display: block; width: 78%; padding-bottom: 78%; margin: 0 auto 6px; border-radius: 50%; background: center / 100% 100% no-repeat; box-shadow: 0 5px 10px rgba(0,0,0,.3); }
.plot span { display: block; font-size: 12px; line-height: 1.4; }
.plot.dry i { box-shadow: 0 0 0 3px #5c8fb0, 0 5px 10px rgba(0,0,0,.3); }
.plot.ripe i { box-shadow: 0 0 0 3px #b3312a, 0 5px 10px rgba(0,0,0,.3); animation: nod 1s ease-in-out infinite; }
.seeds { margin-top: 8px; font-size: 13px; line-height: 2.6; }
.ledger { margin: 6px 0 4px; }
.ledger-row { display: flex; padding: 9px 2px; border-bottom: 1px solid #e6dcc9; font-size: 16px; }
.ledger-row span { flex: 1; color: #6b5d53; letter-spacing: 2px; }
.ledger-row b { font-variant-numeric: tabular-nums; }
#ldClose { margin-top: 14px; }
.toast { position: absolute; z-index: 6; left: 16px; right: 16px; top: 14px; top: calc(14px + var(--top)); padding: 10px 14px; background: rgba(43,35,32,.94); color: #f4ecdf; border-radius: 6px; font-size: 14px; line-height: 1.5; text-align: center; opacity: 0; transform: translate3d(0, -8px, 0); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.toast.on { opacity: 1; transform: none; }

/* ---------- the counter ---------- */
#serve { background: #2a211c url(./img/shop.jpg) center / cover no-repeat; color: #f4e6d2; }
#serve::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: rgba(28,22,19,.72); }
#serve.on { display: flex; flex-direction: column; padding: 14px 16px 18px; padding-top: calc(14px + var(--top)); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
#serve > * { position: relative; }
.sv-top { flex: 0 0 auto; display: flex; justify-content: space-between; font-size: 14px; letter-spacing: 1px; margin-bottom: 10px; }
.sv-card { flex: 0 0 auto; background: #f4ecdf; color: #2b2320; border-radius: 8px; padding: 14px 16px; min-height: 150px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.sv-card.in { animation: optIn .3s ease; }
.sv-say { font-size: 18px; line-height: 1.7; margin-top: 10px; }
.sv-re { font-size: 15px; line-height: 1.6; margin-top: 10px; padding-top: 10px; border-top: 1px solid #dccfb9; color: #6b5d53; min-height: 2.6em; }
.sv-re:empty { border-top-color: transparent; }
.sv-re.ok { color: #b3312a; font-weight: 700; } .sv-re.meh { color: #a8662b; }
.sv-hint { flex: 0 0 auto; font-size: 13px; margin: 12px 2px 6px; opacity: .8; }
.sv-shelf { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-wrap: wrap; align-content: flex-start; margin: 0 -4px; }
.sv-item { flex: 0 0 calc(50% - 8px); margin: 4px; padding: 10px 8px; text-align: left; background: #fbf6ec; border: 1px solid #c9b79c; border-radius: 6px; font: inherit; color: #2b2320; box-shadow: 0 2px 0 rgba(0,0,0,.35); cursor: pointer; }
.sv-item b { font-size: 16px; }
.sv-item small { display: block; font-size: 12px; color: #7a6d63; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-item:disabled { opacity: .5; }
.sv-item:active { transform: translateY(2px); }
#svNone { flex: 0 0 auto; margin-top: 10px; border-color: rgba(244,230,210,.7); }

@media (min-height: 760px) { .art { flex-basis: 46%; } .hb-art { flex-basis: 34%; } .hb-tip { font-size: 16px; margin-top: 10px; } .chip { font-size: 15px; padding: 6px 12px 6px 8px; } .hb-inv { font-size: 13px; } }
@media (max-height: 700px) {
  .opt { font-size: 15px; padding: 10px 12px; margin-top: 8px; }
  .box { padding-top: 12px; padding-bottom: 16px; }
}
@media (max-height: 620px) {
  .text { font-size: 17px; }
  .stamp { width: 104px; height: 104px; margin: -52px 0 0 -52px; font-size: 38px; line-height: 94px; }
}

/* the shop floor and the counter on a short screen; kept last so it wins over the rules above */
@media (max-height: 620px) {
  .hb-art { flex-basis: 96px; min-height: 96px; } .hb-day { bottom: 38px; left: 14px; } .hb-day b { font-size: 20px; }
  .hb-goal { font-size: 12px; padding: 4px 8px; } .hb-hud { padding-top: 6px; } .hb-body { padding: 6px 12px 10px; }
  .hb-shelf { max-height: 34px; } .hb-tip { font-size: 13px; min-height: 2.6em; margin-bottom: 4px; }
  .act { padding: 7px 4px 6px; margin: 3px; } .act b { font-size: 16px; } .act small { display: none; }
  .hb-policy { margin: 6px 0; } .seg { padding: 6px 0; } #hbOpen { padding: 11px 16px; }
  .sv-card { min-height: 128px; padding: 10px 12px; } .sv-say { font-size: 16px; margin-top: 6px; } .sv-hint { margin: 8px 2px 4px; font-size: 12px; }
  .hb-inv { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* four counters across a narrow screen */
@media (max-width: 400px) {
  .hud { padding-left: 10px; padding-right: 10px; } .stat { font-size: 12px; } .stat .k { letter-spacing: 0; margin-right: 4px; } .stat b { font-size: 18px; }
  .card-stats b { font-size: 24px; } .card-stats span { letter-spacing: 1px; }
}

/* what kind of day it is, on the shop floor; an answer to someone who did not come for a box; the hired hand */
.hb-today { flex: 0 0 auto; font-size: 13px; line-height: 1.55; color: #b3312a; margin: 6px 2px 0; }
.hb-today:empty { display: none; }
.sv-item.wide { flex: 0 0 calc(100% - 8px); padding: 12px 12px; font-size: 16px; line-height: 1.5; }
#svAuto { flex: 0 0 auto; margin-top: 10px; padding: 11px 16px; font-size: 15px; border-color: rgba(244,230,210,.7); }
@media (max-height: 620px) { .hb-today { font-size: 12px; margin-top: 3px; } .sv-item.wide { padding: 9px 10px; font-size: 14px; } #svAuto { padding: 8px 12px; margin-top: 6px; } }

/* a day away from the counter; rows of things set going and collected later */
#hbTrip { flex: 0 0 auto; margin: 0 0 8px; padding: 10px 14px; font-size: 15px; color: #b3312a; border-color: #b3312a; letter-spacing: 1px; }
.sheet-say { font-size: 15px; line-height: 1.7; margin: 10px 0 2px; }
.sheet-body > .btn { margin-top: 12px; }
.pick { display: flex; flex-wrap: wrap; margin: 8px -4px 0; }
.pick .mini { margin: 4px; }
.mini.off { background: transparent; color: #7a6d63; box-shadow: none; border: 1px solid #c9b79c; }
@media (max-height: 620px) { .act { flex-basis: 21%; } .act b { font-size: 15px; letter-spacing: 0; } #hbTrip { padding: 7px 10px; margin-bottom: 5px; font-size: 13px; } }

/* up to seven things to do on the shop floor: four to a row, and on anything but a tall screen the picture gives way */
.act { flex: 1 1 21%; padding-left: 2px; padding-right: 2px; }
.act b { letter-spacing: 1px; }
@media (max-height: 760px) {
  .hb-art { flex-basis: 17%; min-height: 96px; } .hb-day { bottom: 38px; } .hb-day b { font-size: 22px; }
  .hb-hud { padding-top: 8px; } .hb-tip { min-height: 0; margin-bottom: 6px; } .hb-shelf { max-height: 68px; }
  .act { padding-top: 8px; padding-bottom: 7px; } .act b { font-size: 16px; } .hb-policy { margin: 7px 0; }
}
@media (max-height: 620px) { .act small { display: none; } .hb-shelf { max-height: 34px; } .hb-today { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* ---- 2026-11-24: the shop as it grows, who is in it, full pictures, endings, the album, a colour of one's own */
#app[data-stage="1"] .hb-art, #app[data-stage="1"] #serve { background-image: url(./img/shop1.jpg); }
#app[data-stage="3"] .hb-art, #app[data-stage="3"] #serve { background-image: url(./img/shop3.jpg); }
#app[data-stage="4"] .hb-art, #app[data-stage="4"] #serve { background-image: url(./img/shop4.jpg); }
.hb-cast { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.hb-pt { position: absolute; bottom: -8%; height: 104%; width: auto; }
.hb-pt[data-face="aruo"] { right: 2%; }
.hb-pt[data-face="man"] { right: 27%; height: 98%; display: none; }
#app[data-man="1"] .hb-pt[data-face="man"] { display: block; }
.hb-album { position: absolute; z-index: 2; right: 10px; top: 10px; top: calc(10px + var(--top)); padding: 5px 12px; font: inherit; font-size: 13px; letter-spacing: 2px; color: #fff6ea; background: rgba(28,22,19,.55); border: 1px solid rgba(255,246,234,.5); border-radius: 14px; cursor: pointer; }
.hb-goal { right: auto; max-width: calc(100% - 24px); }

/* a full picture: the art takes more of the screen, the counters step aside */
.art { transition: flex-basis .45s ease; }
#play.cg .art { flex-basis: 58%; }
#play.cg .art-layer.on { animation: none; background-position: center 22%; }
#play.cg .hud { display: none; }
#play.cg .box { padding-top: 12px; }

#fin { background: #1c1613; color: #f7efe2; }
#fin.on { display: flex; flex-direction: column; }
.fin-art { position: relative; flex: 1 1 46%; min-height: 0; background: #2a211c center 25% / cover no-repeat; }
.fin-art::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 55%; background: linear-gradient(to bottom, rgba(28,22,19,0), #1c1613); }
#fin.bad .fin-art { -webkit-filter: grayscale(.75) brightness(.8); filter: grayscale(.75) brightness(.8); }
.fin-body { flex: 0 0 auto; padding: 0 26px 26px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); text-align: center; }
.fin-kicker { font-size: 13px; letter-spacing: 3px; opacity: .7; }
#fin h2 { font-size: 40px; letter-spacing: 8px; margin: 10px 0 12px; color: #f0c9a0; }
#fin.bad h2 { color: #c9bfb2; }
.fin-line { font-size: 16px; line-height: 1.8; }
.fin-count { font-size: 12px; letter-spacing: 1px; opacity: .6; margin: 14px 0 16px; }

#album { background: #f4ecdf; color: #2b2320; }
#album.on { display: flex; flex-direction: column; }
.al-head { flex: 0 0 auto; display: flex; align-items: center; padding: 14px 16px 10px; padding-top: calc(14px + var(--top)); border-bottom: 1px solid #dccfb9; }
.al-head b { flex: 1; font-size: 19px; letter-spacing: 4px; }
.al-head button { background: transparent; border: 1px solid #c9b79c; border-radius: 4px; font: inherit; font-size: 13px; padding: 4px 12px; color: #4a3f39; }
.al-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.al-body h3 { font-size: 14px; letter-spacing: 3px; color: #b3312a; margin: 20px 0 8px; font-weight: normal; }
.al-end { padding: 9px 12px; margin-bottom: 6px; border: 1px dashed #c9b79c; border-radius: 6px; opacity: .7; }
.al-end.got { border-style: solid; background: #fbf6ec; opacity: 1; }
.al-end b { font-size: 16px; letter-spacing: 2px; margin-right: 10px; }
.al-end small { display: block; font-size: 12px; line-height: 1.6; color: #7a6d63; margin-top: 2px; }
.al-cgs { display: flex; flex-wrap: wrap; margin: 0 -4px; }
.al-cg { position: relative; flex: 0 0 calc(50% - 8px); margin: 4px; height: 0; padding: 0 0 62%; border: 0; border-radius: 6px; overflow: hidden; background: #2a211c center 22% / cover no-repeat; font: inherit; color: #f4ecdf; cursor: pointer; }
.al-cg span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 7px; font-size: 13px; letter-spacing: 2px; background: linear-gradient(to bottom, rgba(28,22,19,0), rgba(28,22,19,.8)); }
.al-cg:not(.got) span { top: 0; padding: 0 12px; display: flex; align-items: center; justify-content: center; background: none; opacity: .6; font-size: 12px; letter-spacing: 0; line-height: 1.6; }
.al-cols { display: flex; flex-wrap: wrap; margin: 0 -3px; }
.al-col { margin: 3px; padding: 5px 10px 5px 6px; font: inherit; font-size: 13px; color: inherit; background: transparent; border: 1px dashed #c9b79c; border-radius: 14px; opacity: .55; }
.al-col.got { border-style: solid; background: #fbf6ec; opacity: 1; cursor: pointer; }
.al-col.mine { border-color: #b3312a; }
.al-col i { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; margin-right: 6px; background: #d9cbb3; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), 0 0 0 1px rgba(0,0,0,.15); }
.al-letter { display: block; width: 100%; text-align: left; padding: 9px 12px; margin-bottom: 6px; font: inherit; font-size: 14px; color: #4a3f39; background: #fbf6ec; border: 1px solid #dccfb9; border-left: 3px solid #b3312a; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.al-none { font-size: 12px; color: #7a6d63; }
.al-view { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 3; display: flex; flex-direction: column; justify-content: center; padding: 20px 22px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); background: rgba(20,12,8,.94); color: #f4ecdf; }
.al-view[hidden] { display: none; }
.al-pic { flex: 0 1 auto; min-height: 0; }
.al-pic.pic { flex: 1 1 auto; max-height: 68%; background: center / contain no-repeat; }
.al-pic.col { text-align: center; padding: 20px 0; }
.al-pic.col i { display: inline-block; width: 150px; height: 150px; border-radius: 50%; box-shadow: inset 0 -12px 20px rgba(0,0,0,.2), inset 0 8px 12px rgba(255,255,255,.22), 0 0 0 10px #fbf8f1, 0 0 0 12px #7f9fc4; }
.al-pic.text { overflow-y: auto; white-space: pre-wrap; font-size: 16px; line-height: 1.9; padding: 16px 16px; background: #f4ecdf; color: #2b2320; border-radius: 6px; border-left: 4px solid #b3312a; }
.al-cap { flex: 0 0 auto; text-align: center; font-size: 15px; letter-spacing: 2px; margin: 14px 0 6px; }
.al-view .btn { flex: 0 0 auto; }

/* naming a colour of one's own, in a sheet */
.own { text-align: center; padding: 8px 0 2px; }
.own i { display: inline-block; width: 96px; height: 96px; border-radius: 50%; box-shadow: inset 0 -8px 14px rgba(0,0,0,.2), inset 0 6px 9px rgba(255,255,255,.22), 0 0 0 7px #fbf8f1, 0 0 0 9px #7f9fc4; margin: 6px 0 14px; }
.own input { display: block; width: 100%; padding: 10px 12px; font: inherit; font-size: 20px; letter-spacing: 6px; text-align: center; color: #2b2320; background: #fbf6ec; border: 1px solid #c9b79c; border-radius: 6px; -webkit-appearance: none; }
.own .pick { justify-content: center; }
.row.gone { opacity: .6; }

/* eight things to do on the shop floor makes two full rows; the album button sits clear of the day's banner */
@media (max-height: 620px) { .hb-album { top: 6px; right: 6px; padding: 3px 9px; font-size: 12px; } .hb-pt { height: 112%; } #fin h2 { font-size: 30px; margin: 6px 0 8px; } .fin-line { font-size: 14px; } .fin-count { margin: 8px 0 10px; } }
.sheet-note.warn { color: #b3312a; }
#play.cg .art-fade { height: 12%; }
/* eight buttons, a day's news and somewhere to go have to fit under the picture on a tall screen too */
@media (min-height: 760px) { .hb-art { flex-basis: 26%; } }
.al-end.got, .al-col.got { color: #2b2320; } .al-end.got b { color: #b3312a; } .al-cg.got { color: #f4ecdf; }

/* ---- 2026-11-25: fast-forward and a menu on the story screen; whoever is at the counter; the shop floor fills the screen */
.pill { position: absolute; z-index: 4; top: 10px; top: calc(10px + var(--top)); padding: 5px 13px; font: inherit; font-size: 13px; letter-spacing: 2px; color: #fff6ea; background: rgba(28,22,19,.5); border: 1px solid rgba(255,246,234,.45); border-radius: 14px; cursor: pointer; }
.pill.left { left: 10px; } .pill.right { right: 10px; display: none; }
.pill.right.can { display: block; } .pill.right.going { background: #b3312a; border-color: #b3312a; }
.hb-menu { right: 96px; }

.menu { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 9; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20,12,8,.72); }
.menu[hidden] { display: none; }
.menu-card { width: 100%; max-width: 360px; max-height: 100%; overflow-y: auto; padding: 22px 20px; background: #f4ecdf; color: #2b2320; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.menu-card[hidden] { display: none; }
.menu-card .btn.ghost { color: #4a3f39; }
.menu-speed { display: flex; align-items: center; margin-top: 14px; font-size: 14px; color: #6b5d53; }
.menu-speed span { flex: 0 0 auto; margin-right: 10px; letter-spacing: 1px; }
.menu-speed button { flex: 1; padding: 8px 0; font: inherit; font-size: 14px; color: #6b5d53; background: transparent; border: 1px solid #c9b79c; margin-left: -1px; cursor: pointer; }
.menu-speed button.on { background: #2b2320; color: #f4ecdf; border-color: #2b2320; }
.menu-card.log { display: flex; flex-direction: column; height: 82%; }
.menu-card.log[hidden] { display: none; }
.menu-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; margin-bottom: 14px; }
.menu-log p { font-size: 15px; line-height: 1.7; padding: 7px 0; border-bottom: 1px solid #e6dcc9; }
.menu-note { font-size: 13px; line-height: 1.7; color: #7a6d63; margin-bottom: 10px; }
.chap-row { display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 8px; font: inherit; color: #2b2320; background: #fbf6ec; border: 1px solid #c9b79c; border-radius: 6px; cursor: pointer; }
.chap-row b { display: block; font-size: 16px; letter-spacing: 1px; }
.chap-row small { display: block; font-size: 12px; color: #7a6d63; margin-top: 3px; }
.chap-row.armed { border-color: #b3312a; background: #f6e3dc; } .chap-row.armed small { color: #b3312a; }

/* the counter: the customer stands in the shop above their words; the shelf sits at the bottom, within reach */
#serve { background-position: center 30%; }
#serve::before { background: linear-gradient(to bottom, rgba(28,22,19,.18), rgba(28,22,19,.4) 30%, rgba(28,22,19,.9) 58%); }
.sv-stage { flex: 1 1 0; min-height: 0; }
.sv-cast { position: absolute; left: 0; right: 0; top: 0; bottom: -22px; overflow: hidden; pointer-events: none; }
.sv-pt { position: absolute; right: 6%; bottom: 0; height: 100%; max-height: 340px; width: auto; opacity: 0; transform: translate3d(14px, 0, 0); transition: opacity .25s ease, transform .25s ease; }
.sv-pt.on { opacity: 1; transform: none; }
.sv-shelf { flex: 0 1 auto; min-height: 70px; max-height: 42%; }
#svS.bump { animation: bump .5s ease; color: #f0c9a0; } #svS { display: inline-block; }

/* the shop floor: what there is to do takes the room it needs at the bottom, and the picture of the shop gets the rest */
.hb-art { flex: 1 1 0; min-height: 96px; }
.hb-body { flex: 0 0 auto; }
.hb-acts { margin-top: 0; }
.hb-tip { min-height: 0; }
/* on a tall screen with little to do the picture is large: the people in it stay a sensible size */
.hb-pt { max-height: 300px; } .hb-pt[data-face="man"] { max-height: 284px; }
