/* Clean Up Before Compliance · $POWDER · same counter, same marker */
:root {
  --slate: #1e2225; --slate-2: #262b2f; --chalk: #f3f0e8; --ink: #0d0e0f;
  --red: #ec3a2f; --blue: #2f73e0; --yellow: #ffd23f; --green: #34b84a; --paper: #fbf6e8; --kraft: #e7d0a2;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  --hand: "Gochi Hand", "Comic Sans MS", cursive;
  --type: "Special Elite", "Courier New", monospace;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--slate); color: var(--chalk); overflow: hidden; }
body { font: 700 16px/1.45 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px dashed var(--yellow); outline-offset: 4px; }

#cv { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ---------- HUD ---------- */
.hud { position: fixed; left: 0; right: 0; top: 0; padding: calc(10px + var(--safe-t)) 14px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 10px; pointer-events: none; z-index: 5; }
.hud button { pointer-events: auto; }
.hud-l { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.hud-r { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.timecard { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px; padding: 4px 10px 5px; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--ink); display: grid; line-height: 1.05; }
.tc-k, .tc-s { font: 400 11px/1.2 var(--type); letter-spacing: .08em; text-transform: uppercase; color: #555; }
.timecard b { font: 400 30px/1 var(--marker); }
.timecard.late b { color: var(--red); }
.alert { display: grid; gap: 3px; font: 400 12px/1 var(--type); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.alert i { display: block; width: 110px; height: 12px; border: 2.5px solid var(--ink); background: var(--paper); border-radius: 4px; overflow: hidden; box-shadow: 2px 2px 0 var(--ink); }
.alert b { display: block; height: 100%; width: 0%; background: var(--red); transition: width .15s; }
.hud-c { display: grid; justify-items: center; gap: 2px; }
.meter { width: min(320px, 34vw); height: 22px; border: 3px solid var(--ink); border-radius: 12px; background: #3a4146; overflow: hidden; box-shadow: 3px 3px 0 var(--ink); }
.meter b { display: block; height: 100%; width: 0%; background: repeating-linear-gradient(-45deg, var(--paper) 0 10px, #e9e2d2 10px 20px); transition: width .2s; }
.meter-t { font: 400 18px/1 var(--marker); text-shadow: 2px 2px 0 var(--ink); }
.dough { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; padding: 3px 12px 3px 8px; font: 400 20px/1 var(--marker); box-shadow: 3px 3px 0 var(--ink); display: flex; gap: 4px; align-items: center; }
.dough i { font-style: normal; font-size: 16px; }
.ib { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); font: 400 16px/1 var(--marker); box-shadow: 2px 2px 0 var(--ink); }
.ib.off { opacity: .55; text-decoration: line-through; }

/* ---------- QUALITY CHECK ---------- */
.qc { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + var(--safe-b)); z-index: 6; width: 118px; height: 118px; border-radius: 50%; border: 4px solid var(--ink); background: radial-gradient(circle at 35% 30%, #ff6a5c, var(--red) 55%, #b51f17); color: var(--paper); box-shadow: 0 6px 0 var(--ink), 0 0 0 6px rgba(236,58,47,.25); display: grid; place-content: center; text-align: center; transform: rotate(-6deg); transition: transform .1s; touch-action: none; }
.qc:active { transform: rotate(-6deg) translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.qc-t { font: 400 17px/1 var(--marker); text-shadow: 2px 2px 0 var(--ink); }
.qc-pips { display: flex; gap: 5px; justify-content: center; margin-top: 6px; }
.qc-pips i { width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.qc-pips i.used { background: #6b2320; }
.qc kbd { font: 400 10px/1 var(--type); text-transform: uppercase; letter-spacing: .1em; opacity: .8; margin-top: 5px; }
.qc.empty { filter: grayscale(.85) brightness(.7); }
.qc.live { animation: qc-beat .45s ease-in-out infinite; }
.qc.ready:not(.empty) { animation: qc-wiggle 2.4s ease-in-out infinite; }
@keyframes qc-beat { 0%,100% { transform: rotate(-6deg) scale(1); } 30% { transform: rotate(-4deg) scale(1.08); } }
@keyframes qc-wiggle { 0%,86%,100% { transform: rotate(-6deg); } 90% { transform: rotate(4deg); } 94% { transform: rotate(-10deg); } }
@media (hover: none) { .qc kbd { display: none; } }
/* narrow phones: the baguette count, sound and pause all stay on screen, also with four digits */
@media (max-width: 420px) {
  .hud { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .hud-l { min-width: 0; gap: 6px; }
  .hud-r { gap: 5px; }
  .dough { font-size: 17px; padding: 3px 8px 3px 6px; border-width: 2.5px; box-shadow: 2px 2px 0 var(--ink); }
  .dough i { font-size: 13px; }
  .ib { width: 34px; height: 34px; font-size: 14px; border-width: 2.5px; }
  .timecard { padding: 3px 7px 4px; }
  .timecard b { font-size: 26px; }
}
.btn-red:disabled { opacity: .6; cursor: progress; }
.links a + a { margin-left: 10px; }
.cantrun { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; padding: 8px 10px; font: 800 15px/1.35 var(--body, system-ui); }

/* ---------- speech bubbles ---------- */
#bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.bub { position: absolute; transform: translate(-50%, -100%); background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 5px 11px 6px; font: 400 16px/1.15 var(--hand); white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); animation: bub-in .18s ease-out; }
.bub::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 14px; height: 14px; background: var(--paper); border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translateX(-50%) rotate(45deg) skew(8deg, 8deg); }
.bub.cop { background: #dfe6ee; font-family: var(--type); font-size: 14px; }
.bub.cop::after { background: #dfe6ee; }
.bub.rush { background: var(--yellow); font-family: var(--marker); font-size: 17px; }
.bub.rush::after { background: var(--yellow); }
.bub.out { opacity: 0; transition: opacity .3s; }
@keyframes bub-in { from { transform: translate(-50%, -90%) scale(.6); opacity: 0; } }

.flash { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-4deg); z-index: 7; pointer-events: none; font: 400 clamp(34px, 7vw, 72px)/1 var(--marker); color: var(--yellow); text-shadow: 4px 4px 0 var(--ink), -2px -2px 0 var(--ink); opacity: 0; white-space: nowrap; }
.flash.on { animation: flash 1.3s ease-out; }
@keyframes flash { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-4deg) scale(.5); } 15% { opacity: 1; transform: translate(-50%, -50%) rotate(-4deg) scale(1.08); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) rotate(-4deg); } }

/* ---------- screens ---------- */
.screen { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: radial-gradient(ellipse at center, rgba(13,14,15,.15), rgba(13,14,15,.55)); }
.paper { background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 10px; box-shadow: 8px 8px 0 var(--ink); padding: 24px 26px 20px; width: min(460px, 100%); transform: rotate(-1deg); position: relative; }
.paper::before { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 28px; transform: translateX(-50%) rotate(2deg); background: rgba(231,208,162,.85); border: 2px solid rgba(13,14,15,.15); }
.paper-sm { width: min(380px, 100%); }
.paper-wide { width: min(880px, 100%); transform: rotate(-.4deg); margin: 20px 0; }
.kick { margin: 0 0 4px; font: 400 13px/1.2 var(--type); letter-spacing: .1em; text-transform: uppercase; color: #6a655c; }
h1 { margin: 0 0 10px; font: 400 44px/.95 var(--marker); color: var(--red); }
h2 { margin: 0 0 8px; font: 400 34px/1 var(--marker); color: var(--red); }
h3 { margin: 18px 0 8px; font: 400 21px/1 var(--marker); display: flex; justify-content: space-between; align-items: baseline; }
h3 small { font: 600 12px var(--body); color: #777; }
.lede { margin: 0 0 14px; font: 400 21px/1.2 var(--hand); }
.how { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.how li { padding-left: 22px; position: relative; }
.how li::before { content: "✗"; position: absolute; left: 0; color: var(--red); font-family: var(--marker); }
.how b { font-family: var(--marker); font-weight: 400; }
.small { margin: 10px 0 0; font-size: 13px; color: #6a655c; }
.btn-red, .btn-y { border: 4px solid var(--ink); border-radius: 10px; padding: 10px 22px 12px; font: 400 24px/1 var(--marker); box-shadow: 0 5px 0 var(--ink); }
.btn-red { background: var(--red); color: var(--paper); text-shadow: 2px 2px 0 var(--ink); }
.btn-y { background: var(--yellow); color: var(--ink); }
.btn-red:active, .btn-y:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.tog { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; }

.stamp { position: absolute; right: 26px; top: 18px; margin: 0; font: 400 30px/1 var(--type); color: var(--red); border: 4px double var(--red); border-radius: 6px; padding: 4px 10px; transform: rotate(9deg); opacity: .85; }
.r-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 720px) { .r-grid { grid-template-columns: 1fr; gap: 0; } .stamp { font-size: 20px; right: 14px; } h2 { font-size: 28px; padding-right: 90px; } }
.stats { margin: 8px 0 0; display: grid; gap: 4px; font-family: var(--type); font-weight: 400; }
.stats div { display: flex; justify-content: space-between; border-bottom: 2px dashed #cfc8b8; padding: 3px 0; }
.stats dt, .stats dd { margin: 0; }
.stats dd { font-family: var(--marker); font-size: 19px; }
.stats .earn dd { color: var(--green); }
.board { margin: 0; padding: 0 0 0 26px; font-family: var(--type); font-weight: 400; font-size: 14px; }
.board li { padding: 2px 0; }
.board li span { float: right; }
.board li.me { color: var(--red); }
.name { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; }
.name input { font: 400 18px var(--hand); border: 3px solid var(--ink); border-radius: 6px; padding: 4px 8px; background: #fff; color: var(--ink); user-select: text; -webkit-user-select: text; }
.wallet { background: var(--yellow); border: 3px solid var(--ink); border-radius: 16px; padding: 2px 10px; font-size: 17px; }
.shop { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; border: 3px solid var(--ink); border-radius: 8px; padding: 7px 10px; background: #fff; }
.item b { font: 400 17px/1.1 var(--marker); }
.item small { grid-column: 1; font-size: 12.5px; color: #6a655c; font-weight: 600; }
.item .lv { font: 400 11px var(--type); letter-spacing: .06em; text-transform: uppercase; color: #8a8478; }
.item button { grid-row: 1 / span 3; grid-column: 2; border: 3px solid var(--ink); border-radius: 8px; background: var(--yellow); color: var(--ink); font: 400 16px/1 var(--marker); padding: 8px 10px; box-shadow: 0 3px 0 var(--ink); min-width: 74px; }
.item button:disabled { background: #e4dfd3; color: #8a8478; box-shadow: none; cursor: default; }
.item.max button { background: var(--green); color: var(--paper); }
.locs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.locs li { border: 2.5px solid var(--ink); border-radius: 16px; padding: 3px 10px; font-size: 13px; background: #fff; }
.locs li.open { background: var(--green); color: var(--paper); }
.locs li.lock { opacity: .6; border-style: dashed; }
.r-btns { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .hud { grid-template-columns: 1fr auto; padding-left: 10px; padding-right: 10px; }
  .hud-l { flex-wrap: nowrap; gap: 8px; }
  .alert { margin-top: 4px; }
  .alert i { width: 72px; }
  .hud-c { grid-column: 1 / -1; grid-row: 2; margin-top: 2px; }
  .meter { width: min(300px, 70vw); height: 18px; }
  .timecard b { font-size: 24px; }
  .tc-s { display: none; }
  .qc { width: 96px; height: 96px; }
  .qc-t { font-size: 14px; }
  h1 { font-size: 38px; }
}

/* ================= first person additions ================= */
html, body { background: #0b0d10; }
.cross { position: fixed; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); pointer-events: none; z-index: 4; }
.cross i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--ink); transition: all .12s; }
.cross.on i { width: 20px; height: 20px; margin: -10px 0 0 -10px; background: transparent; border: 2.5px solid var(--paper); box-shadow: 0 0 0 1.5px var(--ink), inset 0 0 0 1.5px var(--ink); }
.cross.far i { opacity: .45; }
.cross.full i { border-color: var(--red); background: transparent; width: 18px; height: 18px; margin: -9px 0 0 -9px; box-shadow: 0 0 0 1.5px var(--ink); }
.prompt { position: fixed; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); margin: 0; z-index: 4; pointer-events: none; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; padding: 4px 12px 5px; font: 400 17px/1.2 var(--marker); box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; }
.prompt.red { background: var(--red); color: var(--paper); }
.arrow { position: fixed; left: 50%; top: 50%; width: 0; height: 0; z-index: 4; pointer-events: none; }
.arrow span { position: absolute; left: -16px; top: -150px; width: 32px; text-align: center; font: 400 34px/1 var(--marker); color: var(--yellow); text-shadow: 3px 3px 0 var(--ink); }
.arrow em { position: absolute; left: -60px; top: -112px; width: 120px; text-align: center; font: 400 14px/1 var(--marker); font-style: normal; color: var(--paper); text-shadow: 2px 2px 0 var(--ink); }
.toolbar { position: fixed; left: max(14px, env(safe-area-inset-left)); bottom: calc(14px + var(--safe-b)); z-index: 5; display: grid; gap: 8px; max-width: min(340px, 60vw); }
.tool { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; padding: 6px 12px 7px 8px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1.5deg); }
.tool-k { grid-row: span 2; width: 30px; height: 30px; border-radius: 6px; background: var(--yellow); border: 2.5px solid var(--ink); display: grid; place-content: center; font: 400 17px/1 var(--marker); }
.tool b { font: 400 19px/1.05 var(--marker); }
.tool small { font: 600 12px/1.2 var(--body); color: #6a655c; }
.bagm { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font: 400 12px/1 var(--type); text-transform: uppercase; letter-spacing: .08em; text-shadow: 1px 1px 0 var(--ink); }
.bagm i { display: block; height: 14px; border: 2.5px solid var(--ink); border-radius: 7px; background: rgba(13,14,15,.5); overflow: hidden; box-shadow: 2px 2px 0 var(--ink); }
.bagm b { display: block; height: 100%; width: 0; background: var(--paper); transition: width .1s; }
.bagm.full b { background: var(--red); }
.bagm em { font-style: normal; }
.act { position: fixed; right: calc(max(16px, env(safe-area-inset-right)) + 130px); bottom: calc(30px + var(--safe-b)); z-index: 6; width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--ink); background: var(--yellow); color: var(--ink); font: 400 24px/1 var(--marker); box-shadow: 0 4px 0 var(--ink); }
.joy { position: fixed; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 3px solid rgba(243,240,232,.5); background: rgba(13,14,15,.25); z-index: 4; pointer-events: none; }
.joy i { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: rgba(243,240,232,.7); border: 3px solid var(--ink); }
.toast { position: fixed; left: 50%; top: 22%; transform: translateX(-50%); z-index: 7; pointer-events: none; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; padding: 6px 14px 7px; font: 400 20px/1.2 var(--marker); box-shadow: 4px 4px 0 var(--ink); opacity: 0; transition: opacity .25s, transform .25s; white-space: nowrap; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(-6px); }
.how.touch { display: none; }
@media (hover: none) and (pointer: coarse) { .how.desk { display: none; } .how.touch { display: grid; } }
.row { display: grid; gap: 4px; margin-top: 14px; font-size: 14px; }
.shopwrap { display: grid; gap: 14px; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.tcard { border: 3px solid var(--ink); border-radius: 8px; background: #fff; padding: 7px 9px 9px; display: grid; gap: 3px; align-content: start; }
.tcard .k { font: 400 11px var(--type); color: #8a8478; letter-spacing: .06em; text-transform: uppercase; }
.tcard b { font: 400 17px/1.05 var(--marker); }
.tcard small { font-size: 12px; color: #6a655c; font-weight: 600; min-height: 30px; }
.tcard button { margin-top: 4px; border: 3px solid var(--ink); border-radius: 7px; background: var(--yellow); color: var(--ink); font: 400 15px/1 var(--marker); padding: 7px 8px; box-shadow: 0 3px 0 var(--ink); }
.tcard button:disabled { background: #e4dfd3; color: #8a8478; box-shadow: none; cursor: default; }
.tcard.eq { background: #fff7d6; }
.tcard.eq button { background: var(--green); color: var(--paper); }
.tcard.locked { opacity: .55; }
.ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.wallet { font-size: 17px; }
h2 .wallet { margin-left: 10px; vertical-align: middle; }

/* ================= hiding, warning, walkthrough ================= */
.alert { position: relative; }
.seen { display: inline-block; margin-top: 3px; font: 400 12px/1 var(--marker); font-style: normal; letter-spacing: .02em; text-transform: none; padding: 4px 8px 5px; border-radius: 6px; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
.seen.hidden { background: var(--green); color: var(--paper); }
.seen.open { background: var(--yellow); color: var(--ink); }
.seen.beam { background: var(--red); color: var(--paper); animation: beam-pulse .5s ease-in-out infinite; }
@keyframes beam-pulse { 50% { transform: scale(1.08); } }
.warn { position: fixed; left: 50%; top: 31%; transform: translateX(-50%) rotate(-1.5deg); z-index: 14; pointer-events: none; display: flex; gap: 12px; align-items: center; background: var(--red); color: var(--paper); border: 4px solid var(--ink); border-radius: 10px; padding: 8px 16px 9px; box-shadow: 5px 5px 0 var(--ink); font: 400 22px/1 var(--marker); text-shadow: 2px 2px 0 var(--ink); white-space: nowrap; animation: warn-in .25s ease-out, warn-blink .6s steps(2) infinite; }
.warn b { display: grid; place-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); color: var(--red); border: 3px solid var(--ink); text-shadow: none; font-size: 24px; }
@keyframes warn-in { from { transform: translateX(-50%) translateY(-30px) rotate(-1.5deg); opacity: 0; } }
@keyframes warn-blink { 50% { background: #b51f17; } }
.crouchb { position: fixed; right: calc(max(16px, env(safe-area-inset-right)) + 14px); bottom: calc(132px + var(--safe-b)); z-index: 6; width: 76px; height: 76px; border-radius: 50%; border: 4px solid var(--ink); background: var(--paper); color: var(--ink); font: 400 13px/1 var(--marker); box-shadow: 0 4px 0 var(--ink); display: grid; place-content: center; touch-action: none; }
.crouchb span { font-size: 26px; line-height: .9; }
.crouchb.on { background: var(--green); color: var(--paper); }
.coach { position: fixed; left: 50%; top: calc(150px + var(--safe-t)); transform: translateX(-50%) rotate(-.6deg); z-index: 12; width: min(520px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 10px; box-shadow: 6px 6px 0 var(--ink); padding: 10px 14px 10px 56px; display: grid; gap: 6px; pointer-events: auto; }
.coach.top { top: calc(12px + var(--safe-t)); }
.coach-n { position: absolute; left: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); display: grid; place-content: center; font: 400 13px/1 var(--marker); }
.coach p { margin: 0; font: 400 19px/1.25 var(--hand); }
.coach button, .linkb { justify-self: start; background: none; border: 0; padding: 0; font: 600 12px var(--body); color: #6a655c; text-decoration: underline; cursor: pointer; }
.hl { outline: 4px solid var(--yellow) !important; outline-offset: 4px; animation: hl-pulse 1s ease-in-out infinite; border-radius: 10px; }
.cross.hl { outline-offset: 10px; border-radius: 50%; }
@keyframes hl-pulse { 50% { outline-color: rgba(255,210,63,.25); } }
.item.warnup { border-color: var(--red); background: #fff1ef; }
@media (max-width: 600px) {
  .warn { font-size: 15px; top: 30%; padding: 6px 10px; gap: 8px; white-space: normal; width: max-content; max-width: calc(100vw - 32px); text-align: center; line-height: 1.15; }
  .warn b { width: 30px; height: 30px; font-size: 18px; }
  .coach { top: auto; bottom: calc(118px + var(--safe-b)); padding-left: 50px; }
  .coach.top { top: calc(12px + var(--safe-t)); bottom: auto; }
  .coach p { font-size: 17px; }
  .seen { font-size: 11px; }
}

body.warning .coach:not(.top) { top: auto; bottom: calc(170px + var(--safe-b)); }

/* ================= hooks pass ================= */
.paper.start h1 { color: var(--ink); }
.paper.start h1 { font-size: 64px; line-height: .95; margin-bottom: 14px; }
.lede.four { display: grid; gap: 2px; margin-bottom: 18px; font-size: 22px; line-height: 1.2; }
.lede.four .snap { font-family: var(--marker); color: var(--red); font-size: 24px; margin-top: 4px; }
.ctl { margin: 12px 0 0; font: 600 13px/1.3 var(--body); color: #6a655c; }
.ctl.touch { display: none; }
@media (hover: none) and (pointer: coarse) { .ctl.desk { display: none; } .ctl.touch { display: block; } }
@media (max-width: 380px) { .lede.four .l1 { display: none; } }
.status { color: var(--ink) !important; font-weight: 800 !important; }
/* bubbles: twice the size, cream paper, black outline */
.bub { font-size: 26px; padding: 8px 16px 10px; border-width: 4px; border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); max-width: min(560px, 86vw); white-space: normal; text-align: center; line-height: 1.12; }
.bub.cop { font-size: 20px; }
.bub.rush { font-size: 26px; }
@media (max-width: 600px) { .bub { font-size: 20px; } .bub.cop { font-size: 16px; } .bub.rush { font-size: 20px; } }
/* HUD additions */
.doughw { display: grid; justify-items: end; gap: 4px; }
.next { font: 400 12px/1.1 var(--marker); font-style: normal; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 7px; padding: 3px 7px 4px; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; position: relative; overflow: hidden; }
.next i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,210,63,.55); z-index: 0; }
.next span { position: relative; z-index: 1; }
.next.can { background: var(--green); color: var(--paper); }
.ztag { font: 400 13px/1 var(--marker); font-style: normal; background: rgba(13,14,15,.7); color: var(--paper); border: 2px solid var(--ink); border-radius: 7px; padding: 4px 8px 5px; white-space: nowrap; }
.ztag.hot { background: var(--green); }
#ticks { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.tick { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 400 18px/1 var(--marker); color: var(--paper); text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink); animation: tick-up .8s ease-out forwards; white-space: nowrap; }
@keyframes tick-up { from { opacity: 1; transform: translate(-50%, -60%); } to { opacity: 0; transform: translate(-50%, -260%); } }
.cross .imm { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--p, 0) * 1turn), transparent 0); -webkit-mask: radial-gradient(circle, transparent 17px, #000 18px); mask: radial-gradient(circle, transparent 17px, #000 18px); opacity: 0; transition: opacity .2s; }
.cross.immune .imm { opacity: .9; }
.bagm.pulse i { animation: bag-pulse .25s ease-out; }
@keyframes bag-pulse { 50% { transform: scaleY(1.35); } }
/* report */
.r-miss { margin: 0 0 8px; font: 400 21px/1.15 var(--marker); color: var(--red); padding-right: 130px; }
.grid { margin: 10px 0 0; font-size: 22px; letter-spacing: 2px; }
.grid small { display: block; font: 600 12px var(--body); color: #6a655c; letter-spacing: 0; margin-top: 2px; }
.more { margin-top: 8px; font-size: 13px; }
.more summary { cursor: pointer; color: #6a655c; font-weight: 800; }
.unlock { margin-top: 16px; border: 3px dashed var(--ink); border-radius: 10px; padding: 10px 14px; background: #fff7d6; font: 400 19px/1.2 var(--marker); display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.unlock small { font: 600 13px var(--body); color: #6a655c; }
.unlock .bar { flex: 1 1 140px; height: 12px; border: 2.5px solid var(--ink); border-radius: 7px; background: #fff; overflow: hidden; }
.unlock .bar b { display: block; height: 100%; background: var(--yellow); }
/* the buttons at the bottom of the closet and the report stay on screen while the page scrolls */
.dock { position: sticky; bottom: 0; z-index: 3; margin: 18px -26px -20px; padding: 12px 26px 14px; background: var(--paper); border-top: 3px solid var(--ink); border-radius: 0 0 7px 7px; box-shadow: 0 -10px 18px -12px rgba(13,14,15,.45); align-items: center; }
#s-report .unlock { margin: 10px 0 14px; }
.dock .btn-plain { align-self: center; }
kbd.k { display: inline-block; margin-left: 8px; padding: 2px 6px 3px; border: 2px solid var(--ink); border-bottom-width: 3px; border-radius: 5px; background: var(--paper); color: var(--ink); font: 400 12px/1 var(--type); letter-spacing: .04em; text-shadow: none; vertical-align: 3px; }
@media (hover: none) { kbd.k { display: none; } }
@media (max-width: 720px) { .dock { gap: 8px; padding: 10px 14px 12px; margin-left: -26px; margin-right: -26px; } .dock .btn-red, .dock .btn-y { font-size: 20px; padding: 9px 16px 11px; } }
.again { display: grid; justify-items: center; gap: 4px; }
.again small { font: 400 15px/1.1 var(--hand); color: #3b3832; }
.btn-plain { border: 3px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); padding: 10px 14px 12px; font: 400 18px/1 var(--marker); box-shadow: 0 4px 0 var(--ink); align-self: start; }
.tcard.mystery b { letter-spacing: 3px; }
@media (max-width: 720px) { .r-miss { padding-right: 0; } }

/* start screen over the attract shot: card left on desktop, bottom sheet on phones */
#s-start { background: linear-gradient(90deg, rgba(13,14,15,.5), rgba(13,14,15,0) 55%); }
@media (min-width: 761px) { #s-start { place-items: center start; padding-left: max(24px, 6vw); } }
@media (max-width: 760px) {
  #s-start { place-items: end center; padding: 0; background: linear-gradient(0deg, rgba(13,14,15,.55), rgba(13,14,15,0) 60%); }
  .paper.start { width: 100%; max-width: 520px; margin-top: 52vh; transform: none; border-radius: 16px 16px 0 0; border-bottom: 0; box-shadow: 0 -6px 0 var(--ink); padding: 18px 20px calc(18px + var(--safe-b)); }
  .paper.start::before { display: none; }
  .paper.start h1 { font-size: 46px; }
  .lede.four { font-size: 19px; }
  .paper.start .btn-red { width: 100%; }
}

/* ================= clarity pass: the job, bigger tutorial, hiding ================= */

/* the coach card: big while the game is paused, a reminder once you're moving */
.coach { width: min(620px, calc(100vw - 32px)); padding: 14px 18px 12px 66px; gap: 8px; border-width: 4px; }
.coach .coach-n { width: 44px; height: 44px; font-size: 15px; left: 12px; top: 12px; }
.coach h4 { margin: 0; font: 400 24px/1.1 var(--marker); color: var(--red); }
.coach p { font: 400 21px/1.28 var(--hand); }
.coach-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; font: 700 15px/1.3 var(--body); }
.coach-list:empty, .coach-keys:empty { display: none; }
.coach-keys { display: flex; flex-wrap: wrap; gap: 8px; }
.coach-keys span { display: inline-flex; gap: 6px; align-items: center; font: 700 14px var(--body); }
.coach kbd, .keystrip kbd { display: inline-block; min-width: 28px; text-align: center; padding: 3px 8px 4px; border: 2.5px solid var(--ink); border-bottom-width: 4px; border-radius: 6px; background: var(--yellow); color: var(--ink); font: 400 14px/1 var(--marker); }
.coach-go { display: none; margin: 2px 0 0 !important; font: 800 13px/1.2 var(--body) !important; color: #6a655c; }
.coach.big { top: 50% !important; bottom: auto !important; transform: translate(-50%, -50%) rotate(-.4deg); width: min(680px, calc(100vw - 28px)); padding: 20px 24px 16px 78px; box-shadow: 8px 8px 0 var(--ink); z-index: 15; }
.coach.big .coach-n { width: 52px; height: 52px; font-size: 17px; left: 14px; top: 16px; }
.coach.big h4 { font-size: 32px; }
.coach.big p { font-size: 24px; }
.coach.big .coach-list { font-size: 17px; }
.coach.big .coach-go { display: block; animation: go-pulse 1.2s ease-in-out infinite; }
@keyframes go-pulse { 50% { opacity: .5; } }
body.tutpause #cv { filter: saturate(.6) brightness(.8); }
@media (max-width: 600px) {
  .coach { padding: 10px 12px 10px 54px; } .coach .coach-n { width: 36px; height: 36px; font-size: 13px; left: 9px; top: 10px; }
  .coach h4 { font-size: 19px; } .coach p { font-size: 17px; } .coach-list { font-size: 13px; }
  .coach.big { padding: 14px 14px 12px 56px; } .coach.big h4 { font-size: 23px; } .coach.big p { font-size: 18px; } .coach.big .coach-list { font-size: 14px; }
}

/* hiding spots, labelled in the room while Compliance is around */
#marks { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
/* the last few percent: tags over the biggest bits of flour left */
#spots { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.spot { position: absolute; transform: translate(-50%, -100%); background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 9px; padding: 3px 9px 5px; font: 400 14px/1.1 var(--marker); white-space: nowrap; box-shadow: 0 3px 0 var(--ink); animation: spotbob 1.1s ease-in-out infinite; }
.spot small { display: block; font: 700 10px var(--body); text-align: center; }
.spot::after { content: ""; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--ink); }
@keyframes spotbob { 50% { margin-top: -5px; } }
@media (prefers-reduced-motion: reduce) { .spot { animation: none; } }
.mark { position: absolute; transform: translate(-50%, -100%); background: var(--green); color: var(--paper); border: 3px solid var(--ink); border-radius: 9px; padding: 4px 10px 6px; font: 400 15px/1.1 var(--marker); box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; text-shadow: 1px 1px 0 var(--ink); }
.mark::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 0; height: 0; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--ink); }
.mark small { display: block; font: 700 11px var(--body); text-shadow: none; opacity: .95; }

/* crouch: say it plainly */
.ctag { font: 400 14px/1 var(--marker); font-style: normal; background: var(--green); color: var(--paper); border: 2.5px solid var(--ink); border-radius: 7px; padding: 5px 10px 6px; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
.keystrip { display: flex; flex-wrap: wrap; gap: 6px 10px; font: 700 12px/1 var(--body); color: var(--paper); text-shadow: 1px 1px 0 var(--ink); }
.keystrip span { display: inline-flex; gap: 5px; align-items: center; }
.keystrip kbd { min-width: 22px; padding: 2px 6px 3px; font-size: 12px; text-shadow: none; }
.keystrip b.on { color: var(--green); }
@media (hover: none) and (pointer: coarse) { .keystrip { display: none; } }
.crouchb em { font-style: normal; }
.crouchb.on span { transform: rotate(180deg); }
@media (max-width: 600px) {
  .coach.big .coach-n { width: 38px; height: 38px; left: 9px; top: 13px; font-size: 13px; }
  .next { display: none !important; }
}

/* jump (phones), maps row */
.jumpb { position: fixed; right: calc(max(16px, env(safe-area-inset-right)) + 14px); bottom: calc(220px + var(--safe-b)); z-index: 6; width: 70px; height: 70px; border-radius: 50%; border: 4px solid var(--ink); background: var(--paper); color: var(--ink); font: 400 13px/1 var(--marker); box-shadow: 0 4px 0 var(--ink); display: grid; place-content: center; touch-action: none; }
.jumpb span { font-size: 24px; line-height: .9; } .jumpb em { font-style: normal; }
.maps-k { font: 400 12px/1 var(--type); letter-spacing: .1em; text-transform: uppercase; color: #6a655c; }
.qc-pips i { transition: background .2s; }
.paper.start .ctl.desk { display: none; }
.paper.start .lede.four { margin-bottom: 12px; }
/* the 2 s read-first bar on a tutorial card */
.coach-bar { display: none; height: 7px; border: 2px solid var(--ink); border-radius: 5px; background: #fff; overflow: hidden; }
.coach-bar b { display: block; height: 100%; width: 0; background: var(--green); }
.coach.big .coach-bar { display: block; }
.coach.big.wait .coach-go { animation: none; color: var(--ink); }
.coach.big.wait .coach-bar b { background: var(--yellow); }

/* ================= co-op ================= */
.gobtns { display: flex; gap: 18px 10px; flex-wrap: wrap; }
/* co-op until the relay is live: greyed out with a sticker */
.btn-y.soon { position: relative; background: #e4dfd3; color: #8a8478; border-color: #8a8478; box-shadow: 0 5px 0 #8a8478; cursor: default; }
.btn-y.soon:active { transform: none; box-shadow: 0 5px 0 #8a8478; }
.soon-tag { position: absolute; top: -11px; right: -10px; transform: rotate(5deg); padding: 4px 7px 3px; border: 2px solid var(--ink); border-radius: 5px; background: var(--red); color: var(--paper); font: 400 11px/1 var(--type); letter-spacing: .08em; text-transform: uppercase; text-shadow: none; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
.paper.coop .lede { font-size: 19px; }
.or { margin: 14px 0 6px; font: 400 13px var(--type); letter-spacing: .08em; text-transform: uppercase; color: #6a655c; }
.joinrow { display: flex; gap: 8px; }
.joinrow input { flex: 1; min-width: 0; font: 400 22px var(--marker); text-transform: uppercase; letter-spacing: .2em; border: 3px solid var(--ink); border-radius: 8px; padding: 6px 10px; background: #fff; color: var(--ink); user-select: text; -webkit-user-select: text; }
#l-link { font: 600 13px var(--body); letter-spacing: 0; text-transform: none; }
.code { color: var(--ink); background: var(--yellow); border: 3px solid var(--ink); border-radius: 8px; padding: 0 10px; letter-spacing: .15em; }
.lplayers { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 6px; }
.lplayers li, .rteam li { display: flex; gap: 8px; align-items: center; font: 400 18px var(--marker); }
.lplayers li i, .rteam li i, .team span i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 2.5px solid var(--ink); flex: 0 0 auto; }
.lplayers small, .rteam span { font: 700 12px var(--body); color: #6a655c; }
.rteam { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 4px; }
.rteam li { flex-wrap: wrap; font-size: 16px; } .rteam li.me b { color: var(--red); }
.team { display: flex; gap: 4px; flex-wrap: wrap; max-width: 260px; }
.team span { display: inline-flex; gap: 5px; align-items: center; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 7px; padding: 2px 7px 3px; font: 400 12px/1.1 var(--marker); box-shadow: 2px 2px 0 var(--ink); }
.team span.jail { background: #cfe8ff; } .team span.caught { background: var(--red); color: var(--paper); }
#tags, #pings { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.ftag { position: absolute; transform: translate(-50%, -100%); background: var(--c); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 7px; padding: 2px 8px 3px; font: 400 13px/1.1 var(--marker); white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); }
.ftag.jail { background: #cfe8ff; }
.ping { position: absolute; transform: translate(-50%, -100%); background: var(--paper); border: 3px solid var(--c); color: var(--ink); border-radius: 9px; padding: 3px 9px 4px; font: 400 15px/1.1 var(--marker); white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); animation: bub-in .2s ease-out; }
.jail { position: fixed; inset: 0; z-index: 9; pointer-events: none; background: radial-gradient(ellipse at center, rgba(200,230,255,0) 35%, rgba(200,230,255,.55) 80%, rgba(230,245,255,.85)); display: grid; place-items: end center; padding-bottom: calc(150px + var(--safe-b)); }
.jail-card { pointer-events: auto; background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--ink); padding: 12px 18px 14px; width: min(520px, calc(100vw - 32px)); display: grid; gap: 6px; }
.jail-card b { font: 400 22px var(--marker); color: #2f73e0; }
.jail-card p { margin: 0; font: 400 18px/1.25 var(--hand); }
.jail-card button { justify-self: start; font-size: 18px; padding: 8px 14px 10px; }

/* levels: a big card on the right of the start screen on wide screens, a swipeable row inside the start card on small ones */
.levels { display: none; }
.lvls { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.lvl { display: grid; grid-template-columns: 76px 1fr; column-gap: 10px; row-gap: 1px; align-items: center; border: 3px solid var(--ink); border-radius: 10px; padding: 8px 12px 9px 9px; background: #fff; color: var(--ink); }
.lvl .ic { grid-row: 1 / span 6; align-self: start; width: 76px; height: 54px; display: grid; place-items: center; font-size: 26px; border: 2.5px solid var(--ink); border-radius: 9px; background: var(--paper); overflow: hidden; }
.lvl .ic svg { display: block; width: 100%; height: 100%; }
.lvl b { font: 400 18px/1.05 var(--marker); }
.lvl .st { font: 700 12px/1.25 var(--body); margin-top: 3px; }
.lvl .st.dim { font-weight: 600; color: #6a655c; margin-top: 2px; }
.lvl .bar { display: block; height: 8px; margin-top: 4px; border: 2px solid var(--ink); border-radius: 5px; background: #fff; overflow: hidden; }
.lvl .bar b { display: block; height: 100%; background: var(--yellow); }
.lvl .chip { justify-self: start; margin-top: 4px; font: 400 11px/1 var(--type); letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 4px 7px 3px; border-radius: 5px; }
.lvl.open { background: #fff; cursor: pointer; }
.lvl.open:hover { box-shadow: 3px 3px 0 var(--ink); }
.lvl.open.picked { background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.lvl .chip.pick { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.lvl.open.picked b { font-size: 22px; }
.lvl.won { background: #e9f8e3; }
.lvl.lock { border-style: dashed; background: rgba(255,255,255,.55); }
.lvl.lock .ic { filter: saturate(.45) brightness(.95); opacity: .8; }
.lvl.won .ic { filter: none; opacity: 1; }
.lvl.lock b { color: #3b3832; }
.levels-in { margin-top: 12px; }
.lvls.row { display: flex; gap: 10px; overflow-x: auto; margin-top: 6px; padding: 2px 2px 10px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.lvls.row .lvl { flex: 0 0 236px; scroll-snap-align: start; }
@media (min-width: 1000px) {
  .levels { display: block; position: fixed; right: max(20px, 3vw); top: 50%; transform: translateY(-50%) rotate(.6deg); width: 310px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 10px; box-shadow: 8px 8px 0 var(--ink); padding: 16px 16px 14px; scrollbar-width: thin; }
  .levels h3 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 400 28px/1 var(--marker); }
  .levels h3 small { font: 400 11px/1 var(--type); letter-spacing: .1em; text-transform: uppercase; color: #6a655c; }
  .paper.start .levels-in { display: none; }
}
.lvl.soon { display: flex; align-items: center; gap: 10px; padding: 7px 10px; }
.lvl.soon .ics { display: flex; gap: 5px; }
.lvl.soon .ic { width: 34px; height: 34px; font-size: 17px; border-radius: 7px; }
.lvl.soon .st { margin: 0; font-weight: 600; color: #6a655c; }
@media (min-width: 1000px) and (max-height: 760px) { .lvl { padding-top: 6px; padding-bottom: 7px; } }
body.has-board .side-levels h3 { display: none; }
.paper.start, .levels-in { min-width: 0; }
.lvls.row { max-width: 100%; }

/* supply closet: tabs, a next-buy line, upgrade rows with level pips */
.stabs { display: flex; gap: 8px; position: sticky; top: -16px; z-index: 2; background: var(--paper); padding: 8px 0 10px; margin-bottom: 2px; }
.stabs button { flex: 1 1 0; border: 3px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); font: 400 19px/1 var(--marker); padding: 10px 8px 11px; box-shadow: 0 3px 0 var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; }
.stabs button.on { background: var(--ink); color: var(--yellow); box-shadow: 0 3px 0 #000; }
.stabs button:disabled { opacity: .45; cursor: default; }
.stabs button i { font: 700 12px/1 var(--body); font-style: normal; background: var(--red); color: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 2px 7px 3px; }
.stabs button.on i { border-color: var(--yellow); }
.snext { margin: 2px 0 10px; padding: 8px 12px; border: 3px dashed var(--ink); border-radius: 10px; background: #fff7d6; font: 400 16px/1.2 var(--marker); }
.ulist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.urow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border: 3px solid var(--ink); border-radius: 10px; background: #fff; padding: 9px 10px 10px 12px; }
.urow.staff { grid-template-columns: auto 1fr auto; }
.urow .sic { font-size: 28px; width: 44px; height: 44px; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 9px; background: var(--paper); }
.urow .ut { display: grid; gap: 2px; min-width: 0; }
.urow .lv { font: 400 11px var(--type); letter-spacing: .06em; text-transform: uppercase; color: #8a8478; display: flex; align-items: center; gap: 8px; }
.urow b { font: 400 18px/1.1 var(--marker); }
.urow small { font-size: 12.5px; color: #6a655c; font-weight: 600; }
.urow button { border: 3px solid var(--ink); border-radius: 8px; background: var(--yellow); color: var(--ink); font: 400 16px/1 var(--marker); padding: 9px 10px; box-shadow: 0 3px 0 var(--ink); min-width: 82px; white-space: nowrap; }
.urow button:disabled { background: #e4dfd3; color: #8a8478; box-shadow: none; cursor: default; }
.urow button.own { background: var(--green); color: var(--paper); }
.urow.can, .tcard.can { box-shadow: 0 0 0 3px var(--yellow); }
.urow.max { background: #f4f1e8; }
.urow.warnup { border-color: var(--red); background: #fff1ef; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.pips i.f { background: var(--ink); }
.sh { margin: 16px 0 8px; font: 400 20px/1 var(--marker); display: flex; align-items: baseline; gap: 10px; }
.sh small { font: 600 12px var(--body); color: #8a8478; }
.dockhint { font: 400 12px var(--type); color: #6a655c; letter-spacing: .06em; }
@media (max-width: 720px) { .stabs button { font-size: 16px; padding: 9px 4px 10px; } .ulist { grid-template-columns: 1fr; } }

/* ================= accounts and the board ================= */
/* the account button, top right of the start screen */
.acct { position: absolute; top: calc(14px + var(--safe-t)); right: max(16px, 3vw); z-index: 3; }
.acct-b { border: 3px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: 400 16px/1 var(--marker); padding: 7px 14px 8px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-b:active { transform: translateY(2px); box-shadow: 1px 1px 0 var(--ink); }
.acct-b.me i { font-style: normal; color: var(--green); font-size: 11px; vertical-align: 2px; }

/* the right panel on wide screens: Board | Levels */
.side-tabs { display: none; gap: 6px; margin: 0 0 12px; }
body.has-board .side-tabs { display: flex; }
.side-tabs button { flex: 1; border: 3px solid var(--ink); border-radius: 9px; background: #fff; color: var(--ink); font: 400 19px/1 var(--marker); padding: 7px 8px 8px; cursor: pointer; }
.side-tabs button.on { background: var(--ink); color: var(--yellow); }
.side .side-board { display: none; }
body.has-board .side[data-v="board"] .side-board { display: block; }
body.has-board .side[data-v="board"] .side-levels { display: none; }

/* a board: Today / This week / All time, then the rows */
.sb-tabs { display: flex; gap: 4px; margin: 0 0 8px; }
.sb-tabs button { flex: 1; border: 2px solid var(--ink); border-radius: 6px; background: #fff; color: var(--ink); font: 400 11px/1 var(--type); letter-spacing: .07em; text-transform: uppercase; padding: 6px 4px 5px; cursor: pointer; white-space: nowrap; }
.sb-tabs button.on { background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.sb { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.sb-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 8px; align-items: center; background: #fff; border: 2.5px solid var(--ink); border-radius: 8px; padding: 5px 10px 5px 5px; color: var(--ink); min-height: 36px; }
.sb-r { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); font: 400 12px/1 var(--type); background: var(--paper); }
.sb-n { font: 400 16px/1.15 var(--marker); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-n i { font: 400 9.5px/1 var(--type); font-style: normal; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 2px 5px 1px; border-radius: 4px; vertical-align: 2px; }
.sb-p { font: 400 21px/1 var(--marker); padding-right: 3px; }
.sb-s { grid-column: 2 / span 2; font: 600 11px/1.25 var(--body); color: #6a655c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-row.m1 .sb-r { background: var(--yellow); font-size: 14px; }
.sb-row.m2 .sb-r { background: #dfe4e8; }
.sb-row.m3 .sb-r { background: #eec08f; }
.sb-row.m1 { box-shadow: 3px 3px 0 var(--ink); }
.sb-row.me { background: #fff1a8; border-color: var(--red); box-shadow: 3px 3px 0 var(--red); }
.sb-gap { text-align: center; font: 400 12px/1 var(--type); color: #9a948a; letter-spacing: .3em; padding: 1px 0; }
.sb.compact .sb-row { min-height: 32px; padding: 3px 9px 3px 4px; }
.sb.compact .sb-p { font-size: 18px; }
.sb.loading .sb-row { border-color: #d6cfbd; background: linear-gradient(90deg, #fff 20%, #f3ecd8 50%, #fff 80%); background-size: 220% 100%; animation: sbload 1.1s linear infinite; }
.sb.loading .sb-r { border-color: #d6cfbd; }
@keyframes sbload { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.sb-you { margin: 9px 0 0; font: 600 12.5px/1.4 var(--body); color: #57524a; }
.sb-you b { font: 400 16px var(--marker); color: var(--ink); }
.sb-empty { margin: 10px 0; font: 400 19px/1.2 var(--hand); text-align: center; color: var(--ink); }
.sb-empty small { font: 600 12px/1.4 var(--body); color: #6a655c; }
/* small screens: a peek at today's board inside the start card */
.board-in { margin-top: 12px; }
.board-in .sb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
@media (min-width: 1000px) { .paper.start .board-in { display: none; } }

/* the sheet: log in, keep your shift, your account, the full board */
.sheet { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(13,14,15,.64); overflow-y: auto; animation: sheetbg .15s ease-out; }
.sheet-card { transform: rotate(-.6deg); animation: sheetin .26s cubic-bezier(.2, 1.4, .4, 1); }
.sheet-card h2 { margin: 2px 0 6px; padding-right: 26px; }
.sheet-card .lede { margin: 0; font-size: 18px; }
.sheet-x { position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; border: 0; background: none; color: var(--ink); font: 400 30px/1 var(--marker); cursor: pointer; }
@keyframes sheetbg { from { opacity: 0; } }
@keyframes sheetin { from { transform: translateY(18px) rotate(-2deg) scale(.96); opacity: 0; } }
.sf { display: grid; gap: 10px; margin-top: 14px; }
.sf .name { margin: 0; }
.sf .name input { font: 700 18px var(--body); padding: 10px 11px; border-radius: 8px; }
.sf input.code { width: 100%; box-sizing: border-box; font: 400 36px/1 var(--type); letter-spacing: .42em; text-indent: .42em; text-align: center; padding: 12px 4px 10px; border: 3px solid var(--ink); border-radius: 9px; background: #fff; color: var(--ink); user-select: text; -webkit-user-select: text; }
.sf input.code::placeholder { color: #cfc8b6; }
.sf .btn-red, .sf .btn-y { justify-self: stretch; }
.sf.busy { opacity: .7; pointer-events: none; }
.sf button:disabled { opacity: .65; }
.err { margin: 0; font: 700 13.5px/1.35 var(--body); color: var(--red); }
.hint { margin: 0; min-height: 17px; font: 600 12.5px/1.3 var(--body); color: #6a655c; }
.hint.ok { color: #1f7a33; }
.hint.no { color: var(--red); }
.over { margin-top: 12px; }
.over .linkb, .linkb.danger { color: var(--red); }
.linkb.sure { font-weight: 800; }
.linkb:disabled { opacity: .5; text-decoration: none; cursor: default; }
.acct-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.sheet-card.board { width: min(470px, 100%); }
.sheet-card.board .sb-body { max-height: min(62vh, 560px); overflow-y: auto; padding: 2px 4px 4px 0; }
body.sheet-on .toast { z-index: 40; }

/* the shift report: your ranks, or keep shift 1 */
.r-online { margin: 12px 0 2px; }
.rk3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rk { border: 3px solid var(--ink); border-radius: 10px; background: #fff; padding: 7px 10px 6px; display: grid; justify-items: start; row-gap: 1px; }
.rk b { font: 400 34px/1 var(--marker); }
.rk small { font: 400 11px/1.2 var(--type); letter-spacing: .1em; text-transform: uppercase; color: #57524a; }
.rk i { font: 600 11px/1.2 var(--body); font-style: normal; color: #6a655c; }
.rk3 .rk:first-child { background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.rk3.pop .rk { animation: stampin .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.rk3.pop .rk:nth-child(2) { animation-delay: .08s; }
.rk3.pop .rk:nth-child(3) { animation-delay: .16s; }
.rk3.loading .rk b { color: #b9b2a2; }
@keyframes stampin { from { transform: scale(1.5) rotate(-5deg); opacity: 0; } }
.rk-line { margin: 8px 0 0; font: 400 18px/1.3 var(--hand); }
.savecard { border: 3px dashed var(--ink); border-radius: 12px; background: #fff6d2; padding: 12px 14px 10px; display: grid; gap: 10px; }
.savecard .kick { margin: 0 0 2px; }
.savecard .sc-h { display: block; font: 400 23px/1.15 var(--marker); }
.savecard .sc-rank { color: var(--red); }
.savecard p { margin: 4px 0 0; font: 600 13.5px/1.4 var(--body); }
.savecard .small { margin: 0; font-size: 12px; }
.sf.inline { grid-template-columns: minmax(0, 1fr) auto; margin: 0; gap: 8px; }
.sf.inline input { min-width: 0; font: 700 17px var(--body); border: 3px solid var(--ink); border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--ink); user-select: text; -webkit-user-select: text; }
.sf.inline .btn-red { font-size: 20px; padding: 8px 18px 10px; }
.sf.inline .err { grid-column: 1 / -1; }
#r-board-w.online h3 small { font: 400 11px/1 var(--type); letter-spacing: .08em; text-transform: uppercase; color: #6a655c; }
@media (max-width: 600px) { .rk b { font-size: 26px; } .rk { padding: 6px 8px 5px; } .rk small { font-size: 10px; } .sheet-card .lede { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-card, .rk3.pop .rk, .sb.loading .sb-row { animation: none; } }
/* wide screens: the account button sits above the Board/Levels panel, not on it */
@media (min-width: 1000px) { body.has-board .levels { top: calc(50% + 28px); max-height: calc(100vh - 100px); } }

/* boards: the weekly rewards note and the level switch */
.sb-note { margin: 0 0 8px; padding: 7px 9px; border: 2px solid var(--ink); border-radius: 8px; background: #fff7d6; font: 600 12px/1.35 var(--body); color: var(--ink); }
.sb-note b { font-weight: 900; }
.sb-note .linkb { display: inline; font-size: 12px; color: var(--ink); }
.sb-note.in { margin: 14px 0 0; }
@media (min-width: 1000px) { .paper.start .sb-note.in { display: none; } }
.sheet-card.airdrop { width: min(480px, 100%); }
.air { margin: 12px 0 16px; padding: 0 0 0 18px; display: grid; gap: 7px; font: 500 14px/1.4 var(--body); color: var(--ink); }
.air b { font-weight: 800; }
.sf + .sf { margin-top: 18px; padding-top: 14px; border-top: 2px dashed #cfc8b6; }
.hire { margin-top: 18px; padding-top: 14px; border-top: 2px dashed #cfc8b6; }
.hire.first { margin-top: 8px; padding-top: 0; border-top: 0; }
.sheet-card.hire-sheet { width: min(460px, 100%); }
.sb-note.hire-note { background: #eef6e8; }
#r-hire { margin-top: 8px; background: #eef6e8; }
.hire .small { margin-top: 6px; }
.hire-h { margin: 0; font: 400 20px/1 var(--marker); color: var(--ink); }
.hire-link { display: flex; gap: 8px; margin-top: 10px; }
.hire-link input { flex: 1; min-width: 0; font: 600 13px var(--body); padding: 9px 10px; border: 3px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); }
.hire-link .btn-y { font-size: 18px; padding: 7px 14px 9px; box-shadow: 0 3px 0 var(--ink); }
.sb-lvls { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 2px; }
.sb-lvls button { font: 700 11px/1 var(--body); padding: 5px 8px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.sb-lvls button.on { background: var(--ink); color: var(--yellow); }

/* the share bonus on the report */
.r-share { margin: 10px 0 0; padding: 9px 11px; border: 3px solid var(--ink); border-radius: 10px; background: #fff7d6; }
.r-share .sh-line { margin: 0; font: 600 13px/1.4 var(--body); color: var(--ink); }
.r-share .sh-form { display: flex; gap: 6px; margin-top: 7px; }
.r-share .sh-form input { flex: 1; min-width: 0; font: 600 14px/1 var(--body); padding: 8px 10px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); }
.r-share .sh-note { margin: 6px 0 0; font: 700 12px/1.35 var(--body); color: #3b3833; }
.r-share .sh-note.bad { color: #b3261e; }

/* no lone last words in titles and short lines */
h1, h2, h3, h4, .r-miss, .sc-h, .lvl b, .urow small, .coach p { text-wrap: balance; }
.hire-sheet .hire-h { display: none; }
@media (min-width: 721px) { .dock { gap: 10px; } .dock .btn-plain { padding: 9px 11px 11px; font-size: 17px; } .dock .btn-red, .dock .btn-y { padding-left: 18px; padding-right: 18px; } }
/* he grabs you: half a second of shaking (the picture only) */
@keyframes grab { 0% { transform: translate(0, 0) rotate(0); } 12% { transform: translate(-14px, 9px) rotate(-1.4deg); } 25% { transform: translate(12px, -11px) rotate(1.2deg); } 38% { transform: translate(-10px, -6px) rotate(-1deg); } 52% { transform: translate(9px, 8px) rotate(.8deg); } 66% { transform: translate(-6px, 4px) rotate(-.5deg); } 82% { transform: translate(4px, -3px) rotate(.3deg); } 100% { transform: translate(0, 0) rotate(0); } }
body.grabbed #cv { animation: grab .5s linear; }
@media (prefers-reduced-motion: reduce) { body.grabbed #cv { animation: none; } }
/* his office: a dark vignette, the card at the top, out of the way of the room */
.jail.office { background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,.5) 80%, rgba(0,0,0,.85)); }
.jail.office .jail-card { max-width: 440px; }
.throwb { position: fixed; right: 18px; bottom: 250px; z-index: 6; width: 70px; height: 70px; border-radius: 50%; border: 4px solid var(--ink); background: var(--yellow); color: var(--ink); font: 400 13px/1 var(--marker); box-shadow: 0 4px 0 var(--ink); display: grid; place-items: center; }
.throwb span { font-size: 22px; } .throwb em { font-style: normal; }
#office.compact { background: none; } #office.compact .jail-card { padding: 7px 14px 8px; font: 600 13px/1.3 var(--body); box-shadow: 3px 3px 0 var(--ink); border-width: 3px; }
body.dragged #marks { display: none; }

/* ================= phones: one layout for thumbs =================
   body.phone: a touch screen whose short side is 540 px or less; body.land: held sideways (main.js phoneMode()).
   The right thumb gets one column: quality check, crouch, jump. E and THROW sit left of crouch, clear of the tool.
   What talks to you stacks under the top bar (main.js phoneStack() sets --stack-y, --warn-y, --toast-y), so the
   walkthrough, his office, the warning, toasts and Powder's lines never land on a button or on each other.
   Sideways, the walkthrough and office cards sit at the bottom between the tool and the buttons. */
:root { --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px); }
.chips { display: contents; }

/* the top bar: time, Compliance, baguettes, sound, pause; the meter under it; status chips in their own row */
body.phone .hud { grid-template-columns: minmax(0, 1fr) auto; padding: calc(8px + var(--safe-t)) calc(10px + var(--safe-r)) 0 calc(10px + var(--safe-l)); gap: 6px 8px; }
body.phone .hud-l { flex-wrap: nowrap; gap: 8px; min-width: 0; align-items: flex-start; }
body.phone .hud-r { gap: 5px; align-self: start; }
body.phone .timecard { flex: 0 0 auto; padding: 3px 8px 4px; }
body.phone .timecard b { font-size: 24px; }
body.phone .timecard.tr b { font-size: 18px; line-height: 1.33; }
body.phone .tc-s { display: none; }
body.phone .alert { flex: 1 1 auto; min-width: 0; max-width: 120px; margin-top: 4px; font-size: 10.5px; letter-spacing: .05em; }
body.phone .alert > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.phone .alert i { width: 100%; height: 11px; }
body.phone .dough { font-size: 17px; padding: 3px 8px 3px 6px; border-width: 2.5px; box-shadow: 2px 2px 0 var(--ink); }
body.phone .dough i { font-size: 13px; }
body.phone .ib { width: 38px; height: 38px; font-size: 14px; border-width: 2.5px; }
body.phone .next { display: none !important; }
body.phone .hud-c { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; width: min(100%, 440px); justify-self: center; margin: 0; }
body.phone .meter { width: 100%; height: 16px; border-width: 2.5px; box-shadow: 2px 2px 0 var(--ink); }
body.phone .meter-t { font-size: 16px; white-space: nowrap; }
body.phone .chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px 6px; min-height: 28px; }
body.phone .chips .seen, body.phone .ctag, body.phone .ztag { margin: 0; font-size: 13px; padding: 4px 9px 5px; }

/* the right thumb: quality check, crouch, jump in one column; E / THROW left of crouch */
body.phone .qc { width: 88px; height: 88px; right: calc(12px + var(--safe-r)); bottom: calc(12px + var(--safe-b)); }
body.phone .qc-t { font-size: 13px; }
body.phone .qc-pips { margin-top: 4px; gap: 4px; }
body.phone .qc-pips i { width: 9px; height: 9px; }
body.phone .crouchb { width: 66px; height: 66px; right: calc(23px + var(--safe-r)); bottom: calc(110px + var(--safe-b)); font-size: 11px; }
body.phone .crouchb span { font-size: 22px; }
body.phone .jumpb { width: 60px; height: 60px; right: calc(26px + var(--safe-r)); bottom: calc(186px + var(--safe-b)); font-size: 11px; }
body.phone .jumpb span { font-size: 20px; }
body.phone .act { width: 62px; height: 62px; right: calc(101px + var(--safe-r)); bottom: calc(112px + var(--safe-b)); display: grid; place-content: center; justify-items: center; line-height: 1; padding: 0; }
body.phone .act b { font: 400 24px/1 var(--marker); }
body.phone .act em { font: 400 10px/1 var(--marker); font-style: normal; margin-top: 2px; white-space: nowrap; }
body.phone .throwb { width: 72px; height: 72px; right: calc(98px + var(--safe-r)); bottom: calc(107px + var(--safe-b)); animation: throw-pulse 1.1s ease-in-out infinite; }
@keyframes throw-pulse { 50% { box-shadow: 0 4px 0 var(--ink), 0 0 0 8px rgba(255, 210, 63, .4); } }
@media (prefers-reduced-motion: reduce) { body.phone .throwb { animation: none; } }

/* the left corner: the tool you hold and the bag, compact */
body.phone .toolbar { left: calc(12px + var(--safe-l)); bottom: calc(12px + var(--safe-b)); width: min(200px, calc(100vw - 132px - var(--safe-l) - var(--safe-r))); max-width: none; gap: 5px; }
body.phone .tool { justify-self: start; max-width: 100%; }
body.phone .tool { padding: 5px 10px 6px 6px; gap: 0 8px; transform: rotate(-1deg); min-width: 0; }
body.phone .tool small { display: none; }
body.phone .tool-k { grid-row: auto; width: 26px; height: 26px; font-size: 15px; border-width: 2px; }
body.phone .tool b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.phone .bagm { font-size: 10.5px; gap: 6px; }
body.phone .bagm i { height: 12px; }

/* the middle: prompts and big words wrap instead of running off the screen */
body.phone .prompt { top: calc(50% + 30px); width: max-content; max-width: calc(100vw - 48px - var(--safe-l) - var(--safe-r)); white-space: normal; text-align: center; font-size: 15px; padding: 4px 10px 5px; }
body.phone .flash { width: max-content; max-width: calc(100vw - 32px); white-space: normal; text-align: center; font-size: 30px; line-height: 1.05; }
body.phone .arrow span { top: -118px; }
body.phone .arrow em { width: max-content; max-width: 84px; white-space: normal; line-height: 1.05; font-size: 13px; transform-origin: 50% 50%; }
body.phone .bub { width: max-content; max-width: min(320px, calc(100vw - 24px)); font-size: 17px; padding: 6px 12px 8px; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); }
body.phone .bub.cop { font-size: 14px; }
body.phone .bub.rush { font-size: 17px; }

/* the stack under the top bar */
body.phone .warn { top: var(--warn-y, 30%); font-size: 15px; padding: 6px 10px; gap: 8px; white-space: normal; width: max-content; max-width: calc(100vw - 32px); text-align: center; line-height: 1.15; }
body.phone .warn b { width: 30px; height: 30px; font-size: 18px; }
body.phone .toast { top: var(--toast-y, 22%); width: max-content; max-width: calc(100vw - 32px - var(--safe-l) - var(--safe-r)); white-space: normal; text-align: center; font-size: 16px; padding: 6px 12px 7px; }

/* the walkthrough: a short reminder under the top bar while you play (touches go through it), the full card while paused */
body.phone .coach { top: var(--stack-y, 120px) !important; bottom: auto !important; left: 50%; transform: translateX(-50%) rotate(-.4deg); width: calc(100vw - 20px - var(--safe-l) - var(--safe-r)); max-width: 560px; padding: 8px 12px 9px 50px; gap: 3px; border-width: 3px; box-shadow: 4px 4px 0 var(--ink); pointer-events: none; }
body.phone .coach .coach-n { width: 32px; height: 32px; left: 9px; top: 8px; font-size: 12px; border-width: 2.5px; }
body.phone .coach h4 { font-size: 17px; }
body.phone .coach p { font-size: 16px; line-height: 1.22; }
body.phone .coach:not(.big) :is(.coach-list, .coach-keys, .coach-bar, .coach-go, #b-skip) { display: none; }
body.phone .coach.top { top: auto !important; bottom: calc(92px + var(--safe-b)) !important; } /* in the supply closet: just above "Back to work" */
body.phone .coach.big { top: var(--stack-y, 120px) !important; bottom: auto !important; transform: translateX(-50%) rotate(-.4deg); max-height: calc(100vh - var(--stack-y, 120px) - var(--safe-b) - 14px); max-height: calc(100dvh - var(--stack-y, 120px) - var(--safe-b) - 14px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 12px 56px; gap: 7px; border-width: 4px; box-shadow: 6px 6px 0 var(--ink); pointer-events: auto; }
body.phone .coach.big .coach-n { width: 38px; height: 38px; left: 10px; top: 12px; font-size: 13px; }
body.phone .coach.big h4 { font-size: 22px; }
body.phone .coach.big p { font-size: 18px; }
body.phone .coach.big .coach-list { font-size: 14px; }
body.phone .coach-keys { gap: 6px 10px; }
body.phone .coach-keys span { font-size: 13px; }
body.phone .coach kbd { font-size: 12px; padding: 3px 7px 4px; white-space: nowrap; }
body.phone .coach.big #b-skip { display: inline-flex; align-items: center; min-height: 34px; margin-top: 2px; padding: 6px 14px; border: 2px solid #c9c1ae; border-radius: 99px; text-decoration: none; font-size: 13px; color: #57524a; }
/* while a card holds the game the controls step aside; they come back, highlighted, when you go */
body.phone.tutpause :is(.toolbar, .qc, .jumpb, .crouchb, .act, .throwb, .prompt, .arrow, .warn, #bubbles) { visibility: hidden; }

/* his office (and the co-op fridge): the card under the top bar */
body.phone .jail { place-items: start center; padding: var(--stack-y, 120px) calc(10px + var(--safe-r)) 0 calc(10px + var(--safe-l)); }
body.phone .jail-card { width: 100%; max-width: 560px; padding: 9px 12px 10px; gap: 4px; border-width: 3px; box-shadow: 4px 4px 0 var(--ink); }
body.phone .jail-card b { font-size: 18px; }
body.phone .jail-card p { font-size: 16px; line-height: 1.22; }
body.phone .jail.office .jail-card { max-width: 560px; }

/* the supply closet and the shift report: the whole screen, the buttons pinned to the bottom edge */
body.phone :is(#s-shop, #s-report) { padding: 0; display: block; }
body.phone :is(#s-shop, #s-report) .paper-wide { width: 100%; min-height: 100%; margin: 0; transform: none; border: 0; border-radius: 0; box-shadow: none; padding: calc(16px + var(--safe-t)) calc(16px + var(--safe-r)) 0 calc(16px + var(--safe-l)); display: flex; flex-direction: column; }
body.phone .paper-wide::before { display: none; }
body.phone .paper-wide .dock { margin: auto calc(-16px - var(--safe-r)) 0 calc(-16px - var(--safe-l)); padding: 10px calc(12px + var(--safe-r)) calc(10px + var(--safe-b)) calc(12px + var(--safe-l)); border-radius: 0; }
body.phone .stabs { top: 0; }
body.phone #s-report .dock { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
body.phone #s-report .dock > button { grid-column: span 2; margin: 0; min-width: 0; align-self: stretch; padding: 10px 6px 12px; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 0 var(--ink); }
body.phone #s-report .dock > #b-again { grid-column: span 4; font-size: 21px; }
body.phone #s-report .dock > #b-leave { grid-column: 1 / -1; }
body.phone .hire-x { display: none; }
body.phone :is(#b-tut, #c-back, #l-leave) { display: inline-flex; align-items: center; min-height: 34px; }

/* ---------- sideways ---------- */
body.phone.land .hud { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; }
body.phone.land .hud-c { grid-column: 2; grid-row: 1; width: min(36vw, 340px); }
body.phone.land .hud-r { grid-column: 3; justify-self: end; }
body.phone.land .qc { width: 80px; height: 80px; }
body.phone.land .crouchb { width: 60px; height: 60px; right: calc(22px + var(--safe-r)); bottom: calc(100px + var(--safe-b)); }
body.phone.land .jumpb { width: 54px; height: 54px; right: calc(25px + var(--safe-r)); bottom: calc(170px + var(--safe-b)); }
body.phone.land .act { width: 58px; height: 58px; right: calc(94px + var(--safe-r)); bottom: calc(101px + var(--safe-b)); }
body.phone.land .throwb { width: 66px; height: 66px; right: calc(90px + var(--safe-r)); bottom: calc(97px + var(--safe-b)); }
body.phone.land .toolbar { width: 210px; }
body.phone.land .arrow span { top: -98px; }
/* the reminder and the office card: bottom middle, between the tool (left) and the buttons (right) */
body.phone.land .coach:not(.big) { top: auto !important; bottom: calc(10px + var(--safe-b)) !important; left: calc(12px + var(--safe-l) + 232px); right: calc(12px + var(--safe-r) + 176px); width: auto; max-width: 520px; margin: 0 auto; transform: rotate(-.4deg); }
body.phone.land .coach.top { bottom: calc(84px + var(--safe-b)) !important; }
body.phone.land .coach.big { width: min(660px, calc(100vw - 32px - var(--safe-l) - var(--safe-r))); }
body.phone.land .jail { place-items: end center; padding: 0 calc(12px + var(--safe-r) + 176px) calc(10px + var(--safe-b)) calc(12px + var(--safe-l) + 232px); }
body.phone.land .jail-card { max-width: 520px; }
body.phone.land #s-report .dock { grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); }
body.phone.land #s-report .dock > button, body.phone.land #s-report .dock > #b-again { grid-column: auto; }
body.phone.land .coach:not(.big) h4 { font-size: 15px; }
body.phone.land .coach:not(.big) p { font-size: 14px; line-height: 1.2; }
body.phone.land .jail-card p { font-size: 14px; }

/* phones: bigger targets for the small links (the hit area grows, the text stays where it is) */
body.phone :is(.paper.start, .sheet-card) :is(.linkb, .links a, .sb-note .linkb) { padding: 8px 3px; margin: -8px -3px; }
body.phone .links a + a { margin-left: 8px; }
body.phone .sb-tabs button { min-height: 34px; }
/* the start screen held sideways: a compact card on the left, Powder on the right */
body.phone.land #s-start { display: grid; place-items: start; padding: 10px 12px 10px calc(14px + var(--safe-l)); background: linear-gradient(90deg, rgba(13,14,15,.5), rgba(13,14,15,0) 60%); }
body.phone.land .paper.start { width: min(440px, 56vw); max-width: none; margin: auto 0; transform: rotate(-.6deg); border: 4px solid var(--ink); border-radius: 10px; box-shadow: 6px 6px 0 var(--ink); padding: 14px 18px 14px; }
body.phone.land .paper.start h1 { font-size: 40px; margin-bottom: 6px; }
body.phone.land .lede.four { font-size: 16px; margin-bottom: 10px; }
body.phone.land .lede.four .snap { font-size: 18px; }
body.phone.land .paper.start .btn-red { width: 100%; }
body.phone .paper.start .links a { display: inline-block; min-width: 34px; text-align: center; }
/* the E button says what it does here (tablets too) */
.act { display: grid; place-content: center; justify-items: center; line-height: 1; padding: 0; }
.act em { font: 400 10px/1 var(--marker); font-style: normal; margin-top: 2px; white-space: nowrap; }
