/* The sketchy guy, his job board, and the "special deal" loan */

/* ---------- The sketchy guy in the corner ---------- */
.shark { position: fixed; right: 18px; bottom: 0; z-index: 150; display: flex; align-items: flex-end; gap: 6px;
  animation: sharkIn .8s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes sharkIn {
  0% { transform: translateY(170px); }
  60% { transform: translateY(-14px); }
  75% { transform: translateY(0) rotate(-4deg); }
  88% { transform: rotate(3deg); }
  100% { transform: none; }
}
.shark.leaving { animation: sharkOut .5s ease-in forwards; }
.shark.gone { animation: sharkGone .3s ease-in forwards; }
@keyframes sharkOut { to { transform: translateX(200px) rotate(10deg); opacity: 0; } }
@keyframes sharkGone { to { transform: scale(.6); opacity: 0; } }
.shark.nag .shark-body { animation: sharkNag .7s ease; }
.shark.nag .shark-bubble { animation: bubbleNag .7s ease; }
@keyframes sharkNag { 20% { transform: translateY(-16px) rotate(-6deg); } 40% { transform: translateY(0) rotate(5deg); } 60% { transform: translateY(-8px) rotate(-3deg); } 80% { transform: none; } }
@keyframes bubbleNag { 30% { transform: scale(1.08); } 60% { transform: scale(.97); } }
.shark-body { padding: 0; background: none; border: 0; cursor: pointer; filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)); }
.shark-body svg { display: block; }
.shark-coin { animation: coinToss 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes coinToss { 0%, 55%, 100% { transform: none; } 75% { transform: translateY(-36px) scaleX(.15); } 88% { transform: translateY(-14px) scaleX(1); } }
.shark-eyes { animation: eyeBlink 4s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes eyeBlink { 0%, 92%, 100% { transform: none; } 95% { transform: scaleY(.1); } }
/* pulsing attention ring behind him */
.shark-ring { position: absolute; right: 8px; bottom: 6px; width: 110px; height: 110px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 0 #ffc94acc; animation: ring 1.6s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 #ffc94acc; } 100% { box-shadow: 0 0 0 46px #ffc94a00; } }
.shark-bubble { position: relative; margin-bottom: 92px; background: #fff; color: #111; padding: 12px 14px; border-radius: 14px; width: 230px;
  font-weight: 600; font-size: 14px; line-height: 1.35; box-shadow: 0 14px 34px rgba(0,0,0,.45); border: 3px solid #ffc94a; }
.shark-bubble::after { content: ""; position: absolute; right: -12px; bottom: 18px; border: 10px solid transparent; border-right: 0; border-left-color: #ffc94a; }
.shark-bubble b { color: #b3261e; }
.shark-actions { display: flex; gap: 6px; margin-top: 10px; }
.shark-actions .btn.ghost { color: #333; border-color: #ccc; }

/* ---------- Job board ---------- */
.modal.job { max-width: 520px; background: #1d1a14; border: 2px solid #6b5a3e; }
.job-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.job-head h2 { margin: 0 0 4px; }
.job-face { width: 72px; height: 72px; overflow: hidden; flex-shrink: 0; border-radius: 50%; background: #3a2f45; border: 2px solid #7b2cbf; }
.job-face svg { width: 110px; height: 144px; margin: -12px 0 0 -22px; }
.job-stats { display: flex; justify-content: space-between; background: #2a251b; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.job-stats b { color: var(--gold); }
.job-title { font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.job-area { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #0f0d09; border-radius: 10px; padding: 14px; user-select: none; }
.job-brief { text-align: center; max-width: 340px; }
.job-brief p { font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.job-next { flex-shrink: 0; }

/* getaway */
.gw-progress { width: 240px; height: 6px; background: #2a251b; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.gw-progress i { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }
.gw-road { position: relative; width: 240px; height: 270px; overflow: hidden; border-radius: 8px; cursor: pointer; touch-action: manipulation; flex-shrink: 0; background: #17191d; }
.gw-road::before, .gw-road::after { content: ""; position: absolute; top: -40px; bottom: 0; width: 4px; margin-left: -2px; background: repeating-linear-gradient(180deg, #565d68 0 20px, transparent 20px 40px); animation: roadMove .25s linear infinite; }
.gw-road::before { left: 33.333%; }
.gw-road::after { left: 66.666%; }
@keyframes roadMove { to { transform: translateY(40px); } }
.gw-road.crash { animation: shake .3s 2; background: #3a1418; }
.gw-van, .gw-cop { position: absolute; width: 33.333%; text-align: center; font-size: 42px; line-height: 50px; height: 50px; z-index: 1; }
.gw-van { top: 210px; left: 33.333%; transition: left .09s; z-index: 2; rotate: 90deg; }
.gw-cop { rotate: -90deg; }

/* safe */
.sf-box { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sf-dials { display: flex; gap: 12px; background: #3a424a; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 4px #59646e; }
.sf-dial { display: flex; flex-direction: column; align-items: center; background: #14181c; border-radius: 10px; border: 2px solid transparent; }
.sf-dial.sel { border-color: var(--gold); }
.sf-arrow { width: 62px; padding: 6px; color: var(--muted); }
.sf-arrow:hover { color: #fff; }
.sf-num { font-size: 40px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sf-left { color: var(--muted); font-weight: 600; font-size: 12px; }
.sf-log { display: flex; flex-direction: column; gap: 4px; }
.sf-row { display: flex; gap: 6px; }
.sf-row span { width: 56px; text-align: center; padding: 3px 0; border-radius: 6px; font-weight: 800; background: #2a251b; color: var(--gold); }
.sf-row span.ok { background: var(--green); color: #05220a; }

/* pickpocket */
.pp-mark { font-size: 72px; line-height: 1.1; }
.pp-track { position: relative; width: 90%; height: 56px; flex-shrink: 0; background: #241f2b; border-radius: 10px; margin-top: 20px; }
.pp-zone { position: absolute; top: 0; bottom: 0; background: #00e70140; box-shadow: inset 0 0 0 2px var(--green); border-radius: 8px; display: grid; place-items: center; font-size: 22px; overflow: hidden; }
.pp-hand { position: absolute; top: -26px; transform: translateX(-50%); font-size: 30px; pointer-events: none; }
.pp-hand::after { content: ""; position: absolute; left: 50%; top: 30px; width: 3px; height: 52px; margin-left: -1.5px; background: #fff; }
.pp-dots { display: flex; gap: 10px; }
.pp-dots i { width: 14px; height: 14px; border-radius: 50%; background: #3a3444; }
.pp-dots i.hit { background: var(--green); }
.pp-dots i.miss { background: var(--red); }

/* shuffle */
.sh-msg { font-weight: 700; }
.sh-table { position: relative; width: 100%; max-width: 380px; height: 150px; flex-shrink: 0; }
.sh-crate { position: absolute; bottom: 10px; width: 33.333%; height: 130px; padding: 0; transition-property: left; transition-timing-function: ease-in-out; cursor: default; }
.sh-crate.front { z-index: 2; }
.sh-lid { position: absolute; left: 0; right: 0; bottom: 0; font-size: 70px; line-height: 1; z-index: 1; transition: transform .25s; }
.sh-prize { position: absolute; left: 0; right: 0; bottom: 4px; font-size: 38px; }
.sh-crate.open .sh-lid { transform: translateY(-60px); }
.sh-crate.has .sh-prize { filter: drop-shadow(0 0 10px var(--gold)); }
.sh-table.picking .sh-crate { cursor: pointer; }
.sh-table.picking .sh-crate:hover .sh-lid { transform: translateY(-10px); }
.job-feedback { min-height: 22px; margin-top: 10px; font-weight: 700; }
.job-feedback.good { color: var(--green); }
.job-feedback.bad { color: var(--red); }

/* ---------- The "special deal" loan ---------- */
.contract-wrap { position: relative; width: 100%; max-width: 620px; }
.contract-wrap.bad { max-width: 900px; display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.server-note { background: #fff59a; color: #2b2418; padding: 16px; border-radius: 4px; transform: rotate(-3deg); box-shadow: 0 16px 34px rgba(0,0,0,.5);
  font-family: "Comic Sans MS", "Segoe Print", cursive; position: sticky; top: 0; animation: noteIn .6s cubic-bezier(.2,1.4,.4,1) both .2s; }
@keyframes noteIn { from { transform: translateX(-60px) rotate(-14deg); opacity: 0; } }
.server-note::before { content: "📌"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 24px; }
.sn-face { width: 64px; height: 50px; background: #7f95a3; border: 3px solid #3b4d59; border-radius: 8px; margin: 0 auto 10px; position: relative; display: flex; justify-content: center; gap: 14px; padding-top: 8px; }
.sn-face span { color: #00e701; font-size: 22px; line-height: 1; }
.sn-face i { position: absolute; bottom: 8px; left: 50%; width: 18px; height: 8px; border: 2px solid #00e701; border-bottom: 0; border-radius: 10px 10px 0 0; transform: translateX(-50%); }
.sn-text b { display: block; margin-bottom: 6px; }
.sn-text p { margin: 0 0 8px; font-size: 15px; line-height: 1.4; }
.sn-small { font-size: 12px !important; opacity: .75; }
.modal.contract.bad { background: #efe3c4; }
.modal.contract.bad h2 { padding: 0 64px; font-size: 19px; line-height: 1.3; }
.contract-stamp { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-18deg); border: 5px solid #c0392bcc; color: #c0392bcc;
  font-family: Inter, sans-serif; font-weight: 900; font-size: 44px; letter-spacing: 4px; padding: 4px 18px; border-radius: 10px; pointer-events: none; mix-blend-mode: multiply; }

.clown { cursor: help; }
.podium .pod .pv.red { color: var(--red); }
td.strong { font-weight: 800; }

@media (max-width: 760px) {
  .contract-wrap.bad { grid-template-columns: 1fr; }
  .server-note { position: static; transform: rotate(-1.5deg); }
  .shark { right: 6px; }
  .shark-body svg { width: 86px; height: 112px; }
  .shark-bubble { width: 190px; font-size: 13px; margin-bottom: 70px; }
  .shark-ring { width: 84px; height: 84px; }
  .contract-stamp { font-size: 30px; }
}
