/* SHLORP multiplayer: the lobby, the score strip, the turn banner, reactions. Same flyer look as the title card. */
.mp { --y: #ffcf3a; --r: #c8102e; --ink: #1a0a05; --cream: #fff6dc; font-family: "Fredoka", "Nunito", system-ui, sans-serif; }
.mp [hidden] { display: none !important; }
.mp-btn { font: inherit; font-weight: 700; border: 0; border-radius: 999px; cursor: pointer; padding: 12px 20px; font-size: 17px;
  background: var(--r); color: #fff; box-shadow: 0 4px 0 #6d0616; letter-spacing: .3px; -webkit-tap-highlight-color: transparent; }
.mp-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #6d0616; }
.mp-btn.alt { background: var(--cream); color: var(--ink); box-shadow: 0 4px 0 #b9a77a; }
.mp-btn:disabled { background: rgba(26,10,5,.1); color: rgba(26,10,5,.5); box-shadow: none; cursor: default; }

/* the title: two doors on the sale sign. Chunky, tactile, a little bouncy. */
#mpMenu { position: fixed; z-index: 30; transform: translate(-50%, -50%) rotate(-1.43deg); display: flex; gap: calc(14px * var(--s, 1)); --s: 1; }
.mp-door { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: calc(7px * var(--s)); padding: calc(6px * var(--s)) calc(10px * var(--s)) calc(6px * var(--s)) calc(7px * var(--s));
  border-radius: calc(18px * var(--s)); border: calc(3px * var(--s)) solid #3c030c; cursor: pointer; text-align: left; font: inherit;
  box-shadow: 0 calc(5px * var(--s)) 0 #3c030c, 0 calc(9px * var(--s)) calc(14px * var(--s)) rgba(0,0,0,.25);
  transition: transform .12s cubic-bezier(.3,1.6,.5,1), box-shadow .12s, filter .12s; -webkit-tap-highlight-color: transparent; outline: none; }
.mp-door .ic { flex: none; display: block; width: calc(40px * var(--s)); line-height: 0; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.mp-door .ic svg { width: 100%; height: auto; display: block; }
.mp-door .tx { display: flex; flex-direction: column; min-width: 0; }
.mp-door b { font-family: "Luckiest Guy", sans-serif; font-weight: 400; font-size: calc(18px * var(--s)); line-height: 1; letter-spacing: .5px; white-space: nowrap; padding-top: calc(3px * var(--s)); }
.mp-door small { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: calc(10.5px * var(--s)); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-door.solo { background: linear-gradient(#e0263e, #b3122e); color: #fff; }
.mp-door.friends { background: linear-gradient(#2a1a10, #120802); color: #ffd23a; }
.mp-door.friends small { color: #fff4d0; }
.mp-door:hover, .mp-door:focus-visible { transform: translateY(calc(-3px * var(--s))) scale(1.03); filter: brightness(1.08); }
.mp-door:focus-visible { box-shadow: 0 calc(6px * var(--s)) 0 #3c030c, 0 0 0 calc(4px * var(--s)) #fff, 0 0 0 calc(8px * var(--s)) #c4122a; }
.mp-door:active, .mp-door.go { transform: translateY(calc(5px * var(--s))) scale(.97); box-shadow: 0 calc(1px * var(--s)) 0 #3c030c; }
.mp-door.go .ic { animation: mpHop .35s cubic-bezier(.3,1.8,.5,1); }
#mpMenu.in .mp-door { animation: mpDoorIn .5s cubic-bezier(.2,1.7,.4,1) both; }
#mpMenu.in .mp-door.friends { animation-delay: .09s; }
#mpMenu.in .mp-door.friends .ic { animation: mpWiggle 2.8s ease-in-out 1.2s infinite; }
@keyframes mpDoorIn { from { transform: translateY(22px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mpHop { 40% { transform: translateY(-9px) rotate(-12deg) scale(1.2); } }
@keyframes mpWiggle { 0%, 82%, 100% { transform: none; } 86% { transform: rotate(-14deg) scale(1.12); } 90% { transform: rotate(12deg) scale(1.12); } 94% { transform: rotate(-6deg); } }

/* the lobby: a flyer taped to the end-cap */
#mpLobby { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(8, 10, 16, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.mp-card { width: min(420px, 100%); max-height: 100%; overflow: auto; background: var(--y); color: var(--ink); border: 4px solid var(--r);
  border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.45); padding: 0 0 18px; transform: rotate(-1deg); }
.mp-card .band { background: var(--r); color: #fff; text-align: center; padding: 10px 12px 7px; font-family: "Luckiest Guy", sans-serif; font-size: 22px; letter-spacing: 1px; border-radius: 12px 12px 0 0; }
.mp-card .body { padding: 14px 18px 0; display: flex; flex-direction: column; gap: 12px; }
/* the invite ticket: room code, the link, copy right next to it */
.mp-ticket { background: #fffaf0; border-radius: 14px; padding: 12px 12px 12px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 3px 0 rgba(26,10,5,.18); position: relative; border: 2px dashed rgba(200,16,46,.45); }
.mp-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mp-ticket-top .code { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.mp-ticket-top .k { font-family: "Courier Prime", monospace; font-weight: 700; font-size: 12px; letter-spacing: 2px; opacity: .6; }
.mp-ticket-top b { font-family: "Luckiest Guy", sans-serif; font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: 4px; color: var(--r); }
.mp-link { width: 100%; font: inherit; font-family: "Courier Prime", monospace; font-weight: 700; font-size: 13px; text-align: center; color: rgba(26,10,5,.75);
  background: #f1ead9; border: 2px solid rgba(26,10,5,.12); border-radius: 10px; padding: 8px 10px; cursor: pointer; transition: background .2s, border-color .2s; }
.mp-link span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-link.done { background: #e3f6e6; border-color: #2f9e5b; }
.mp-copy { flex: none; font: inherit; font-weight: 700; font-size: 15px; letter-spacing: .5px; border: 0; border-radius: 999px; padding: 11px 16px; cursor: pointer;
  background: var(--ink); color: var(--y); min-width: 118px; box-shadow: 0 3px 0 rgba(0,0,0,.25); transition: background .2s; }
.mp-copy.done { background: #2f9e5b; color: #fff; }
.mp-copy:active, .mp-link:active { transform: translateY(1px); }
.mp-send { width: 100%; }
.mp-label { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; opacity: .7; margin-bottom: -6px; }
#mpName { font: inherit; font-size: 20px; font-weight: 700; padding: 10px 14px; border-radius: 12px; border: 3px solid var(--ink); background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.mp-seats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-seat { background: rgba(255,255,255,.65); border-radius: 12px; padding: 9px 10px; display: flex; align-items: center; gap: 8px; font-weight: 700; min-height: 26px; min-width: 0; }
.mp-seat .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-seat.invite { font: inherit; font-weight: 700; color: var(--r); background: rgba(255,255,255,.3); border: 2px dashed rgba(200,16,46,.5); cursor: pointer; justify-content: center; }
.mp-seat.invite:active { transform: translateY(1px); }
.mp-seat .tag { font-size: 11px; background: var(--ink); color: var(--y); border-radius: 6px; padding: 1px 6px; margin-left: auto; }
.mp-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.mp-row { display: flex; gap: 8px; }
.mp-row .mp-btn { flex: 1; }
.mp-note { text-align: center; font-size: 14px; opacity: .8; }
.mp-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.mp-card { position: relative; }

#mpBanner { position: fixed; z-index: 26; left: 0; right: 0; top: 30%; text-align: center; pointer-events: none;
  font-family: "Luckiest Guy", sans-serif; font-size: clamp(34px, 11vw, 70px); color: var(--y); -webkit-text-stroke: 2px #2a0208;
  text-shadow: 0 5px 0 var(--r), 0 10px 24px rgba(0,0,0,.5); opacity: 0; transform: scale(.6) rotate(-4deg); transition: opacity .25s, transform .35s cubic-bezier(.2,1.6,.4,1); }
#mpBanner.on { opacity: 1; transform: scale(1) rotate(-4deg); }
#mpBanner small { display: block; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: clamp(14px, 4vw, 20px); -webkit-text-stroke: 0; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.7); margin-top: 6px; }
#mpReact { position: fixed; z-index: 27; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 5px; width: min(440px, calc(100vw - 20px)); background: rgba(12,16,24,.62); padding: 8px 8px; border-radius: 22px; }
#mpReact button { border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; display: flex; align-items: center; }
#mpReact button:active { transform: scale(.88); }

/* the end of the night: the standings */
#mpFinal { position: fixed; inset: 0; z-index: 35; display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); pointer-events: none; }
#mpFinal .mp-card { pointer-events: auto; transform: rotate(1deg); }
.mp-rank { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; padding: 6px 4px; border-bottom: 2px dashed rgba(26,10,5,.2); }
.mp-rank:last-child { border-bottom: 0; }
.mp-rank .pl { font-family: "Luckiest Guy", sans-serif; font-weight: 400; width: 34px; color: var(--r); }
.mp-rank .tot { margin-left: auto; font-family: "VT323", monospace; font-size: 30px; line-height: 1; }
.mp-toast { position: fixed; z-index: 50; left: 50%; top: 18%; transform: translateX(-50%); background: var(--cream); color: var(--ink); font-weight: 700;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.35); pointer-events: none; opacity: 0; transition: opacity .2s; max-width: 90vw; text-align: center; }
.mp-toast.on { opacity: 1; }

/* the trollbox: the game's own speech bubbles, signed by whoever said it */
#mpReact .talk { width: 44px; height: 38px; border-radius: 12px; background: var(--y); justify-content: center; box-shadow: 0 3px 0 #a8730c; }
#mpReact .talk svg { width: 28px; }
.mp-say { background: #fff; color: #111; border: 3px solid #111; border-radius: 16px 16px 4px 16px; padding: 7px 11px; font-family: "Comic Neue", "Comic Sans MS", sans-serif;
  font-weight: 700; font-size: 16px; line-height: 1.2; box-shadow: 0 4px 0 rgba(0,0,0,.25); animation: mpPop .25s cubic-bezier(.2,1.6,.4,1); word-break: break-word; transition: opacity .4s, transform .4s; }
.mp-say b { font-family: "Courier Prime", monospace; font-size: 13px; letter-spacing: .5px; }
.mp-say.out { opacity: 0; transform: translateY(-8px); }
@keyframes mpPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#mpChat { position: fixed; inset: 0; z-index: 45; display: flex; align-items: flex-end; justify-content: center; background: rgba(8,10,16,.35); padding: 10px; }
.mp-chat-card { width: min(460px, 100%); background: var(--y); border: 4px solid var(--r); border-radius: 18px; padding: 10px 12px 12px; box-shadow: 0 14px 40px rgba(0,0,0,.45);
  margin-bottom: env(safe-area-inset-bottom); }
.mp-chat-h { display: flex; align-items: center; gap: 8px; font-family: "Luckiest Guy", sans-serif; color: var(--r); font-size: 20px; margin-bottom: 8px; }
.mp-chat-h span { flex: 1; }
.mp-chat-mini { font: inherit; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 12px; border: 0; background: rgba(26,10,5,.1); color: var(--ink); border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.mp-x2 { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--ink); cursor: pointer; padding: 0 4px; }
.mp-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; max-height: 34vh; overflow: auto; }
.mp-quick button { font: inherit; font-family: "Comic Neue", "Comic Sans MS", sans-serif; font-weight: 700; font-size: 15px; background: #fff; color: #111; border: 2px solid #111;
  border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.mp-quick button:active { transform: scale(.95); }

/* everybody's sheet: the monitor over a real lane, printed on the house paper */
#mpBoard { position: fixed; inset: 0; z-index: 44; display: flex; align-items: center; justify-content: center; padding: 10px; background: rgba(8,10,16,.55); cursor: pointer; }
.mp-sheet { width: min(760px, 100%); background: #fbf6e4; border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.5); padding: 10px 10px 8px; color: #2a1408; }
.mp-sheet-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px 8px; }
.mp-sheet-h .t { font-family: "Luckiest Guy", sans-serif; color: #c4122a; font-size: clamp(16px, 4.5vw, 22px); }
.mp-sheet-h .s { font-family: "Courier Prime", monospace; font-weight: 700; font-size: 11px; opacity: .7; }
.mp-sheet-f { text-align: center; font-family: "Courier Prime", monospace; font-size: 11px; opacity: .5; padding-top: 6px; }
.mp-grid { display: grid; grid-template-columns: minmax(58px, 1.6fr) repeat(10, minmax(0, 1fr)) minmax(30px, 1.1fr); border: 2px solid #c4122a; border-radius: 4px; overflow: hidden; }
.mp-grid > div { border-right: 1px solid rgba(196,18,42,.35); border-bottom: 1px solid rgba(196,18,42,.35); min-width: 0; }
.mp-grid .hd { background: #c4122a; color: #fbf6e4; font-family: "Courier Prime", monospace; font-weight: 700; font-size: 11px; text-align: center; padding: 2px 0; }
.mp-grid .hd.nm { text-align: left; padding-left: 6px; }
.mp-grid .nm { display: flex; align-items: center; gap: 4px; padding: 0 4px; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 12px; overflow: hidden; }
.mp-grid .nm span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-grid .nm .mp-dot { width: 10px; height: 10px; }
.mp-grid .fr { display: flex; flex-direction: column; font-family: "Courier Prime", monospace; font-weight: 700; }
.mp-grid .mk { display: flex; justify-content: flex-end; font-size: 10px; min-height: 13px; }
.mp-grid .mk i { font-style: normal; min-width: 10px; text-align: center; border-left: 1px solid rgba(196,18,42,.25); }
.mp-grid .cm { text-align: center; font-size: 12px; min-height: 15px; padding-bottom: 2px; }
.mp-grid .tot { display: flex; align-items: center; justify-content: center; font-family: "VT323", monospace; font-size: 20px; }
.mp-grid .up, .mp-grid .fr.now { background: #ffe58a; }
.mp-grid .off { opacity: .45; }

/* NOW SERVING: the deli counter's sign, swung down on two chains. Red LED dot-matrix, beige plastic box. */
  pointer-events: none; --seat: #e0163a; }
  0% { transform: translate(-50%, -120%) rotate(-9deg); }
  16% { transform: translate(-50%, var(--drop, 24vh)) rotate(6deg); }
  26% { transform: translate(-50%, var(--drop, 24vh)) rotate(-3.5deg); }
  36% { transform: translate(-50%, var(--drop, 24vh)) rotate(1.8deg); }
  46%, 84% { transform: translate(-50%, var(--drop, 24vh)) rotate(0deg); }
  100% { transform: translate(-50%, -120%) rotate(4deg); }
}
  border: 2px solid #b8ae92; }
  box-shadow: inset 0 0 0 2px #c8102e; }
  border-bottom: 4px solid var(--seat); }
  text-shadow: 0 0 6px #ff3b1f, 0 0 18px rgba(255, 59, 31, .55); }
  background: radial-gradient(circle at 50% 50%, transparent 44%, rgba(23,4,4,.42) 50%) 0 0 / 4px 4px; }
@keyframes mpBlink { 50% { opacity: .25; } }

/* die-cut word stickers: thick white cut line, a dark drop, the house display face */
.mp-stk { display: inline-block; font-family: "Luckiest Guy", sans-serif; font-size: 14px; line-height: 1; letter-spacing: .5px; white-space: nowrap;
  padding: 7px 9px 5px; border-radius: 9px; background: var(--bg); color: var(--fg); border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px #120802, 0 3px 0 2px #120802; transition: transform .1s; }
#mpReact button:nth-child(odd) .mp-stk { transform: rotate(-3deg); } #mpReact button:nth-child(even) .mp-stk { transform: rotate(2.5deg); }
#mpReact button:active .mp-stk { transform: scale(.9) rotate(0); }
.mp-stk.big { font-size: 30px; padding: 10px 14px 7px; border-radius: 14px; border-width: 4px; box-shadow: 0 0 0 3px #120802, 0 6px 0 3px #120802, 0 14px 24px rgba(0,0,0,.35); }


/* ── LOADING: the aisle at 2:14 AM, the sale flyer, a frozen bird sliding into three cans ───────── */
#boot.sb-boot { inset: 0; left: 0; top: 0; transform: none; display: flex; align-items: center; justify-content: center; padding: 20px; white-space: normal;
  font: 16px/1.2 "Fredoka", system-ui, sans-serif; letter-spacing: 0; text-shadow: none; overflow: hidden; color: #3c030c;
  background: radial-gradient(ellipse at 50% 18%, #22303e 0%, #0b1018 62%); }
#boot.sb-boot i { animation: none; box-shadow: none; border-radius: 0; background: none; width: auto; height: auto; }
.sb-aisle { position: absolute; inset: 0; pointer-events: none; }
.sb-tubes { position: absolute; top: 5%; left: 50%; transform: translateX(-50%); display: flex; gap: 14vw; }
#boot.sb-boot .sb-tubes i { display: block; width: 18vw; max-width: 200px; height: 7px; border-radius: 4px; background: #e6fff1; box-shadow: 0 0 18px 4px rgba(230,255,241,.45), 0 0 60px 18px rgba(143,216,255,.12); }
#boot.sb-boot .sb-tubes i.bad { animation: sbFlicker 4.1s steps(1) infinite; }
@keyframes sbFlicker { 0%, 61%, 66%, 100% { opacity: 1; } 62%, 64% { opacity: .15; } 63% { opacity: .7; } }
.sb-shelf { position: absolute; top: 9%; bottom: 0; width: 30vw; opacity: .5; filter: saturate(.75) brightness(.65) blur(.4px);
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(22% - 10px), #c8cdd4 calc(22% - 10px) calc(22% - 4px), #6d7580 calc(22% - 4px) 22%),
    repeating-linear-gradient(90deg, #c4122a 0 26px, #ffd23a 26px 44px, #2a62c9 44px 66px, #fff6dc 66px 80px, #2f9e5b 80px 102px, #e0913a 102px 118px, #8fd8ff 118px 132px); }
.sb-shelf.l { left: 0; clip-path: polygon(0 0, 100% 22%, 100% 70%, 0 100%); }
.sb-shelf.r { right: 0; clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 70%); }
.sb-shelf b { display: none; }
.sb-floor { position: absolute; left: -20%; right: -20%; bottom: 0; height: 46%; transform-origin: 50% 100%; transform: perspective(380px) rotateX(58deg);
  background: repeating-conic-gradient(#dcd2ba 0 25%, #93ab8c 0 50%) 0 0 / 70px 70px; opacity: .22;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 92%); mask-image: linear-gradient(to top, #000 10%, transparent 92%); }

.sb-card { position: relative; width: min(440px, 92vw); background: #ffd23a; border-radius: 22px; border: 6px solid #fff; outline: 5px solid #c4122a; outline-offset: -14px;
  box-shadow: 0 14px 0 rgba(0,0,0,.25), 0 30px 70px rgba(0,0,0,.55); transform: rotate(-1.4deg); padding: 0 22px 18px; text-align: center; animation: sbSway 6.2s ease-in-out infinite; }
@keyframes sbSway { 50% { transform: rotate(-.6deg) translateY(-4px); } }
.sb-band { margin: 18px -22px 6px; background: #c4122a; color: #fff; font-family: "Luckiest Guy", sans-serif; font-size: 21px; letter-spacing: 1px; padding: 9px 0 6px; }
.sb-logo { position: relative; display: inline-block; font-family: "Luckiest Guy", sans-serif; font-size: clamp(50px, 15vw, 84px); line-height: .92; color: #b3122e;
  -webkit-text-stroke: 10px #3c030c; paint-order: stroke fill; letter-spacing: 1px; padding-top: 6px; }
.sb-drip { position: absolute; left: var(--x); top: 84%; width: .1em; height: var(--h); background: #b3122e; border: .03em solid #3c030c; border-top: 0; border-radius: 0 0 .06em .06em;
  transform-origin: top; animation: sbDrip 3.3s ease-in-out infinite; z-index: -1; }
.sb-drip:nth-child(2) { animation-delay: -.8s; } .sb-drip:nth-child(3) { animation-delay: -1.9s; } .sb-drip:nth-child(4) { animation-delay: -1.2s; } .sb-drip:nth-child(5) { animation-delay: -2.6s; }
.sb-drip::after { content: ''; position: absolute; left: 50%; bottom: -.08em; width: .14em; height: .14em; margin-left: -.07em; border-radius: 50%; background: #b3122e; border: .03em solid #3c030c; }
@keyframes sbDrip { 0%, 100% { transform: scaleY(.75); } 50% { transform: scaleY(1.15); } }
.sb-sub { font-family: "Luckiest Guy", sans-serif; font-size: clamp(22px, 6.4vw, 30px); color: #111; margin-top: clamp(26px, 7vw, 40px); }

.sb-lane { position: relative; height: 74px; margin: 10px 4px 6px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(#efe6cf, #dcd2ba); box-shadow: inset 0 0 0 3px #3c030c, inset 0 -10px 0 rgba(0,0,0,.06); }
.sb-lane::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, #6e1622 0 10px, transparent 10px 22px); opacity: .35; }
/* the runner spans the lane up to the cans; sliding it is a transform, so it keeps moving while the page is busy booting */
.sb-runner { position: absolute; left: 0; right: 90px; bottom: 6px; height: 50px; animation: sbRun 3s cubic-bezier(.35,.1,.6,1) infinite; will-change: transform, opacity; }
.sb-bird { position: absolute; right: -6px; bottom: 0; width: 72px; animation: sbSpin 3s cubic-bezier(.35,.1,.6,1) infinite; will-change: transform; }
.sb-cans { position: absolute; right: 12px; bottom: 6px; display: flex; gap: 2px; align-items: flex-end; }
.sb-can { width: 26px; transform-origin: 50% 100%; }
.sb-can.c2 { width: 30px; }
.sb-can.c1 { animation: sbHit1 3s ease-out infinite; } .sb-can.c2 { animation: sbHit2 3s ease-out infinite; } .sb-can.c3 { animation: sbHit3 3s ease-out infinite; }
.sb-can .p { animation: sbEyes 3s steps(1) infinite; }
@keyframes sbRun { 0% { transform: translateX(-100%); opacity: 1; } 52% { transform: translateX(-4%); } 58% { transform: translateX(0); } 80% { transform: translateX(1%); opacity: 1; } 90%, 100% { transform: translateX(1%); opacity: 0; } }
@keyframes sbSpin { 0% { transform: rotate(0); } 52% { transform: rotate(-420deg); } 58%, 100% { transform: rotate(-470deg); } }
@keyframes sbHit1 { 0%, 53% { transform: none; } 58% { transform: translate(-10px, -16px) rotate(-38deg); } 66% { transform: translate(-14px, 0) rotate(-80deg); } 86% { transform: translate(-14px, 0) rotate(-80deg); opacity: 1; } 92% { opacity: 0; } 96%, 100% { transform: none; opacity: 1; } }
@keyframes sbHit2 { 0%, 54% { transform: none; } 58% { transform: translateY(-30px) rotate(25deg); } 64% { transform: translateY(-4px) rotate(8deg); } 70% { transform: translateY(0) rotate(-6deg); } 78%, 100% { transform: none; } }
@keyframes sbHit3 { 0%, 55% { transform: none; } 60% { transform: translate(8px, -10px) rotate(30deg); } 68% { transform: translate(12px, 0) rotate(84deg); } 86% { transform: translate(12px, 0) rotate(84deg); opacity: 1; } 92% { opacity: 0; } 96%, 100% { transform: none; opacity: 1; } }
@keyframes sbEyes { 0% { transform: translate(-1px, 0); } 30% { transform: translate(1px, -1px); } 50% { transform: translate(-1.5px, 1px); } 56% { transform: translate(0, 0) scale(1.4); } 85% { transform: translate(1px, 1px); } }

.sb-meter { display: flex; align-items: center; gap: 10px; background: #170404; border-radius: 10px; padding: 7px 10px; margin: 10px 0 8px; box-shadow: inset 0 2px 8px #000, 0 3px 0 #3c030c; }
.sb-meter .k { font-family: "VT323", monospace; font-size: 22px; line-height: 1; color: #ff3b1f; text-shadow: 0 0 6px #ff3b1f, 0 0 16px rgba(255,59,31,.5); letter-spacing: 1px; }
#boot.sb-boot s { display: block; flex: 1; width: auto; height: 14px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(255,59,31,.12) 0 8px, transparent 8px 11px); overflow: hidden; }
#boot.sb-boot u { display: block; height: 100%; width: 4%; border-radius: 0; background: repeating-linear-gradient(90deg, #ff3b1f 0 8px, transparent 8px 11px);
  filter: drop-shadow(0 0 4px #ff3b1f); transition: width .4s ease-out; }
#boot.sb-boot b#bootStep { display: block; font: 700 16px/1.2 "Comic Neue", "Comic Sans MS", sans-serif; color: #3c030c; letter-spacing: 0; }
.sb-tip { margin: 8px 0 0; min-height: 2.5em; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 14px; color: #6b4300; }
.sb-tip.in { animation: sbTip .35s ease-out; }
@keyframes sbTip { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sb-retry { margin-top: 6px; font: 700 15px "Fredoka", sans-serif; border: 0; border-radius: 999px; padding: 11px 18px; background: #c4122a; color: #fff; box-shadow: 0 4px 0 #6d0616; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .sb-card, .sb-runner, .sb-bird, .sb-can, .sb-can .p, .sb-drip, .sb-tubes i { animation: none !important; } .sb-runner { transform: translateX(-30%); } }
/* the app's lobby: a big room code, one button, and the link stays out of sight */
#mpLobby.app #mpCopy, #mpLobby.app #mpLink { display: none; }
#mpLobby.app .mp-ticket-top { justify-content: center; }
#mpLobby.app .mp-ticket-top b { font-size: 40px; }
.mp-invite { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; font: inherit; font-weight: 700; font-size: 18px; letter-spacing: .6px; color: var(--y); background: var(--ink);
  border: 0; border-radius: 999px; padding: 13px 16px; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.28); -webkit-tap-highlight-color: transparent; }
.mp-invite[hidden] { display: none; }
.mp-invite svg { width: 21px; height: 21px; flex: none; margin-top: -2px; }
.mp-invite:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.28); }
.mp-ticket-sub { display: flex; justify-content: center; gap: 22px; margin-top: 1px; }
.mp-ticket-sub[hidden] { display: none; }
.mp-ticket-sub button { font: inherit; font-weight: 700; font-size: 12px; letter-spacing: .6px; color: rgba(26,10,5,.62); background: none; border: 0; padding: 8px 2px; cursor: pointer; border-bottom: 0; text-decoration: underline; text-decoration-color: rgba(200,16,46,.45); text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; }
.mp-joincode { display: flex; gap: 8px; }
.mp-joincode[hidden] { display: none; }
.mp-joincode input { flex: 1; min-width: 0; font-family: "Luckiest Guy", sans-serif; font-size: 22px; letter-spacing: 3px; text-align: center; padding: 8px 8px 5px; border-radius: 12px; border: 3px solid var(--ink); background: #fff; color: var(--r); }
.mp-joincode input::placeholder { color: rgba(26,10,5,.28); letter-spacing: 2px; font-size: 18px; }
.mp-joincode button { flex: none; font: inherit; font-weight: 700; font-size: 16px; color: var(--y); background: var(--ink); border: 0; border-radius: 12px; padding: 0 18px; cursor: pointer; }
.mp-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mp-qr[hidden] { display: none; }
.mp-qr-img { width: min(74vw, 300px); aspect-ratio: 1; }
.mp-qr-img svg { display: block; width: 100%; height: 100%; }
.mp-qr-t { font-weight: 700; font-size: 16px; color: var(--ink); }
.mp-qr-n { font-weight: 600; font-size: 13px; color: rgba(26,10,5,.6); }
.mp-qr button { margin-top: 4px; font: inherit; font-weight: 700; font-size: 15px; color: var(--y); background: var(--ink); border: 0; border-radius: 999px; padding: 10px 28px; cursor: pointer; }
/* while the QR is up, it's the whole card: hold the phone out and everyone at the table scans it */
#mpLobby.qr .mp-ticket-top, #mpLobby.qr .mp-invite, #mpLobby.qr .mp-ticket-sub, #mpLobby.qr .body > :not(.mp-ticket) { display: none; }
.mp-emo { display: block; overflow: visible; }
/* the final card moves up out of the dock's way on a phone */

/* THE END OF THE NIGHT: the receipt-on-a-flyer poster, and the ways to send it */
#mpFinal { position: fixed; inset: 0; z-index: 35; display: flex; align-items: center; justify-content: center; padding: max(14px, env(safe-area-inset-top)) 14px calc(var(--dockH, 0px) + 14px);
  background: rgba(8, 10, 16, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); overflow-y: auto; pointer-events: auto; }
.mp-final-in { display: flex; gap: 18px; align-items: center; justify-content: center; max-width: 100%; }
.mp-poster { flex: none; width: min(420px, calc((100vh - var(--dockH, 0px) - 250px) * .8), calc(100vw - 28px)); min-width: 230px; aspect-ratio: 1080 / 1350;
  border-radius: 10px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.55); transform: rotate(-1deg); background: #ffd23a; display: flex; align-items: center; justify-content: center;
  animation: mpPosterIn .5s cubic-bezier(.2,1.4,.4,1); }
.mp-poster-c { width: 100%; height: 100%; display: block; }
.mp-printing { font: 400 18px "VT323", monospace; color: #3c030c; letter-spacing: 1px; animation: mpBlink 1s steps(2) infinite; padding: 20px; text-align: center; }
@keyframes mpPosterIn { from { transform: translateY(30px) rotate(4deg) scale(.9); opacity: 0; } to { transform: rotate(-1deg); opacity: 1; } }
.mp-final-acts { display: flex; flex-direction: column; gap: 9px; width: min(320px, 100%); }
.mp-btn.big { font-size: 19px; padding: 14px 20px; background: #ffd23a; color: #3c030c; box-shadow: 0 5px 0 #a8730c; font-family: "Luckiest Guy", sans-serif; font-weight: 400; letter-spacing: .5px; }
.mp-final-acts .mp-row { display: flex; gap: 8px; } .mp-final-acts .mp-row .mp-btn { flex: 1; font-size: 15px; padding: 11px 10px; }
.mp-final-acts .mp-note { color: #fff; opacity: .8; }
.mp-links { display: flex; justify-content: center; gap: 8px; color: rgba(255,255,255,.55); font: 600 13px "Fredoka", sans-serif; }
.mp-links button { background: none; border: 0; color: rgba(255,255,255,.85); font: inherit; text-decoration: underline; cursor: pointer; padding: 2px; }
@media (max-width: 759px) {
  #mpFinal { align-items: flex-start; }
  .mp-final-in { flex-direction: column; gap: 12px; }
  .mp-poster { width: min(calc(100vw - 40px), calc((100vh - var(--dockH, 0px) - 230px - env(safe-area-inset-top, 0px)) * .8)); }
}
/* the log is two lines on a phone: the game needs the screen */
@media (max-width: 759px) { .mp-log { max-height: 4.2em; } }
@media (min-width: 760px) { .mp-poster { width: min(520px, calc((100vh - 60px) * .8)); } #mpFinal { padding-right: 370px; } }
@media (min-width: 760px) and (max-width: 1100px) { .mp-final-in { flex-direction: column; } .mp-poster { width: min(440px, calc((100vh - 260px) * .8)); } }

/* ═══ THE APP'S HUD ═══ glass over a real aisle, chunky first-party buttons, and nothing on the glass that isn't earning its place.
   Everything here is scoped to .tb-app, so the website keeps the sale flyer and the paper sheet. */
.tb-app { --glass-light: linear-gradient(180deg, rgba(255,255,255,.84) 0%, rgba(255,250,240,.74) 38%, rgba(255,246,232,.8) 100%);
  --glass-dark: linear-gradient(180deg, rgba(64,40,46,.74) 0%, rgba(26,12,16,.74) 44%, rgba(32,16,20,.82) 100%);
  --blur: blur(22px) saturate(1.9);
  --rim: inset 0 1px 0 rgba(255,255,255,.62), inset 0 -.5px 0 rgba(255,255,255,.2), inset 0 0 0 .5px rgba(255,255,255,.24);
  --drop: 0 10px 28px rgba(12,6,4,.34);
  --cran: linear-gradient(180deg, #f8485f 0%, #e0263e 46%, #bb1229 100%); --cran-lip: #7d0a1f;
  --gold: linear-gradient(180deg, #ffe07a 0%, #ffc531 48%, #f2a50f 100%); --gold-lip: #a96a04; --ink: #2a1215; }
.tb-glass-reset { background: none; }

/* when the lens is running, the page only draws what's written on the glass (tools/glass.js) */
.tb-lg #tbTitle .tag, .tb-lg #tbBack, .tb-lg .mp-door { background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; border: 0 !important; }
.tb-lg #tbTitle .tag, .tb-lg #tbBack, .tb-lg .mp-door { text-shadow: 0 1px 3px rgba(0,0,0,.42); }

/* the Menu says as little as the TAP FLICK switch does, opposite it. Its logic is ios-app/www-src/navigation.js */
html.tb-native #tbNavMenu { left: max(12px, env(safe-area-inset-left)); right: auto; top: max(0px, calc(env(safe-area-inset-top) - 24px)); min-width: 44px; min-height: 44px; padding: 0 6px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-radius: 0; color: rgba(251,246,228,.72); font: 700 11.5px/44px "Courier Prime", monospace; letter-spacing: .3px; text-transform: uppercase; text-align: left; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
html.tb-native:has(#mpLobby:not([hidden])) #tbNavMenu { display: none; }

/* the title: the name up top, the cans in the middle doing their act, the doors under your thumb */
#tbTitle { position: fixed; z-index: 29; left: 0; right: 0; top: max(calc(env(safe-area-inset-top) + 4px), 16px); display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: tbDrop .7s cubic-bezier(.2,1.5,.4,1) both; }
#tbTitle[hidden] { display: none; }
.tb-logo { width: min(82vw, 400px); height: auto; overflow: visible; filter: drop-shadow(0 12px 18px rgba(10,4,2,.4)); transform-origin: 50% 80%; animation: tbBreathe 3.236s ease-in-out infinite; }
#tbEye .p { animation: tbLook 6.47s ease-in-out infinite; }
#tbTitle .tag { margin-top: -2px; padding: 5px 14px 5px; border-radius: 999px; background: var(--glass-dark); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--rim), 0 4px 14px rgba(0,0,0,.25);
  color: #fff6dc; font: 700 12px/1 "Fredoka", sans-serif; letter-spacing: 2.6px; }
@keyframes tbDrop { from { opacity: 0; transform: translateY(-34px) scale(.92); } }
@keyframes tbBreathe { 50% { transform: scale(1.012) rotate(-.4deg); } }
@keyframes tbLook { 0%, 38%, 100% { transform: translate(0, 0); } 42%, 58% { transform: translate(-9px, 3px); } 62%, 80% { transform: translate(8px, -3px); } }
.tb-app #mpMenu { left: max(14px, env(safe-area-inset-left)) !important; right: max(14px, env(safe-area-inset-right)); top: auto !important; bottom: calc(max(env(safe-area-inset-bottom), 10px) + 34px); width: auto !important; max-width: 480px; margin: 0 auto;
  transform: none; flex-direction: column; gap: 12px; --s: 1.16; }
.tb-app .mp-door { flex: none; width: 100%; padding: 12px 18px; gap: 14px; border-radius: 24px; border: 0; justify-content: flex-start; transition: transform .14s cubic-bezier(.3,1.6,.5,1), box-shadow .14s, filter .14s; -webkit-tap-highlight-color: transparent; }
.tb-app .mp-door .ic { width: 50px; }
.tb-app .mp-door b { font-size: 25px; }
.tb-app .mp-door small { font-size: 13px; opacity: .9; }
.tb-app .mp-door.solo { background: var(--cran); color: #fff; box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 -2px 6px rgba(120,6,28,.45), 0 6px 0 var(--cran-lip), 0 16px 26px rgba(50,4,10,.4); }
.tb-app .mp-door.friends { background: var(--glass-dark); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: #ffd76a; box-shadow: var(--rim), 0 6px 0 rgba(14,8,8,.72), 0 16px 26px rgba(10,4,2,.34); }
.tb-app .mp-door.friends small { color: #fff4d8; }
.tb-app .mp-door:active, .tb-app .mp-door.go { transform: translateY(5px) scale(.985); filter: brightness(1.04); }
.tb-app .mp-door.solo:active, .tb-app .mp-door.solo.go { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), 0 1px 0 var(--cran-lip), 0 4px 10px rgba(50,4,10,.4); }
.tb-app .mp-door.friends:active, .tb-app .mp-door.friends.go { box-shadow: var(--rim), 0 1px 0 rgba(14,8,8,.72); }
#tbLegal { position: fixed; z-index: 29; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: max(env(safe-area-inset-bottom), 8px); display: flex; }
#tbLegal button { padding: 8px 10px; background: none; border: 0; color: rgba(255,255,255,.9); font: 600 12px/1 "Fredoka", sans-serif; text-shadow: 0 1px 3px rgba(0,0,0,.7); -webkit-tap-highlight-color: transparent; }
#tbLegal button[hidden] { display: none; }
#tbLegal[hidden] { display: none; }


/* the lobby: a sheet of glass over the aisle */
.tb-app #mpLobby { align-items: flex-end; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
#tbTags { display: none; }
.tb-app #tbTags { display: block; position: absolute; inset: 0; pointer-events: none; }
.tb-canmark { position: absolute; left: 0; top: 0; will-change: transform; }
.tb-canmark .mk { display: flex; flex-direction: column; align-items: center; gap: 3px; animation: tbMarkBob 1.618s ease-in-out infinite; }
.tb-canmark.new .mk { animation: tbMarkPop .5s cubic-bezier(.2,1.7,.4,1) both, tbMarkBob 1.618s ease-in-out .5s infinite; }
.tb-canmark b { padding: 2px 6px 3px; border-radius: 7px; color: #fff; background: var(--c); font: 700 10px/1 "Fredoka", sans-serif; letter-spacing: .4px; box-shadow: 0 0 0 1.5px #fff, 0 3px 6px rgba(0,0,0,.35); }
.tb-canmark i { display: block; width: 11px; height: 11px; background: var(--c); border: 2px solid #fff; border-radius: 2px 2px 4px 2px; transform: rotate(45deg); box-shadow: 1px 1px 4px rgba(0,0,0,.45); }
@keyframes tbMarkBob { 50% { transform: translateY(-3px); } }
@keyframes tbMarkPop { from { transform: translateY(14px) scale(.2); opacity: 0; } }
.tb-app #tbBack { align-self: center; max-width: 100%; padding: 10px 17px; border: 0; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ffd76a; font: 700 14.5px/1.1 "Fredoka", sans-serif; background: var(--glass-dark); box-shadow: var(--rim), 0 6px 16px rgba(10,4,2,.3); -webkit-tap-highlight-color: transparent; transition: transform .12s cubic-bezier(.3,1.6,.5,1); }
.tb-app #tbBack:active { transform: scale(.96); }
.tb-app #mpLobby .mp-card { width: 100%; max-width: 520px; border: 0; outline: 0; border-radius: 34px 34px 0 0; background: var(--glass-light); -webkit-backdrop-filter: blur(30px) saturate(2); backdrop-filter: blur(30px) saturate(2); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.9), inset 0 0 0 .5px rgba(255,255,255,.5), 0 -14px 44px rgba(10,4,2,.36); transform: none; animation: tbRise .46s cubic-bezier(.2,1.22,.4,1) both; padding-bottom: max(env(safe-area-inset-bottom), 14px); color: var(--ink); }
@keyframes tbRise { from { transform: translateY(70%); opacity: .4; } }
.tb-app #mpLobby .band { background: none; color: rgba(42,18,21,.62); font: 700 12px/1 "Fredoka", sans-serif; letter-spacing: 2.4px; padding: 20px 12px 0; }
.tb-app #mpLobby .band::before { content: ""; position: absolute; left: 50%; top: 8px; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(42,18,21,.2); }
.tb-app #mpLobby .mp-x { top: 12px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: rgba(42,18,21,.1); color: var(--ink); font-size: 20px; line-height: 30px; padding: 0; }
.tb-app #mpLobby .body { padding: 8px 18px 0; gap: 11px; }
.tb-app .mp-ticket { background: none; border: 0; box-shadow: none; padding: 0; gap: 10px; }
.tb-app .mp-ticket-top .k { display: none; }
.tb-app .mp-ticket-top b { font-size: 36px !important; letter-spacing: 4px; color: #d81e36; text-shadow: 0 3px 0 #7d0a1f, 0 8px 16px rgba(120,10,30,.22); line-height: 1; padding-top: 6px; }
.tb-app .mp-invite { background: var(--cran); color: #fff; font-size: 19px; padding: 15px 16px; border-radius: 22px; box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 -2px 6px rgba(120,6,28,.4), 0 5px 0 var(--cran-lip), 0 12px 20px rgba(120,10,30,.26); transition: transform .12s cubic-bezier(.3,1.6,.5,1), box-shadow .12s; font-family: "Fredoka", sans-serif; }
.tb-app .mp-invite:active { transform: translateY(4px) scale(.99); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), 0 1px 0 var(--cran-lip); }
.tb-app .mp-ticket-sub { gap: 10px; margin: 3px 0 0; }
.tb-app .mp-ticket-sub button { flex: 1; text-decoration: none; padding: 10px 6px; border-radius: 14px; background: rgba(255,255,255,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 3px rgba(42,18,21,.12); color: var(--ink); font-size: 13px; letter-spacing: .3px; }
.tb-app .mp-label { opacity: .62; font-size: 11px; letter-spacing: 1.4px; margin: 2px 0 -6px 4px; }
.tb-app #mpName { background: rgba(255,255,255,.72); border: 0; border-radius: 16px; font-size: 18px; padding: 11px 14px; box-shadow: inset 0 1px 3px rgba(42,18,21,.16), inset 0 0 0 .5px rgba(42,18,21,.12); }
.tb-app #mpName:placeholder-shown { animation: tbNameCall 1.618s ease-in-out infinite; }
@keyframes tbNameCall { 0%, 100% { box-shadow: inset 0 1px 3px rgba(42,18,21,.16), 0 0 0 2px rgba(245,170,20,.85); } 50% { box-shadow: inset 0 1px 3px rgba(42,18,21,.16), 0 0 0 3px rgba(245,170,20,.45), 0 0 16px rgba(245,170,20,.5); } }
.tb-app .mp-seat { background: rgba(255,255,255,.55); border: 0; border-radius: 15px; box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 3px rgba(42,18,21,.1); }
.tb-app .mp-seat.invite { background: none; box-shadow: inset 0 0 0 1.5px rgba(216,30,54,.4); border: 0; color: #c4122a; }
.tb-app #mpStart { background: var(--gold); color: var(--ink); font-family: "Luckiest Guy", sans-serif; font-weight: 400; font-size: 21px; padding: 15px 16px 11px; border-radius: 22px; box-shadow: inset 0 1.5px 0 rgba(255,255,255,.8), inset 0 -2px 6px rgba(190,110,0,.35), 0 5px 0 var(--gold-lip), 0 12px 20px rgba(160,100,0,.26); transition: transform .12s cubic-bezier(.3,1.6,.5,1), box-shadow .12s; }
.tb-app #mpStart:active:not(:disabled) { transform: translateY(4px) scale(.99); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.8), 0 1px 0 var(--gold-lip); }
.tb-app #mpStart:disabled { background: rgba(42,18,21,.08); color: rgba(42,18,21,.46); box-shadow: inset 0 0 0 .5px rgba(42,18,21,.1); font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 16px; padding: 15px 16px; }
.tb-app .mp-note { font-size: 13px; color: rgba(42,18,21,.68); margin: 0; padding-bottom: 2px; }
.tb-app .mp-joincode input { background: rgba(255,255,255,.8); border: 0; box-shadow: inset 0 1px 3px rgba(42,18,21,.16); border-radius: 16px; }
.tb-app .mp-joincode button { background: var(--ink); border-radius: 16px; }
.tb-app .mp-qr-img { padding: 10px; background: #fffaf0; border-radius: 22px; box-shadow: 0 8px 22px rgba(42,18,21,.18); box-sizing: border-box; }
.tb-app .mp-qr button { background: var(--ink); color: #ffd76a; }

/* the sheet: report, block, remove */
#tbSheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; padding: 0 10px max(env(safe-area-inset-bottom), 12px); background: rgba(10,6,8,.5); animation: tbFade .18s both; }
#tbSheet[hidden] { display: none; }
.tb-rules { width: 100%; padding: 4px 6px 2px; text-align: center; font-weight: 400; }
.tb-rules i { position: absolute; left: 50%; top: -132px; width: 112px; height: 132px; margin-left: -56px; background: url(/carl.webp) center top / 112px auto no-repeat; pointer-events: none; }
.tb-rules > b { display: block; font: 400 29px/1 "Luckiest Guy", sans-serif; color: #d81e36; letter-spacing: .4px; padding-top: 5px; }
.tb-rules small { display: block; margin: 3px 0 11px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; color: rgba(42,18,21,.55); }
.tb-rules ol { list-style: none; margin: 0; padding: 0; text-align: left; font-size: 15px; font-weight: 500; line-height: 1.3; }
.tb-rules li { padding: 9px 12px; margin-bottom: 6px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(42,18,21,.08); }
.tb-rules li:last-child { margin-bottom: 0; }
.tb-rules li b { font-weight: 700; }
@keyframes tbFade { from { opacity: 0; } }
.tb-sheet { position: relative; width: 100%; max-width: 440px; border-radius: 26px; padding: 14px 10px 10px; background: linear-gradient(180deg, #fffdf8, #fbf3e6); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.9), 0 16px 40px rgba(10,4,2,.4); color: var(--ink); font-family: "Fredoka", sans-serif; animation: tbRise .3s cubic-bezier(.2,1.2,.4,1) both; }
.tb-sheet .h { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 700; padding: 2px 8px 12px; }
.tb-sheet .b { display: flex; flex-direction: column; gap: 7px; }
.tb-sheet button { font: 600 16px/1 "Fredoka", sans-serif; color: var(--ink); padding: 15px 12px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(42,18,21,.1); -webkit-tap-highlight-color: transparent; }
.tb-sheet button:active { transform: scale(.985); background: rgba(255,255,255,.85); }
.tb-sheet button.bad { color: #c4122a; }
.tb-sheet button.ok { background: var(--gold); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.8), 0 4px 0 var(--gold-lip); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.tb-sheet button.cancel { background: #efe5d8; box-shadow: none; font-weight: 700; margin-top: 3px; }

/* the end of the night */
.tb-app #mpFinal { background: rgba(10,6,8,.3); }
.tb-app #mpFinal .mp-btn { font-family: "Fredoka", sans-serif; font-weight: 700; border-radius: 20px; transition: transform .12s cubic-bezier(.3,1.6,.5,1); }
.tb-app #mpFinal .mp-btn.big { background: var(--cran); color: #fff; box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), 0 5px 0 var(--cran-lip), 0 12px 20px rgba(50,4,10,.34); }
.tb-app #mpFinal .mp-btn.alt { background: var(--glass-light); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 12px rgba(10,4,2,.2); }
.tb-app #mpRematch { background: var(--gold); color: var(--ink); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.8), 0 5px 0 var(--gold-lip), 0 12px 20px rgba(160,100,0,.26); }
.tb-app #mpToast { background: var(--glass-dark); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--rim), var(--drop); border-radius: 18px; }
@media (prefers-reduced-motion: reduce) { .tb-logo, #tbEye .p, #tbTitle { animation: none; } }

/* the app opens like this: icon, then the name on the cranberry (the launch image), then Big Carl comes up to wait with you */
.tb-native #boot.sb-boot { background: repeating-conic-gradient(from 0deg at 50% 46%, rgba(255,150,120,.07) 0 15deg, transparent 15deg 30deg), radial-gradient(circle at 50% 46%, #ff5468 0%, #d61834 48%, #70061c 100%); padding: 0; }
.tb-native .sb-aisle, .tb-native .sb-band, .tb-native .sb-sub, .tb-native .sb-lane { display: none !important; }
.tb-native .sb-card { position: static; width: auto; background: none; border: 0; outline: 0; box-shadow: none; transform: none; animation: none; padding: 0; }
.tb-native .sb-logo { position: fixed; left: 50%; top: 50%; width: 41vh; max-width: 90vw; aspect-ratio: 2598 / 1392; transform: translate(-50%, -50%); font-size: 0; line-height: 0; color: transparent; text-shadow: none; -webkit-text-stroke: 0; background: url(/logo.webp) center / contain no-repeat; animation: none; }
.tb-native .sb-logo .sb-drip { display: none; }
.tb-native #boot.sb-boot::after { content: ""; position: fixed; z-index: 1; left: 50%; bottom: 0; width: min(46vw, 200px); aspect-ratio: 420 / 1005; margin-left: calc(min(46vw, 200px) / -2); background: url(/carl.webp) center top / contain no-repeat; transform: translateY(58%); animation: tbCarlUp .7s cubic-bezier(.2,1.5,.4,1) .2s both, tbCarlBob 3.236s ease-in-out .9s infinite; filter: drop-shadow(0 -6px 18px rgba(60,4,14,.45)); }
@keyframes tbCarlUp { from { transform: translateY(100%); } }
@keyframes tbCarlBob { 50% { transform: translateY(56.5%) rotate(-.8deg); } }
.tb-native .sb-meter { position: fixed; z-index: 2; left: 50%; top: calc(50% + 12.5vh); width: min(76vw, 320px); transform: translateX(-50%); margin: 0; background: rgba(30,6,12,.5); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 18px rgba(60,4,14,.35); }
.tb-native #boot.sb-boot #bootStep { position: fixed; z-index: 2; left: 0; right: 0; top: calc(50% + 12.5vh + 46px); text-align: center; color: #fff6dc; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 14px; text-shadow: 0 1px 3px rgba(60,4,14,.7); }
.tb-native .sb-tip { display: none; }
.tb-native .sb-retry { position: fixed; z-index: 3; left: 50%; top: calc(50% + 12.5vh + 74px); transform: translateX(-50%); white-space: nowrap; }

/* ── THE KIT: game pieces, not web pieces. Ink outline, candy shine on top, a hard shadow underneath, and a squash and
   stretch when anything pops. Spacing 8 · 13 · 21 · 34 · 55; motion .382 s pop, .618 s settle, 1.618 s bob (φ). ─────── */
:root { --ink: #3c030c; --gold: #ffd23a; --cream: #fffdf4; }
@keyframes tbPop { 0% { transform: scale(.35); opacity: 0; } 40% { transform: scale(1.12, .88); opacity: 1; } 70% { transform: scale(.95, 1.06); } 100% { transform: none; } }
@keyframes tbBob { 50% { transform: translateY(-3px); } }
/* a face tag: a candy disc in the seat colour with the face inside */
.tb-tag { --c: #e0163a; --c2: #ff5a74; --c3: #9e0c26; position: relative; display: inline-grid; place-items: center; flex: none; box-sizing: border-box; width: 38px; height: 38px; padding: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, var(--c2), var(--c) 58%, var(--c3)); border: 2.5px solid var(--ink);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 3px 0 var(--ink), 0 7px 11px rgba(0,0,0,.35); }
.tb-tag::after { content: ""; position: absolute; z-index: 2; left: 17%; top: 5%; width: 66%; height: 34%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0)); pointer-events: none; }
.tb-tag .mp-emo { position: relative; z-index: 1; width: 76%; height: 76%; filter: drop-shadow(0 1.5px 0 rgba(60,3,12,.5)); }
.tb-tag.sm { width: 30px; height: 30px; border-width: 2px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2), 0 2px 0 var(--ink); }
.mp-seat .tb-tag.sm { width: 26px; height: 26px; margin: -3px 0; }
.mp-seat { gap: 6px; }
/* the lobby: your face beside your name, all eighteen a tap away */
.tb-namerow { position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tb-namerow #mpName { flex: 1; min-width: 0; width: auto; }
.tb-face { width: 46px; height: 46px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .1s; }
.tb-face:active { transform: translateY(3px) scale(.96); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 0 0 var(--ink); }
.tb-face::before { content: ""; position: absolute; z-index: 3; right: -5px; bottom: -5px; width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5' fill='none' stroke='%233c030c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.tb-faces { position: relative; z-index: 6; flex: 1 0 100%; box-sizing: border-box; display: grid;   /* opens in the card, pushing the bowlers down: the card grows to fit it */
  grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 13px;
  border-radius: 21px; border: 2.5px solid var(--ink); background: linear-gradient(180deg, var(--cream), #f6ecd6);
  box-shadow: inset 0 3px 0 #fff, 0 4px 0 var(--ink), 0 13px 21px rgba(0,0,0,.3); transform-origin: 23px -8px; animation: tbPop .382s cubic-bezier(.2,1.5,.4,1); }
.tb-faces[hidden] { display: none; }
.tb-faces button { position: relative; aspect-ratio: 1; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); background: radial-gradient(circle at 50% 30%, #fff, #fff6dc 60%, #efdfb8); }
.tb-faces button .mp-emo { width: 74%; height: 74%; }
.tb-faces button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.tb-faces button.on { background: radial-gradient(circle at 50% 35%, var(--c2), var(--c) 58%, var(--c3)); box-shadow: 0 0 0 3px var(--gold), 0 0 0 5.5px var(--ink), 0 4px 0 5.5px var(--ink); transform: scale(1.08); }
/* the HUD layer during a room game: it lets taps through to the lane except on its own pieces */
#tbHud { position: fixed; inset: 0; z-index: 30; pointer-events: none; font-family: "Fredoka", sans-serif; }
#tbHud[hidden] { display: none; }
#tbHud.tb-final { z-index: 36; }                                     /* on the final receipt the bench and buttons sit over its backdrop */
.tb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* the bench: everyone in one row under the score sheet, like the seats behind a real lane */
.tb-bench { position: absolute; left: 0; right: 0; top: 0; height: 46px; transition: opacity .382s, transform .382s cubic-bezier(.3,.9,.3,1); }
.tb-bench .tb-tag { position: absolute; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .1s; }
.tb-bench .tb-tag:active { transform: translateY(2px) scale(.94); }
.tb-bench .tb-tag.up { animation: tbBob 1.618s ease-in-out infinite;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 0 0 3px var(--gold), 0 0 0 5.5px var(--ink), 0 4px 0 5.5px var(--ink), 0 0 26px 8px rgba(255,210,58,.55); }
.tb-bench .tb-tag b { position: absolute; z-index: 3; right: -10px; bottom: -8px; min-width: 20px; height: 17px; padding: 3px 4px 0; box-sizing: border-box; border-radius: 9px; text-align: center;
  font: 400 11.5px/1 "Luckiest Guy", sans-serif; color: var(--ink); background: radial-gradient(circle at 50% 20%, #fff1a8, #ffc531 55%, #e8920a);
  border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
.tb-bench .tb-tag.off { filter: grayscale(.9); opacity: .5; }
.tb-bench .tb-tag.muted::before { content: ""; position: absolute; z-index: 4; left: -6px; top: -6px; width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--ink); box-sizing: border-box;
  background: #fff linear-gradient(135deg, transparent 43%, #c4122a 43% 57%, transparent 57%); }
/* while a cartoon has the screen, or you're typing, the bench steps aside */
.tb-quiet .tb-bench { opacity: 0; transform: translateY(-13px); }
.tb-quiet .tb-bench .tb-tag { pointer-events: none; }
/* words: a cream comic bubble drops out of whoever said it, newest on top, older ones slide down and fade */
#tbWords { position: absolute; inset: 0; pointer-events: none; transition: opacity .382s; }
.tb-quiet #tbWords { opacity: 0; }
.tb-card #tbWords { opacity: 0; transition-duration: .12s; }          /* a TV card has the tube: the words step aside */
.tb-word { position: absolute; left: 13px; top: 0; box-sizing: border-box; max-width: 61.8vw; padding: 7px 12px 8px; border-radius: 14px; background: var(--cream); color: var(--ink);
  border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink), 0 9px 14px rgba(0,0,0,.3); font: 600 14.5px/1.2 "Fredoka", sans-serif;
  transform-origin: var(--tx, 18px) 0; transition: top .382s cubic-bezier(.3,.9,.3,1), left .382s cubic-bezier(.3,.9,.3,1), opacity .382s, transform .382s; }
.tb-word p { margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tb-word em { position: relative; top: 1px; margin-right: 6px; font: 400 12.5px/1 "Luckiest Guy", sans-serif; font-style: normal; letter-spacing: .5px; }
.tb-word.pop { animation: tbPop .382s cubic-bezier(.2,1.5,.4,1) both; }
.tb-word .tl { display: none; position: absolute; top: -12.5px; left: var(--tx, 10px); width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 11px solid var(--ink); }
.tb-word .tl::after { content: ""; position: absolute; left: -5px; top: 4px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--cream); }
.tb-word.new .tl { display: block; }
.tb-word.o1 { opacity: .82; } .tb-word.o2 { opacity: .5; } .tb-word.o3 { opacity: .35; }
.tb-word.out { opacity: 0; transform: translateY(-8px) scale(.96); }
.tb-final .tb-word p { -webkit-line-clamp: 1; }                       /* on the receipt: one line each, in the strip beside the buttons */
/* stickers: die-cut, out of the sender's tag, squash, stretch, float off */
.tb-stk { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; animation: tbStk 1.618s ease-out forwards; }
.tb-stk .mp-emo { display: block; width: 100%; height: 100%;
  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 4px 3px rgba(0,0,0,.45)); }
@keyframes tbStk { 0% { opacity: 0; transform: scale(.2); } 12% { opacity: 1; transform: scale(1.35, 1.15); } 20% { transform: scale(.92, 1.08); } 28% { transform: none; }
  45% { opacity: 1; transform: translate(3px, -21px) rotate(-8deg); } 100% { opacity: 0; transform: translate(13px, -76px) rotate(12deg) scale(.85); } }
@media (prefers-reduced-motion: reduce) { .tb-word.pop, .tb-stk, .tb-bench .tb-tag.up { animation-duration: .01s; } }
/* the two buttons: candy, on the right wall, ending on the golden line */
#tbRail { position: absolute; display: flex; flex-direction: column; gap: 6px; pointer-events: auto; transition: opacity .382s, filter .382s; }
#tbRail.dim { opacity: .45; filter: saturate(.55); }
.tb-rb { position: relative; display: grid; place-items: center; width: 55px; height: 55px; padding: 0; border-radius: 50%; border: 2.5px solid var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 4px 0 var(--ink), 0 11px 17px rgba(0,0,0,.4); transition: transform .1s, box-shadow .1s; }
.tb-rb::before { content: ""; position: absolute; left: 15%; top: 6%; width: 70%; height: 38%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,0)); pointer-events: none; }
.tb-rb .mp-emo, .tb-rb svg { position: relative; z-index: 1; width: 34px; height: 34px; }
.tb-rb.react { background: radial-gradient(circle at 50% 30%, #fff1a8, #ffc531 55%, #e8920a); }
.tb-rb.talk { background: radial-gradient(circle at 50% 30%, #ff8094, #e0163a 55%, #9c0b24); }
.tb-rb:active, .tb-rb.on { transform: translateY(3px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 0 1px 0 var(--ink), 0 6px 10px rgba(0,0,0,.35); }
.tb-rb.on { box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 0 1px 0 var(--ink), 0 0 0 4px rgba(255,210,58,.6), 0 6px 10px rgba(0,0,0,.35); }
.tb-final #tbRail { flex-direction: row; left: auto; top: auto; right: 13px; bottom: max(13px, env(safe-area-inset-bottom)); }
/* the sticker tray: six above your thumb, "+" for all eighteen */
#tbReactTray { position: absolute; display: grid; grid-template-columns: repeat(3, 42px); gap: 6px; padding: 8px; pointer-events: auto; border-radius: 21px; border: 2.5px solid var(--ink);
  background: radial-gradient(circle at 50% 0%, #ff8094, #e0163a 45%, #9c0b24); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 4px 0 var(--ink), 0 13px 21px rgba(0,0,0,.45); transform-origin: 85% 110%; }
#tbReactTray[hidden] { display: none; }
#tbReactTray.pop { animation: tbPop .382s cubic-bezier(.2,1.4,.4,1) both; }
#tbReactTray.all { grid-template-columns: repeat(6, 42px); }
#tbReactTray button { width: 42px; height: 42px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); background: radial-gradient(circle at 50% 30%, #fff, #fff6dc 60%, #efdfb8); }
#tbReactTray button .mp-emo { width: 30px; height: 30px; }
#tbReactTray button:active { transform: translateY(2px) scale(.94); box-shadow: 0 1px 0 var(--ink); }
#tbReactTray button.x { display: none; }
#tbReactTray.all button.x { display: grid; }
#tbReactTray button.more { order: 99; font: 400 22px/1 "Luckiest Guy", sans-serif; color: var(--ink); padding-top: 4px; background: radial-gradient(circle at 50% 30%, #fff1a8, #ffc531 55%, #e8920a); }
#tbReactTray.all button.more { display: none; }
#tbReactTray:not(.all) button.more { position: absolute; right: -10px; top: -10px; width: 30px; height: 30px; font-size: 18px; }
/* toasts: a cream ticket with an ink edge, just above the bench, never on the lane */
.mp-toast { top: calc(var(--benchTop, 18vh) - 13px); transform: translate(-50%, -100%); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink), 0 9px 14px rgba(0,0,0,.3);
  font-family: "Fredoka", sans-serif; font-weight: 600; }
.tb-toast-low .mp-toast { top: calc(var(--benchB, 18vh) + 5px); transform: translate(-50%, 0); }   /* the bench is near the top of the glass: under it instead */
/* the final receipt sizes itself around the bench above and the buttons below */
#mpFinal { padding-top: max(var(--benchB, 14px), env(safe-area-inset-top)); }
.mp-poster { width: min(420px, calc((100vh - var(--dockH, 0px) - var(--benchB, 0px) - 236px) * .8), calc(100vw - 28px)); }
@media (min-width: 760px) { #mpFinal { padding-right: 81px; } }
/* talking: a strip of receipt paper rises on the keyboard; the bench, the sheet and the buttons step aside */
#tbTalkTray { position: absolute; left: 0; right: 0; bottom: var(--kb, 0px); pointer-events: auto; filter: drop-shadow(0 -4px 7px rgba(0,0,0,.35)); }
#tbTalkTray[hidden] { display: none; }
#tbTalkTray.pop { animation: tbRiseIn .382s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes tbRiseIn { from { transform: translateY(40%); opacity: .4; } }
.tb-paper { padding: 19px 13px max(10px, env(safe-area-inset-bottom)); background: #fbf7ec; color: var(--ink);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 16px 51% repeat-x, linear-gradient(#000 0 0) bottom / 100% 50% no-repeat;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 16px 51% repeat-x, linear-gradient(#000 0 0) bottom / 100% 50% no-repeat; }
.tb-thread { display: flex; flex-direction: column; gap: 3px; min-height: 34px; padding-bottom: 8px; border-bottom: 2px dashed rgba(60,3,12,.25); font: 600 13.5px/1.25 "Fredoka", sans-serif; }
.tb-thread p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-thread em { margin-right: 5px; font: 400 12px/1 "Luckiest Guy", sans-serif; font-style: normal; letter-spacing: .5px; }
.tb-thread .hush { color: rgba(60,3,12,.45); font-weight: 500; }
.tb-erow { display: flex; justify-content: space-between; gap: 6px; margin: 8px 0; }
.tb-erow button { width: 38px; height: 38px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  border: 2px solid var(--ink); box-shadow: 0 2.5px 0 var(--ink); background: radial-gradient(circle at 50% 30%, #fff, #fff6dc 60%, #efdfb8); }
.tb-erow button .mp-emo { width: 27px; height: 27px; }
.tb-erow button:active { transform: translateY(2px); box-shadow: 0 .5px 0 var(--ink); }
.tb-erow .tb-flag { background: radial-gradient(circle at 50% 30%, #fff, #f2ece0 60%, #ddd2bd); }
.tb-erow .tb-flag svg { width: 20px; height: 20px; }
#tbTalkTray #mpChatForm { display: flex; gap: 8px; align-items: center; }
#tbTalkTray #mpChatIn { flex: 1; min-width: 0; height: 42px; box-sizing: border-box; padding: 0 13px; border-radius: 14px; border: 2.5px solid var(--ink); background: #fff; color: var(--ink);
  box-shadow: inset 0 3px 0 rgba(60,3,12,.1); font: 600 16px "Fredoka", sans-serif; outline: none; }
#tbTalkTray #mpChatIn:focus { box-shadow: inset 0 3px 0 rgba(60,3,12,.1), 0 0 0 3px rgba(255,210,58,.6); }
#tbTalkTray .mp-send-b { flex: none; height: 42px; padding: 3px 15px 0; border-radius: 14px; border: 2.5px solid var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(circle at 50% 20%, #fff1a8, #ffc531 55%, #e8920a); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 3px 0 var(--ink);
  font: 400 17px/1 "Luckiest Guy", sans-serif; letter-spacing: .6px; color: var(--ink); }
#tbTalkTray .mp-send-b:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 1px 0 var(--ink); }
/* on a laptop it's a card in the bottom-right corner */
#tbTalkTray.desk { right: auto; bottom: auto; filter: drop-shadow(0 6px 13px rgba(0,0,0,.4)); }
#tbTalkTray.desk .tb-paper { border-radius: 0 0 14px 14px; padding-bottom: 13px; }
.tb-talking #tbRail, .tb-talking #tbReactTray { opacity: 0; pointer-events: none; }
.tb-thread .mp-emo.tb-inline { display: inline-block; width: 22px; height: 22px; vertical-align: -6px; }
/* the HUD's own announcement, when the TV is out of the shot: big, with a pow behind it, then gone */
#tbSplash { position: absolute; left: 0; right: 0; display: none; text-align: center; pointer-events: none; }
#tbSplash.on { display: grid; place-items: center; animation: tbSplash 2.2s both; }
#tbSplash svg { position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px; animation: tbSpin 13s linear infinite; }
#tbSplash b { position: relative; display: block; font: 400 44px/1 "Luckiest Guy", sans-serif; letter-spacing: 1px; color: var(--gold); -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); transform: rotate(-4deg); }
#tbSplash span { position: relative; display: inline-block; margin-top: 10px; padding: 7px 14px 8px; border-radius: 14px; font: 600 15px/1 "Fredoka", sans-serif; color: #fff; background: var(--ink); box-shadow: 0 3px 0 rgba(0,0,0,.4); }
@keyframes tbSplash { 0% { opacity: 0; transform: scale(.25); } 16% { opacity: 1; transform: scale(1.14); } 27% { transform: scale(.96); } 36% { transform: none; } 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-21px) scale(.9); } }
@keyframes tbSpin { to { transform: rotate(360deg); } }
