/* Print Farm's look: garage cardboard and stickers, square keycaps that thock, berry and teal, no orange (Chris 11/10:
   "i actually kinda look the original garage cardboard and stickers. it could just be upgraded with the thocky
   buttons", "make them look more like keys- the more square versions", and his palette, "Berry and teal"). The board:
   art/branding/palettes.html. The floor squares, arrows and signs keep their look ("maybe we dont have to change them,
   just want to make sure fonts are correct"). */
/* Fredoka (SIL OFL) and Permanent Marker (Apache 2.0), in vendor/fonts with their licenses */
@font-face { font-family: "Fredoka"; src: url(vendor/fonts/fredoka.woff2) format("woff2"); font-weight: 300 700; font-display: block; }
@font-face { font-family: "Permanent Marker"; src: url(vendor/fonts/permanent-marker.woff2) format("woff2"); font-display: block; }
:root {
  --font: "Fredoka", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --marker: "Permanent Marker", "Fredoka", cursive;
  --ink: #3a2f2a;
  --berry: #e0457b; --berry-dark: #a8305a;
  --teal: #2fa8a0; --teal-dark: #1f7f78;
  --plum: #7a5c8e; --plum-dark: #56406a;
  --stone: #a2958a; --stone-dark: #85786d;
  --mint: #c9f0dc;
  --chip: #c3bcb1;
  --paper: #fff8e8;
  --tape: rgba(250, 246, 236, 0.95);
  --green: #43b05c; --green-dark: #2f8c46;
  --red: #e5484d;
  --glass: rgba(34, 38, 46, 0.55);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #7cc46a; touch-action: none; }
body { font-family: var(--font); font-weight: 600; color: #fff; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#stage { position: fixed; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; }
canvas#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ol { text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 0 3px rgba(0, 0, 0, 0.55), 0 0 1px #000; }
[hidden] { display: none !important; }

/* ---- The materials: stickers (a white die-cut edge), masking tape, gray chipboard, lined paper ---- */
.stk { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 3px 2px rgba(60, 40, 20, 0.35)); }
.chipboard { background-color: var(--chip); background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1.2px), radial-gradient(rgba(60, 60, 60, 0.12) 1px, transparent 1.2px);
  background-size: 5px 5px, 9px 9px; background-position: 0 0, 2px 3px; }
.lined { background-color: var(--paper); background-image: repeating-linear-gradient(0deg, transparent 0 25px, rgba(120, 160, 200, 0.18) 25px 26px); }

/* ---- Keys: square keycaps, a top face set into a taller front wall; pressed, they sink and thock (game/main.js) ---- */
.key { --top: var(--teal); --wall: var(--teal-dark); position: relative; display: inline-flex; border: 0; padding: 3px 4px 11px; margin: 0 0 7px; cursor: pointer; border-radius: 8px;
  font: inherit; background: var(--wall); box-shadow: 0 3px 0 color-mix(in srgb, var(--wall) 70%, #000), 0 7px 7px rgba(60, 40, 20, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 45ms ease-out, box-shadow 45ms ease-out; pointer-events: auto; }
.key .face { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 7px; padding: 6px 14px; border-radius: 6px; font: 700 17px var(--font); color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18); background: radial-gradient(110% 80% at 50% 30%, rgba(255, 255, 255, 0.28), transparent 65%), var(--top);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 3px rgba(0, 0, 0, 0.1); }
.key.down { transform: translateY(7px); box-shadow: 0 1px 0 color-mix(in srgb, var(--wall) 70%, #000), 0 2px 2px rgba(60, 40, 20, 0.32); }
.key:focus-visible { outline: 3px solid #3d95f5; outline-offset: 3px; }
.key.u1 .face { width: 36px; height: 30px; padding: 0; font-size: 20px; }
.key.u1 svg { width: 22px; height: 22px; }
.key.stone { --top: var(--stone); --wall: var(--stone-dark); }
.key.plum { --top: var(--plum); --wall: var(--plum-dark); }
.key.berry { --top: var(--berry); --wall: var(--berry-dark); }
.key:disabled { --top: #cfc8bd; --wall: #b0a89b; cursor: default; }
.key:disabled .face { color: #f6f2ea; text-shadow: none; }
.key.maxed { --top: #8f877c; --wall: #6f685e; }
.key .bill { width: 24px; height: 15px; box-shadow: inset 0 0 0 2px var(--green-dark); background: #8fdc9f; }
.key .bill::after { left: 8px; top: 3.5px; width: 7px; height: 7px; }
.key em { font-style: normal; }

/* ---- Top bar: settings, level and XP, money ---- */
.top { position: absolute; left: 0; right: 0; top: max(12px, env(safe-area-inset-top)); display: flex; align-items: center;
  justify-content: space-between; padding: 0 12px; pointer-events: none; }
.gear { color: #fff; }
.lvl { display: flex; align-items: center; margin-bottom: 6px; }
.star { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; font-weight: 700; z-index: 1; margin-right: -12px; background: var(--berry); color: #fff; transition: transform 0.15s; }
.star.bump { transform: scale(1.3); }
.xp { width: 116px; height: 26px; background: var(--tape); position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 6%, 97% 50%, 100% 94%, 0 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.xp i { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; background: var(--berry); border-radius: 0 6px 6px 0; opacity: 0.9; transition: width 0.25s; }
.xp span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--ink); padding-left: 12px; text-shadow: none; }
.money { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 6px; font-size: 22px; font-weight: 700; color: var(--ink); min-width: 76px; margin-bottom: 6px; transform: rotate(1.5deg); transition: transform 0.1s; }
.money b { text-shadow: none; }
.money.bump { transform: rotate(1.5deg) scale(1.08); }
.bill { width: 30px; height: 19px; border-radius: 4px; background: var(--green); box-shadow: inset 0 0 0 3px var(--green-dark); position: relative; flex: none; }
.bill::after { content: ""; position: absolute; left: 11px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--green-dark); }

/* ---- The account full (step 9): FULL stamped on the money tag ---- */
.money .ft { display: none; font: 400 13px var(--marker); color: var(--red); border: 2px solid var(--red); border-radius: 5px; padding: 0 5px; transform: rotate(-8deg); }
.money.full { background-color: #f3c6c6; }
/* Mom's care package (call 9): its boost and the time left, bottom left. */
.boost { position: absolute; left: 12px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 5px 12px; border-radius: 6px; font-size: 18px; font-weight: 700; color: var(--ink); rotate: -2deg; pointer-events: none; }
.money.full .ft { display: inline-block; }

/* ---- The goal: a sticky note taped on; for the first minutes a task with its count and a check (step 8) ---- */
.task { position: absolute; left: 50%; top: calc(max(12px, env(safe-area-inset-top)) + 64px); transform: translateX(-50%); rotate: -1.5deg;
  display: flex; align-items: center; gap: 9px; width: max-content; max-width: calc(100% - 28px); padding: 10px 14px 10px 10px;
  background: var(--mint); color: var(--ink); box-shadow: 0 4px 6px rgba(60, 40, 20, 0.25); pointer-events: none; white-space: nowrap; }
.task::before { content: ""; position: absolute; left: 50%; top: -9px; width: 70px; height: 18px; transform: translateX(-50%) rotate(2deg); background: var(--tape); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.task .ti { width: 34px; height: 34px; border-radius: 8px; background: #fff; display: grid; place-items: center; font-size: 18px; flex: none;
  filter: drop-shadow(0 2px 1px rgba(60, 40, 20, 0.25)); }
.task .ti svg { width: 26px; height: 20px; }
.task .tt { font-size: 17px; white-space: normal; line-height: 1.15; }
.task .tn { font-size: 15px; color: #fff; background: var(--berry); border-radius: 9px; padding: 2px 8px; flex: none; }
.task .tc { display: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-size: 15px; line-height: 24px; text-align: center; flex: none; }
.task.done .tn { background: var(--green); }
.task.done .tc { display: block; }
.task.pop { animation: taskPop 0.35s ease-out; }
.task.won { background: #6fd48a; color: #fff; animation: taskWon 1.5s ease-out; }
.task.won .tn { background: #fff; color: #2f8c46; }
.task.won .tc { width: 30px; height: 30px; line-height: 30px; font-size: 20px; background: #fff; color: #2f8c46; }
@keyframes taskWon { 0% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 226, 110, 0.9); }
  14% { transform: translateX(-50%) scale(1.16); box-shadow: 0 0 26px 12px rgba(255, 226, 110, 0.85); }
  35% { transform: translateX(-50%) scale(1.05); } 100% { transform: translateX(-50%) scale(1); box-shadow: 0 4px 6px rgba(60, 40, 20, 0.25); } }
.confetti { position: absolute; width: 8px; height: 13px; margin: -6px 0 0 -4px; border-radius: 2px; animation: confetti 1.2s ease-out forwards; }
@keyframes confetti { 70% { opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }
@keyframes taskPop { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.12); } 100% { transform: translateX(-50%) scale(1); } }
.love { font-size: 34px; animation: bob 0.5s ease-in-out infinite alternate; }
.zzz { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.zzz i { font-style: normal; display: inline-block; animation: zz 1.6s ease-in-out infinite; }
.zzz i:nth-child(2) { font-size: 20px; animation-delay: 0.25s; } .zzz i:nth-child(3) { font-size: 24px; animation-delay: 0.5s; }
@keyframes zz { 0%, 100% { transform: translateY(0); opacity: 0.85; } 50% { transform: translateY(-5px); opacity: 1; } }

#banner { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-size: 40px; font-weight: 700; pointer-events: none; opacity: 0; color: #ffe066; }
#banner small { display: block; font-size: 20px; color: #fff; margin-top: 4px; }
#banner.on { animation: banner 1.8s ease-out; }
#banner.hold { opacity: 1; } /* a still of the moment */
@keyframes banner { 0% { opacity: 0; transform: scale(0.6); } 12% { opacity: 1; transform: scale(1.12); } 22% { transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }

/* ---- Labels over the world (unchanged but for the font and the colors) ---- */
#tags, #fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#fx { z-index: 7; } /* stars and bills fly over a panel too (the level-up card's cash, note 142) */
.tag { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; }
.max { color: var(--red); font-size: 20px; font-weight: 700; letter-spacing: 0.5px; }
.cashtag { color: #8df0a4; font-size: 19px; font-weight: 700; letter-spacing: 0.3px; } /* a big cash pile's amount, where MAX stood */
.tag.shake { animation: shake 0.5s ease-in-out; } /* a full cash pile's MAX when he runs into it (note 167) */
@keyframes shake { 0%, 100% { translate: 0 0; } 15% { translate: -7px 0; } 35% { translate: 7px 0; } 55% { translate: -5px 0; } 75% { translate: 4px 0; } }
.warn { color: #fff; background: var(--red); border: 2px solid #fff; border-radius: 12px; padding: 3px 9px; font-size: 15px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2); animation: bob 0.6s ease-in-out infinite alternate; }
.bang { color: #fff; background: var(--berry); border: 3px solid #fff; border-radius: 50%; width: 30px; height: 30px; line-height: 25px;
  text-align: center; font-size: 22px; font-weight: 700; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2); animation: bob 0.6s ease-in-out infinite alternate; }
.warn.clog { background: #4a5060; } /* a clog's sign, not spaghetti's red (note 193) */
.shopname { display: block; width: 100%; box-sizing: border-box; margin: 4px 0 12px; padding: 12px 14px; font: 600 24px var(--font);
  text-align: center; color: var(--ink); background: #fff; border: 3px solid var(--plum); border-radius: 14px; outline: none; }
.soon { color: #3a2a00; background: #f5c542; border: 2px solid #fff; border-radius: 12px; padding: 2px 8px; font-size: 13px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
@keyframes bob { to { transform: translate(-50%, calc(-100% - 5px)); } }
/* The anime anger mark (call 6): no bubble, just the red lines, throbbing. */
.mad svg { width: 30px; height: 30px; display: block; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 1px #fff); animation: throb 0.5s ease-in-out infinite alternate; }
@keyframes throb { from { transform: scale(0.85); } to { transform: scale(1.12); } }
body.still .mad svg { animation: none; }
.order { background: rgba(255, 255, 255, 0.72); color: var(--ink); border-radius: 14px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1); } /* see-through (note 48) */
.order { padding: 4px 8px 4px 6px; display: flex; align-items: center; gap: 4px; font-size: 15px; }
.order svg { width: 24px; height: 18px; }
/* A customer's order (note 136: narrower): each print a small icon, its count a badge on its corner when more than 1. */
.order .it { position: relative; display: block; }
.order .it svg { width: 22px; height: 16px; display: block; }
.order .it b { position: absolute; right: -6px; bottom: -6px; font-size: 10px; line-height: 13px; min-width: 13px; padding: 0 3px;
  text-align: center; color: #fff; background: var(--ink); border-radius: 7px; }
.order:has(.it) { padding: 4px 9px 5px 6px; gap: 6px; }
/* Speech: cream paper, the speaker's name on a scrap of tape in their color (the bubble Chris liked on the board) */
.say { background: #fffaf0; color: var(--ink); border-radius: 12px; box-shadow: 0 2px 0 rgba(60, 40, 20, 0.18); padding: 11px 10px 7px; font-size: 13px; line-height: 1.25; width: max-content; max-width: 150px;
  white-space: normal; text-align: center; margin-top: 10px; animation: sayIn 0.25s ease-out; }
.say b { position: absolute; left: 7px; top: -9px; font-size: 10px; color: #fff; background: var(--nc, var(--berry)); padding: 1px 8px; transform: rotate(-4deg);
  clip-path: polygon(0 8%, 100% 0, 97% 50%, 100% 100%, 0 92%, 3% 50%); letter-spacing: 0.5px; }
.order::after, .say::after { content: ""; position: absolute; left: var(--tail, 50%); bottom: -8px; margin-left: -8px; border: 8px solid transparent;
  border-bottom: 0; border-top-color: #fffaf0; }
.order::after { border-top-color: rgba(255, 255, 255, 0.72); }
@keyframes sayIn { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
/* A speaker off screen talks from the screen's edge (note 136): their face on the bubble, a pointer toward them, no tail. */
.say.edge { padding-left: 44px; text-align: left; max-width: 190px; min-height: 26px; }
.say.edge b { left: 40px; }
.say.edge::after { display: none; }
.say .face { position: absolute; left: 5px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  background: #f3e6d0 center 18% / 150% no-repeat; box-shadow: 0 0 0 2px #fffaf0, 0 0 0 4px rgba(60, 40, 20, 0.25); }
.say .face.emo { font-style: normal; font-size: 18px; line-height: 32px; text-align: center; }
.say.edge u { position: absolute; left: 21px; top: 50%; width: 0; height: 0; margin-top: -7px; border: 7px solid transparent;
  border-left: 10px solid var(--ink); border-right: 0; transform-origin: 0 50%; transform: rotate(var(--a)) translateX(19px); opacity: 0.85; }
.say.edge.r { padding-left: 10px; padding-right: 44px; }
.say.edge.r .face { left: auto; right: 5px; }
.say.edge.r u { left: calc(100% - 21px); }
.say.edge.r b { left: 7px; }
.ring { width: 46px; height: 46px; transform: translate(-50%, -50%); }
.sign { color: #fff; font-size: 13px; background: rgba(34, 38, 46, 0.62); border-radius: 9px; padding: 3px 8px; }

/* ---- Flying stars and bills ---- */
.fly { position: absolute; left: 0; top: 0; will-change: transform; }
.fly.star { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.fly.cash { width: 22px; height: 14px; margin: -7px 0 0 -11px; border-radius: 3px; background: var(--green); box-shadow: inset 0 0 0 2px var(--green-dark); }

/* ---- The joystick: a ring and knob where the thumb lands ---- */
.stick { position: fixed; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12); pointer-events: none; opacity: 0; transition: opacity 0.12s; z-index: 5; }
.stick.on { opacity: 1; }
.stick i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15); transform: translate(-50%, -50%); }

/* ---- Panels: a sheet of chipboard; the small ones slide up, Mom's people and the desk fill the screen ---- */
#sheet { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; z-index: 6; pointer-events: none; }
#sheet .card { pointer-events: auto; width: 100%; max-width: 520px; max-height: 62vh; overflow: auto; color: var(--ink);
  border-radius: 14px 14px 0 0; padding: 12px 14px max(14px, env(safe-area-inset-bottom)); box-shadow: 0 -6px 0 rgba(0, 0, 0, 0.08); animation: up 0.22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
#sheet .head { display: flex; align-items: flex-start; justify-content: space-between; margin: 4px 0 4px; }
/* the title: masking tape, written in marker */
#sheet h2 { margin: 6px 0 6px 2px; padding: 6px 22px; background: var(--tape); font: 400 24px var(--marker); color: #2c2a2a; rotate: -1.5deg;
  clip-path: polygon(0 10%, 4% 0, 9% 12%, 14% 0, 100% 4%, 97% 30%, 100% 55%, 96% 80%, 100% 100%, 0 96%, 3% 70%, 0 45%); }
#sheet.full { top: 0; align-items: stretch; background: rgba(30, 24, 40, 0.4); }
#sheet.full .card { max-height: none; height: 100%; border-radius: 0; padding: calc(max(12px, env(safe-area-inset-top)) + 8px) 14px max(14px, env(safe-area-inset-bottom)); animation: none; }
/* a note taped on (the words never float, Chris 11/10) */
.memo { position: relative; margin: 10px 8px 16px; padding: 10px 14px 10px 16px; font-size: 15px; color: #3a2a1a; line-height: 22px; rotate: 0.8deg;
  background-color: #fffdf6; background-image: repeating-linear-gradient(0deg, transparent 0 21px, rgba(120, 160, 200, 0.22) 21px 22px); box-shadow: 0 3px 5px rgba(60, 40, 20, 0.25); }
.memo::before { content: ""; position: absolute; left: 50%; top: -9px; width: 64px; height: 18px; transform: translateX(-50%) rotate(-3deg); background: var(--tape); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
/* who a note is from, in Fredoka: handwriting only on tape titles and names, never in sentences (note 82) */
.memo .from { display: block; font-size: 13px; font-weight: 700; color: var(--plum); letter-spacing: 0.3px; }
.lead { font-size: 15px; color: #4a3f36; margin: 2px 6px 10px; line-height: 1.4; }
.lead b { color: var(--ink); }
/* a card: an index card, the person's photo clipped on as a polaroid with their name in marker */
.bcard { position: relative; display: flex; gap: 12px; height: 160px; box-sizing: border-box; padding: 12px; margin: 0 2px 14px; border-radius: 4px; box-shadow: 0 3px 4px rgba(60, 40, 20, 0.25); }
.bcard:nth-child(odd) { rotate: 0.6deg; }
.bcard:nth-child(even) { rotate: -0.5deg; }
.bcard .pic { width: 92px; flex: none; background: #fff; padding: 5px 5px 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); rotate: -3deg; align-self: flex-start; }
.bcard .pic img { width: 82px; height: 82px; display: block; object-fit: cover; background: #f6e8cf; }
.bcard .pic b { display: block; text-align: center; font: 400 17px var(--marker); padding: 3px 0 4px; color: var(--ink); }
.bcard .pic.bare { padding-bottom: 5px; }
.bcard.locked { filter: saturate(0.4); }
.bcard.locked .pic img { filter: grayscale(1); opacity: 0.6; }
.bcard .side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bcard .title { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard .what { font-size: 14px; font-weight: 500; color: #5a4a3e; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard .stat { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); }
.bcard .stat span { width: 46px; }
.bcard .pips { display: flex; gap: 5px; }
.bcard .pips i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #b5a594; }
.bcard .pips i.on { background: var(--teal); border-color: var(--teal); }
.bcard .btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.bcard .btns .key { margin-bottom: 7px; }
.bcard .btns .key .face { font-size: 15px; padding: 5px 11px; }
.bcard .see { font-size: 12px; color: var(--plum); text-decoration: none; margin-bottom: 8px; }
.bcard .why { align-self: flex-start; margin-bottom: 8px; background: #b9aa98; color: #fff; font-size: 14px; padding: 6px 12px; border-radius: 12px; display: flex; gap: 6px; align-items: center; }
.bcard .why svg { width: 14px; height: 15px; }
/* A product on its way (note 117): a shipping box over the picture, the card warm rather than gray. */
.bcard.ship { filter: none; }
.bcard.ship .pic img { filter: grayscale(0.3); opacity: 0.75; }
.bcard.ship .why { background: #a8794a; }
.bcard.ship .why svg { width: 17px; height: 15px; }
.bcard .pic { position: relative; }
.bcard .pic .onway { position: absolute; right: 6px; bottom: 6px; width: 46px; transform: rotate(-8deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25)); }
.bcard .pic .onway svg { width: 100%; height: auto; display: block; }
.big { display: flex; width: 100%; margin-top: 12px; }
.big .face { font-size: 17px; padding: 10px; }

/* ---- LEVEL UP (notes 104, 142, 195): a badge in the middle with the whole game in view around it, no card and no
   dimming (Chris 11/16: "not a full screen card that covers the screen, have it as an icon thing in middle of the
   screen. covering the whole screen i think takes me out of it too much"): masking tape, the level on a berry sticker
   in a burst of rays and confetti, a note with a picture of what it opened, the cash. It stays until it's tapped; only
   the badge takes the touch, the rest of the screen is the stick's. ---- */
#sheet.pop { top: 0; align-items: center; background: none; pointer-events: none; }
#sheet.pop .card { pointer-events: auto; cursor: pointer; width: 216px; max-height: none; overflow: visible; margin-bottom: 14vh; padding: 0;
  background: none; border: 0; border-radius: 0; box-shadow: none; animation: lvcard 0.35s cubic-bezier(.2, 1.5, .4, 1); }
#sheet.pop .head { display: none; }
@keyframes lvcard { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.lvup { position: relative; display: grid; justify-items: center; gap: 8px; padding: 2px 0; }
.lvup > * { position: relative; z-index: 1; }
.lvtape { padding: 4px 18px; background: var(--tape); font: 400 21px var(--marker); box-shadow: 0 2px 3px rgba(40, 30, 20, 0.3); color: #2c2a2a; rotate: -2deg; clip-path: polygon(0 10%, 4% 0, 9% 12%, 14% 0, 100% 4%, 97% 30%, 100% 55%, 96% 80%, 100% 100%, 0 96%, 3% 70%, 0 45%); }
.lvup > .lvrays { position: absolute; left: 50%; top: 88px; width: 210px; height: 210px; margin: -105px 0 0 -105px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 205, 60, 0.6) 0 12deg, transparent 12deg 30deg); z-index: 0;
  -webkit-mask: radial-gradient(circle, #000 28%, transparent 68%); mask: radial-gradient(circle, #000 28%, transparent 68%); animation: lvspin 16s linear infinite; }
@keyframes lvspin { to { rotate: 360deg; } }
.lvup > .confetti { position: absolute; z-index: 0; } /* behind the tape, the sticker and the note */
.confetti.stay { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); animation: confettiStay 0.7s cubic-bezier(.2, .9, .3, 1) backwards; }
@keyframes confettiStay { from { transform: none; opacity: 0; } 20% { opacity: 1; } }
.lvstar { width: 88px; height: 88px; border-radius: 50%; background: var(--berry); color: #fff; display: grid; place-items: center; font-size: 46px; font-weight: 700;
  border: 5px solid #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25); animation: lvpop 0.5s cubic-bezier(.2, 1.6, .4, 1); }
.lvopen { display: flex; align-items: center; gap: 9px; box-sizing: border-box; width: 100%; padding: 7px 11px; rotate: 0.6deg; font-size: 15px; line-height: 1.2; color: #3a2a1a;
  background-color: #fffdf6; background-image: repeating-linear-gradient(0deg, transparent 0 21px, rgba(120, 160, 200, 0.22) 21px 22px); box-shadow: 0 3px 5px rgba(60, 40, 20, 0.25); }
.lvopen small { display: block; font-size: 12px; color: #7a5aa6; }
.lvpic { font-size: 28px; line-height: 1; flex: none; }
.lvcash { padding: 2px 15px 4px; border-radius: 999px; background: var(--green); color: #fff; font-size: 21px; font-weight: 700; box-shadow: 0 4px 0 var(--green-dark);
  animation: lvpop 0.5s 0.25s cubic-bezier(.2, 1.6, .4, 1) backwards; }
@keyframes lvpop { from { transform: scale(0.3) rotate(-20deg); } to { transform: none; } }

/* ---- Choose your character (note 62): full screen, two polaroids on chipboard, both named Brim ---- */
#pick { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
#pick h1 { margin: 0; padding: 8px 26px; background: var(--tape); font: 400 30px var(--marker); color: #2c2a2a; text-shadow: none; rotate: -2deg;
  clip-path: polygon(0 10%, 4% 0, 9% 12%, 14% 0, 100% 4%, 97% 30%, 100% 55%, 96% 80%, 100% 100%, 0 96%, 3% 70%, 0 45%); }
#pick .cards { display: flex; gap: 16px; }
#pick button { font: inherit; border: 0; padding: 8px 8px 4px; background: #fff; color: var(--ink); box-shadow: 0 4px 8px rgba(40, 30, 20, 0.35);
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; rotate: -2deg; }
#pick button + button { rotate: 2deg; }
#pick button img { width: 140px; height: 165px; background: #cfe6c8; }
#pick button b { font: 400 26px var(--marker); }

/* Stills: everything at rest. */
.still *, .still *::after { animation: none !important; transition: none !important; }

/* ---- Mom's roster and the kiosk's things (Chris 11/15, notes 166, 168; art/ninth/batch-b-mockup.html) ---- */
#sheet h2.logo { background: #1f3a8a; color: #fff; font: 800 22px/1 Helvetica, Arial, sans-serif; letter-spacing: -1.2px; padding: 9px 16px; rotate: 0deg; }
.public #sheet h2.logo { background: #127a74; font: 700 22px/1 var(--font); letter-spacing: 0; } /* the public build's made-up supplier (game/edition.js) */
.roster .pair { display: flex; gap: 8px; flex-wrap: wrap; }
.roster .pair .group:last-child { flex: 1; }
.roster .group { margin: 8px 0 2px; }
.roster .group .lab { display: inline-block; margin: 0 0 4px 6px; padding: 2px 12px; background: var(--tape); font: 400 15px var(--marker); rotate: -1deg; color: #2c2a2a; }
.roster .row { display: flex; gap: 2px; flex-wrap: wrap; }
.who { position: relative; flex: none; width: 56px; text-align: center; cursor: pointer; padding: 4px 0 3px; border-radius: 10px; border: 0; background: none; font: inherit; color: var(--ink); }
.who img { width: 56px; height: 61px; object-fit: cover; display: block; margin: 0 auto; filter: drop-shadow(0 3px 2px rgba(60, 40, 20, 0.3)); }
.who.wide { width: 100px; } .who.wide img { width: 96px; height: 72px; }
.who .nm { font: 400 14px var(--marker); display: block; margin-top: 1px; }
.who.gray img { filter: grayscale(1) brightness(1.15) opacity(0.55); }
.who.gray .nm { color: #7a6f66; }
.who .ptag { display: inline-block; margin-top: 1px; white-space: nowrap; font: 700 11px var(--font); color: #fff; background: var(--green); border: 2px solid #fff; border-radius: 10px; padding: 0 6px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); }
.who .ptag.lock { background: #9a8f84; }
.who .ptag.cant { background: #b9aa98; }
.who .bang2 { position: absolute; right: 2px; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--berry); color: #fff; font: 700 14px/17px var(--font); border: 2px solid #fff; z-index: 1; }
.who.sel { background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 3px var(--teal); }
.under { margin: 12px 2px 0; }
.pcard { position: relative; border-radius: 4px; padding: 12px 14px 4px; margin: 0 2px 14px; box-shadow: 0 3px 4px rgba(60, 40, 20, 0.25); rotate: -0.4deg; color: var(--ink); }
.pcard:nth-child(even) { rotate: 0.5deg; }
.pcard h4 { margin: 0 0 2px; font: 700 17px var(--font); }
.pcard .what { color: #5a4a3e; font-size: 14px; margin-bottom: 8px; line-height: 1.3; }
.pcard .stat { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 4px 0; }
.pcard .stat span { width: 50px; }
.pcard .pips { display: flex; gap: 5px; } .pcard .pips i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #b5a594; } .pcard .pips i.on { background: var(--teal); border-color: var(--teal); }
.pcard .btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.pcard .btns .key .face { font-size: 15px; padding: 5px 12px; }
.pcard .see { font-size: 12px; color: var(--plum); text-decoration: none; margin-bottom: 8px; }
.pcard.alert { background: #ffe3ec; background-image: none; } .pcard.good { background: #dff5e4; background-image: none; }
.pcard .pbig { font: 700 30px/1 var(--font); } .pcard .pbig small { font: 600 14px var(--font); color: #5a4a3e; }
.pcard .chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 6px; }
.pcard .chips span { font: 600 12px var(--font); background: #efe6d2; border-radius: 10px; padding: 2px 8px; }
.pcard .chips span.up { background: #d9f2df; color: var(--green-dark); } .pcard .chips span.down { background: #ffd9e2; color: var(--berry-dark); }
.pcard .stars { color: #e8a41c; letter-spacing: 1px; font-size: 16px; } .pcard .stars + span { font-size: 13px; color: #5a4a3e; }
.pcard .prow { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 0; border-top: 1px dashed #d8cdb8; font-size: 13px; }
.pcard .prow .pay { font-weight: 700; color: var(--green-dark); }
.pcard .wait { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #e9dfca; overflow: hidden; }
.pcard .wait i { display: block; height: 100%; background: var(--teal); } .pcard .wait i.mid { background: #e8a41c; } .pcard .wait i.late { background: var(--berry); }
.tag.call { animation: callbob 0.9s ease-in-out infinite; } /* Zoe's "Let's do a reel!" while she waits (Chris 11/15) */
@keyframes callbob { 50% { margin-top: -6px; } }

/* ---- The beta's feedback (game/feedback.js; Chris 11/15; the mockup he OKed: art/feedback/mockup.html) ---- */
/* the button: a speech bubble under the gear, away from the thumbs */
#fbBtn { position: absolute; left: 12px; top: calc(max(12px, env(safe-area-inset-top)) + 56px); z-index: 2; }
/* the goal's chip moves over a little, so a long goal never runs under the button */
#stage.beta .task { left: calc(50% + 25px); max-width: calc(100% - 78px); }
/* its screens are panels whose kind starts with "b-": a column, the last thing (the dots, Next, Send) at the bottom */
#sheet[data-kind^="b-"] .card { display: flex; flex-direction: column; }
#sheet[data-kind^="b-"] .body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
#sheet[data-kind^="b-"] .memo { margin: 6px 6px 0; font-size: 17px; line-height: 24px;
  background-image: repeating-linear-gradient(0deg, transparent 0 23px, rgba(120, 160, 200, 0.22) 23px 24px); }
#sheet[data-kind^="b-"] .big { margin-top: 0; }
#sheet[data-kind^="b-"] .big .face { font-size: 19px; }
#sheet[data-kind="b-ask"] .card { border-radius: 18px 18px 0 0; }
#sheet[data-kind="b-ask"] h2 { background: none; clip-path: none; rotate: 0deg; padding: 6px 0 0; margin: 0 0 0 2px; font: 700 21px/1.2 var(--font); color: var(--ink); }
.bfoot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.bfoot.near { margin-top: 2px; }
.bdots { display: flex; gap: 7px; justify-content: center; }
.bdots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(60, 40, 20, 0.25); }
.bdots i.on { background: var(--berry); }
.bfine { margin: 0; font: 600 14px/1.3 var(--font); color: #5d5148; text-align: center; }
/* a box to write in: lined paper, the question on its first line */
.bpad { background: var(--paper); background-image: repeating-linear-gradient(0deg, transparent 0 25px, rgba(120, 160, 200, 0.2) 25px 26px);
  border-radius: 4px; padding: 10px 14px 12px; box-shadow: 0 3px 4px rgba(60, 40, 20, 0.25); color: var(--ink); }
.bpad label { display: block; font: 700 18px/26px var(--font); }
.bpad textarea { display: block; width: 100%; border: 0; background: transparent; resize: none; font: 500 17px/26px var(--font); color: var(--ink); padding: 0; outline: none;
  -webkit-user-select: text; user-select: text; }
.bpad textarea::placeholder { color: #b3a698; }
/* the welcome */
.bhero { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-end; gap: 2px; }
.bhero img { height: 168px; width: auto; margin: 0 -14px; filter: drop-shadow(0 4px 3px rgba(60, 40, 20, 0.3)); }
.bhero.one img { height: 230px; }
.byou { position: relative; }
.byou img { display: block; filter: grayscale(1) brightness(1.25) opacity(0.6); }
.byou b { position: absolute; left: 50%; top: -12px; translate: -50% 0; z-index: 1; background: var(--berry); color: #fff; font: 700 14px/1.3 var(--font); border: 2px solid #fff; border-radius: 12px; padding: 0 10px; white-space: nowrap; }
.btodo { display: flex; flex-direction: column; gap: 8px; }
.btodo div { display: flex; align-items: center; gap: 12px; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 7px 12px; font: 700 18px/1.2 var(--font); box-shadow: 0 3px 0 rgba(60, 40, 20, 0.28); }
.btodo i { font-style: normal; font-size: 26px; width: 34px; text-align: center; flex: none; }
.bsteps { display: flex; flex-direction: column; gap: 14px; }
.bstep { display: grid; grid-template-columns: 43% 1fr; gap: 14px; align-items: center; color: var(--ink); }
/* the crop's own names (ctl, ctop, cbot): a bare `top` took the HUD's .top rule and sat 12 px low (note 179) */
.bcrop { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; box-shadow: 0 0 0 3px #22252b, 0 4px 6px rgba(40, 30, 20, 0.3); background: #a5cd82; }
.bcrop img { position: absolute; left: 0; width: 100%; max-width: none; display: block; }
.bcrop.ctl img { top: 0; width: 235%; }
.bcrop.ctl::after { content: ""; position: absolute; left: 2%; top: 35%; width: 37%; aspect-ratio: 1; border: 3px dashed var(--berry); border-radius: 50%; }
.bcrop.ctop img { top: 0; }
.bcrop.cbot img { bottom: 0; }
.bsay { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bsay .bn { width: 28px; height: 28px; border-radius: 50%; background: var(--berry); color: #fff; font: 700 16px/24px var(--font); border: 2px solid #fff; text-align: center; }
.bsay b { font: 700 19px/1.2 var(--font); }
.bsay small { font: 500 14px/1.3 var(--font); color: #5d5148; }
.minikey { display: inline-grid; place-items: center; width: 30px; height: 25px; border-radius: 6px; background: var(--teal); box-shadow: 0 3px 0 var(--teal-dark); vertical-align: -3px; }
.minikey svg { width: 16px; height: 16px; }
/* the sheet */
.bkinds { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 8px; }
.bkind { border: 0; cursor: pointer; background: var(--paper); border-radius: 10px; padding: 7px 8px; display: flex; align-items: center; gap: 8px; text-align: left;
  font: 700 16px/1.15 var(--font); color: var(--ink); box-shadow: 0 3px 0 rgba(60, 40, 20, 0.28); }
.bkind i { font-style: normal; font-size: 27px; line-height: 1.15; }
.bkind[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 4px var(--teal), 0 5px 0 rgba(60, 40, 20, 0.28); translate: 0 -2px; }
.bkind[aria-pressed="false"] { opacity: 0.82; }
.bgoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ink); }
.bgoes b { font: 600 12px var(--font); letter-spacing: 0.5px; text-transform: uppercase; color: #5d5148; flex-basis: 100%; }
.bgoes span { background: rgba(255, 255, 255, 0.62); border-radius: 12px; padding: 2px 10px; font-weight: 600; }
/* a question's answers */
.bface { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bface.n2 { grid-template-columns: 1fr 1fr; }
.bface button { border: 0; cursor: pointer; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 6px 0 4px; font: 700 36px/1.2 var(--font); box-shadow: 0 3px 0 rgba(60, 40, 20, 0.28); }
.bface.words button { font-size: 20px; padding: 12px 0 10px; }
.bface button.on { background: #fff; box-shadow: 0 0 0 4px var(--teal), 0 5px 0 rgba(60, 40, 20, 0.28); }
.bface button.off { opacity: 0.45; }
.brow { display: flex; gap: 8px; }
.brow .big { flex: 1; width: auto; }
.brow .big.stone { flex: 0 0 auto; }
/* the end screen */
.bstats { display: flex; flex-wrap: wrap; gap: 6px; color: var(--ink); }
.bstats span { background: rgba(255, 255, 255, 0.62); border-radius: 12px; padding: 2px 10px; font: 600 14px/1.5 var(--font); font-variant-numeric: tabular-nums; }
.bqa { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bqa label { flex: 1; }
.bstars { display: flex; }
.bstars button { border: 0; background: none; padding: 0 1px; font-size: 28px; line-height: 1; color: #d9cfbf; cursor: pointer; }
.bstars button.on { color: #f2b01e; }
.byn { display: flex; gap: 6px; }
.byn .key { padding-bottom: 8px; margin: 0; }
.byn .key .face { font-size: 15px; padding: 4px 13px; }
