/* Horror palette: blood-red riso ink + black on bone paper.
   Shared by Paper Cuts and Case File. */
:root {
  --paper: #ece3cf;
  --paper-card: #f5eedd;
  --newsprint: #d9cfb6;
  --manila: #ddc690;
  --ink-1: #d7262e;
  --ink-2: #1c1717;
  --shadow: rgba(28, 23, 23, 0.28);
  --font-display: var(--font-cut);   /* Paper Cuts: labels, buttons, headings in cut-paper letters */
}

/* Slice-o-Paper has small capitals, so size it up wherever it's the display font */
body:not([data-game="case-file"]) .btn { font-size: 1.35rem; letter-spacing: 0.04em; padding: 11px 26px 9px; }
body:not([data-game="case-file"]) .btn.small { font-size: 1rem; padding: 8px 14px 6px; }
body:not([data-game="case-file"]) .btn.big { font-size: 1.9rem; padding: 14px 40px 11px; }
body:not([data-game="case-file"]) .masthead .issue { font-size: 1.1rem; margin-top: 16px; }
body:not([data-game="case-file"]) .masthead .issue .strip { font-size: 1.35rem; padding: 5px 14px 3px; }
body:not([data-game="case-file"]) .masthead.small .issue .strip { font-size: 1.1rem; }

/* a dashed "cut here" line separates the top bar from the ransom-letter title (no ✂ on it: the ✂ is the Clippings home button) */
.topbar { border-bottom: 2px dashed rgba(28, 23, 23, 0.4); margin-bottom: 30px; }
.topbar::after { display: none;
  content: '✂';
  position: absolute;
  left: 4px; bottom: -0.72em;
  font-size: 1.15rem;
  line-height: 1;
  padding: 2px 4px 0;
  margin-bottom: 2px;
  color: var(--ink-1);
  /* the paper patch stops short of the bottom of the line box so the scissors sit in its middle */
  background: linear-gradient(var(--paper), var(--paper)) top / 100% 88% no-repeat;
}
body:not([data-game="case-file"]) .masthead.small { margin-top: -6px; }
body:not([data-game="case-file"]) .dist-row { font-size: 1.45rem; grid-template-columns: 30px 1fr; gap: 10px; }
body:not([data-game="case-file"]) .dist { gap: 9px; }
body:not([data-game="case-file"]) .dist-bar { font-family: 'Archivo Black', sans-serif; font-size: 1rem; padding: 5px 10px 3px; }
body:not([data-game="case-file"]) .dialog-sub { font-size: 1.5rem; margin-bottom: 14px; }
body:not([data-game="case-file"]) .stat-grid.big b { font-family: 'Archivo Black', sans-serif; font-size: 2.8rem; }
body:not([data-game="case-file"]) .stat-grid.big div { font-size: 1rem; }
body:not([data-game="case-file"]) .strip { font-size: 1.02rem; letter-spacing: 0.03em; padding: 4px 12px 2px; }
body:not([data-game="case-file"]) .stamp { font-size: 2.2rem; letter-spacing: 0.05em; }
body:not([data-game="case-file"]) .progress span { font-size: 1.05rem; }
body:not([data-game="case-file"]) .reveal .answer,
body:not([data-game="case-file"]) .review .ra { font-family: 'Archivo Black', sans-serif; }
body:not([data-game="case-file"]) .review h2,

/* hand-lettered lines */
.lede { font-family: var(--font-hand); font-size: 1.35rem; line-height: 1.2; }

/* a faint red halftone bleed in the top corner, like an over-inked plate */
body::before {
  content: '';
  position: fixed;
  top: -10vmax; right: -10vmax;
  width: 50vmax; height: 50vmax;
  background-image: radial-gradient(var(--ink-1) 30%, transparent 33%);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(closest-side, rgba(0,0,0,0.5), transparent);
  mask-image: radial-gradient(closest-side, rgba(0,0,0,0.5), transparent);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* Paper Cuts result stamps all tilt the same way */
body:not([data-game="case-file"]) .stamp,
body:not([data-game="case-file"]) .stamp.close,
body:not([data-game="case-file"]) .stamp.wrong { transform: rotate(8deg); }

/* the dashed cut line runs the full width of the window, not just the width of the nav; the scissors start it at the left edge */
.topbar { border-bottom-color: transparent; }
.topbar::before {
  content: ''; position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); bottom: -2px;
  border-bottom: 2px dashed rgba(28, 23, 23, 0.4); pointer-events: none;
}
.topbar::after { left: calc(50% - 50vw + 10px); }
body[data-game="case-file"] .topbar::before, body[data-game="watchlist"] .topbar::before, body[data-game="seance"] .topbar::before { display: none; }
