body.in-robbery { overflow: hidden; }
body.in-robbery #app { visibility: hidden; }

.rb-screen { --rb-paper: #c8b99a; --rb-ink: #29251f; --rb-loss: #e28b76;
  position: fixed; inset: 0; z-index: 900; overflow: auto; isolation: isolate;
  color: var(--deck-ivory); background: #0c100f; font-family: var(--serif); }
.rb-screen *, .rb-screen *::before, .rb-screen *::after { box-sizing: border-box; }
.rb-bg, .rb-shade { position: fixed; inset: 0; pointer-events: none; z-index: -2; }
.rb-bg { background: #0c100f center / cover no-repeat; filter: saturate(.3) brightness(.43); transform: scale(1.04); }
.rb-shade { z-index: -1; background: linear-gradient(90deg, #09100f55, #080d0bd9 64%, #080d0bf2),
  repeating-linear-gradient(107deg, transparent 0 140px, #b9ad8a07 141px, transparent 143px 290px);
  box-shadow: inset 0 0 12vw #000d; }
.rb-screen::after { content: ""; position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.45' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.rb-layout { min-height: 100%; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 6rem); max-width: 100rem; margin: auto; padding: clamp(1.5rem, 4vw, 4rem); align-items: center;
  animation: rbArrive .55s ease-out both; }
@keyframes rbArrive { from { opacity: 0; transform: translateY(14px) rotate(-.4deg); } to { opacity: 1; transform: none; } }
.rb-persona { position: relative; align-self: stretch; min-height: 39rem; margin: 0; display: flex; align-items: end; }
.rb-who > .rb-face { position: absolute; inset: -4rem -5rem -4rem -4rem; width: calc(100% + 9rem); height: calc(100% + 8rem);
  object-fit: cover; object-position: 50% 14%; filter: saturate(.65) brightness(.72) contrast(1.12);
  mask-image: linear-gradient(0deg, transparent, #000 24% 85%, transparent), linear-gradient(90deg, transparent, #000 13% 65%, transparent 98%);
  mask-composite: intersect; }
.rb-who > .rb-face.rb-in { animation: rbFaceIn .8s ease-out both; }
@keyframes rbFaceIn { from { opacity: 0; } to { opacity: 1; } }
.rb-line { position: relative; z-index: 1; width: 100%; padding: 1rem 0; margin: 20rem 0 1rem;
  display: flex; align-items: end; gap: 1rem; background: none; border: 0; box-shadow: none; }
.rb-line p { flex: 1; min-width: 0; margin: 0; font: italic 400 clamp(1.4rem, 2.1vw, 1.85rem)/1.45 var(--serif);
  color: #fff; text-shadow: 0 2px 3px #000, 0 4px 12px #000, 0 0 24px #000; }
body.player button.rb-say { position: relative; flex: 0 0 auto; display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem; min-height: 0; padding: .3rem; margin: 0 0 .25rem;
  border: 1px solid color-mix(in srgb, var(--deck-brass) 65%, transparent); border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #c9a34e40, #15100c99 65%); color: var(--brass-hi);
  box-shadow: inset 0 0 0 3px #15100c, inset 0 0 0 4px #c9a34e55, 0 3px 12px #0009;
  cursor: pointer; transition: transform .2s, box-shadow .2s, color .2s; }
.rb-say svg { width: 100%; height: 100%; overflow: visible; }
.rb-say-ring { fill: none; stroke: currentColor; stroke-width: .6; stroke-dasharray: 1 4; }
.rb-say-horn { fill: currentColor; stroke: none; }
.rb-say-wave { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
body.player button.rb-say:hover { color: #fff2cc; transform: rotate(-8deg) scale(1.08);
  background: radial-gradient(circle at 35% 25%, #c9a34e66, #15100c99 65%);
  box-shadow: inset 0 0 0 3px #15100c, inset 0 0 0 4px #c9a34e99, 0 0 20px #c9a34e44; }
body.player button.rb-say:active { transform: scale(.95); }
.rb-report { min-width: 0; position: relative; padding: 1rem 0; display: flex; flex-direction: column; gap: 1.6rem; }
.rb-report > header { position: relative; }
.rb-report .eyebrow { margin: 0 0 1rem; font: 600 .85rem/1.5 var(--special); text-transform: uppercase;
  letter-spacing: .22em; color: #b1b4a5; }
.rb-heading { display: flex; align-items: center; gap: 1rem; }
.rb-heading h2 { margin: 0; font: 400 clamp(3.5rem, 6.8vw, 6.7rem)/1.05 var(--title); color: #ece2c9;
  letter-spacing: -.015em; overflow-wrap: anywhere; transform: rotate(-1deg); }
.rb-emblem { display: none; }
.rb-reason { max-width: 36rem; margin: 1.3rem 0 0; font: 1.12rem/1.6 var(--serif); color: #bcb9aa; }
.rb-net { margin: 0; padding: .2rem 0 .7rem; display: flex; flex-direction: column; gap: .35rem; }
.rb-net span { font: 600 .8rem/1.4 var(--special); text-transform: uppercase; letter-spacing: .18em; color: #bcaca0; }
.rb-net b { align-self: start; position: relative; font: 700 clamp(3.4rem, 6.2vw, 6rem)/1 var(--serif);
  font-variant-numeric: tabular-nums; letter-spacing: -.05em; color: var(--rb-loss); overflow-wrap: anywhere; max-width: 100%; }
.rb-net b::after { content: ""; position: absolute; height: 3px; background: #a65e4c; left: -3%; right: -7%; bottom: -.25rem;
  transform: rotate(-3deg); clip-path: polygon(0 30%, 96% 0, 100% 45%, 2% 100%); }
.rb-evidence { position: relative; padding: 1.8rem 1.7rem 2rem; color: var(--rb-ink); background:
  radial-gradient(ellipse at 100% 0, #564b3940, transparent 60%),
  repeating-linear-gradient(0deg, transparent 0 29px, #493d2212 30px, transparent 31px), var(--rb-paper);
  clip-path: polygon(0 2%, 8% 1%, 19% 2.5%, 36% 0, 52% 1.4%, 68% 0, 80% 2%, 97% 0, 100% 3%, 99% 18%, 100% 39%, 99.5% 67%, 100% 96%, 94% 98%, 79% 97%, 62% 100%, 45% 98%, 26% 100%, 14% 98%, 0 100%, .8% 72%, 0 51%);
  transform: rotate(.8deg); }
.rb-evidence::before { content: ""; position: absolute; right: 9%; top: -1rem; width: 4rem; height: 5rem; opacity: .22;
  border-right: 2px solid #342b22; transform: rotate(25deg); pointer-events: none; }
.rb-taken h3 { margin: 0 0 1rem; font: 700 .8rem/1.3 var(--special); letter-spacing: .2em; text-transform: uppercase;
  color: var(--rb-ink); border-bottom: 2px solid #4b403c80; padding-bottom: .7rem; }
.rb-cargo { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.rb-cargo li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; font-size: 1.1rem;
  padding-bottom: .6rem; border-bottom: 1px dashed #4c40374d; align-items: baseline; }
.rb-cargo li span { overflow-wrap: anywhere; }
.rb-cargo li em { font: 700 1.2rem/1.3 var(--serif); white-space: nowrap; color: var(--rb-ink); }
.rb-cargo li em.dn { color: #823e30; }
.rb-cargo li.none { display: block; font: italic 1rem/1.5 var(--serif); border: 0; }
.rb-tip { margin: .6rem 0 0; font: italic 1rem/1.5 var(--serif); color: #514a3e; }
.rb-rows { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.3rem; }
.rb-rows small { display: block; font: 600 .75rem/1.5 var(--special); text-transform: uppercase; letter-spacing: .1em; color: #514a3e; }
.rb-rows b { display: block; font: 700 2rem/1.3 var(--serif); color: #823e30; }
.rb-report footer { display: flex; justify-content: end; padding-top: .2rem; }
.rb-report button.rb-go { min-height: 3.5rem; padding: .9rem 1.4rem; border: 1px solid #a99b7e;
  border-radius: 0; background: #bdae8f; color: #171e1a; font: 400 1.25rem/1.3 "MedievalSharp", var(--serif); cursor: pointer;
  box-shadow: 4px 4px 0 #0006; transition: background .2s; }
.rb-report button.rb-go span { display: inline-block; margin-left: 1rem; }
.rb-report button.rb-go:hover:not(:disabled) { background: #e0cfaa; }
.rb-report button.rb-go:disabled { opacity: .45; cursor: default; }
.rb-screen button:focus-visible { outline: 3px solid #c6e1d3; outline-offset: 5px; }

@media (min-width: 901px) and (max-height: 760px) {
  .rb-layout { padding: 1.5rem 3rem; gap: 3rem; }
  .rb-persona { min-height: 34rem; }
  .rb-report { gap: 1.1rem; }
  .rb-heading h2 { font-size: 4rem; }
  .rb-net b { font-size: 4rem; }
  .rb-reason { font-size: 1rem; margin-top: .9rem; }
  .rb-evidence { padding: 1.5rem; }
}
@media (max-width: 900px) {
  .rb-layout { display: flex; flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1.5rem; }
  .rb-persona { min-height: 20rem; order: 2; }
  .rb-who > .rb-face { inset: -2rem -1.5rem; width: calc(100% + 3rem); height: calc(100% + 4rem); object-position: 50% 18%; }
  .rb-line { margin: 12rem 0 0; }
  .rb-report { display: contents; }
  .rb-report > header { order: 0; }
  .rb-report > .rb-net { order: 1; }
  .rb-report > .rb-evidence { order: 2; }
  .rb-persona { order: 3; }
  .rb-report > footer { order: 4; }
  .rb-heading h2 { font-size: clamp(3rem, 10vw, 5rem); }
  .rb-net b { font-size: clamp(3.5rem, 12vw, 5rem); }
  .rb-report footer { justify-content: stretch; }
  .rb-report button.rb-go { width: 100%; }
}
@media (max-width: 460px) {
  .rb-layout { padding: 1.2rem; }
  .rb-report { gap: 1.25rem; }
  .rb-evidence { padding: 1.6rem 1.2rem; }
  .rb-line { padding: 1rem 0; gap: .6rem; }
  body.player button.rb-say { width: 3rem; height: 3rem; }
  .rb-cargo li { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-layout, .rb-who > .rb-face.rb-in { animation: none; }
  .rb-screen *, .rb-screen *::before, .rb-screen *::after { transition: none; }
}
