/* The Pistols — house style per the site design tokens (warm sepia; EB
   Garamond body; IM Fell display; oxblood accent; no border radius). */

html, body { margin: 0; padding: 0; background: #e7ddc3; }
body {
  background-image:
    radial-gradient(ellipse 120% 90% at 50% 0%, rgba(255,251,238,0.5), rgba(0,0,0,0) 60%),
    radial-gradient(ellipse 140% 100% at 50% 100%, rgba(58,42,20,0.14), rgba(0,0,0,0) 55%);
  color: #2a2114;
  font-family: 'EB Garamond', Georgia, serif;
}
::selection { background: #6e2c1f; color: #f0e8d2; }
a:hover { color: #6e2c1f !important; opacity: 1 !important; }

.page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; padding: 0 24px 96px 24px;
}

.site-nav {
  width: 100%; max-width: 760px; display: flex;
  justify-content: space-between; align-items: baseline;
  padding: 18px 4px 10px 4px;
  border-bottom: 1px solid rgba(42,33,20,0.35);
  font-family: 'IM Fell English SC', serif; font-size: 15px;
  letter-spacing: 0.14em;
}
.site-nav a { color: #2a2114; text-decoration: none; opacity: 0.75; }
.site-nav a.active {
  color: #6e2c1f; opacity: 1;
  border-bottom: 1px solid rgba(110,44,31,0.5);
}
.site-nav > span { display: flex; gap: 28px; }

.masthead { width: 100%; max-width: 760px; text-align: center; padding: 44px 0 0 0; }
.masthead-kicker { font-family: 'IM Fell English', serif; font-style: italic; font-size: 17px; color: #5d5140; }
.masthead h1 {
  font-family: 'IM Fell English SC', serif; font-weight: 400;
  font-size: clamp(38px, 6.5vw, 56px); line-height: 1.05;
  margin: 6px 0 0 0; letter-spacing: 0.02em;
}
.standfirst {
  font-style: italic; font-size: 18px; color: #5d5140;
  max-width: 540px; margin: 14px auto 0 auto; line-height: 1.55;
}
.hedera { font-size: 20px; color: #5d5140; margin-top: 16px; text-align: center; }

.frame {
  width: 100%; max-width: 640px; text-align: center; padding: 36px 0 0 0;
  font-family: 'IM Fell English', serif; font-style: italic;
  font-size: 21px; line-height: 1.55;
}

.panel { width: 100%; max-width: 640px; padding: 40px 0 0 0; }
.panel h2, .boardwrap h2 {
  font-family: 'IM Fell English SC', serif; font-weight: 400; font-size: 22px;
  letter-spacing: 0.16em; text-align: center; margin: 0 0 14px 0;
}
.panel ol { margin: 0; padding-left: 28px; font-size: 18.5px; line-height: 1.6; }
.panel ol li { margin-top: 10px; }
#protocol-panel ol { font-style: italic; color: #3c3222; }

.boardwrap { width: 100%; max-width: 720px; padding: 44px 0 0 0; }
.board-note {
  text-align: center; font-style: italic; font-size: 16.5px; color: #5d5140;
  max-width: 520px; margin: 0 auto 18px auto; line-height: 1.5;
}

.tray {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 0 0 20px 0; min-height: 46px;
}
.token {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(42,33,20,0.55); background: #f2ead4;
  padding: 5px 12px 5px 6px; cursor: pointer; user-select: none;
  font-family: 'IM Fell English SC', serif; font-size: 14px;
  letter-spacing: 0.06em; box-shadow: 0 1px 0 rgba(42,33,20,0.25);
}
.token img {
  width: 30px; height: 36px; object-fit: cover; display: block;
  border: 1px solid rgba(42,33,20,0.4);
}
.token.selected { outline: 2px solid #6e2c1f; outline-offset: 1px; }
.token.small { font-size: 12.5px; padding: 3px 8px 3px 4px; }
.token.small img { width: 22px; height: 27px; }

.board {
  position: relative; background: #d7c9a5;
  border: 2px solid #2a2114; box-shadow: inset 0 0 0 6px #e0d4b4,
    0 2px 0 rgba(42,33,20,0.25);
  padding: 18px 14px 18px 14px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 90px minmax(0,1fr);
  gap: 8px 6px;
}
.board .colhead {
  font-family: 'IM Fell English SC', serif; font-size: 12px;
  letter-spacing: 0.14em; color: #5d5140; text-align: center;
  align-self: end; padding-bottom: 2px;
}
.seat {
  border: 1px solid rgba(42,33,20,0.55); background: #ede4cc;
  min-height: 56px; display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; position: relative;
}
.seat .who {
  flex: 1 1 auto; min-width: 0;
  font-family: 'IM Fell English SC', serif; font-size: 13.5px;
  letter-spacing: 0.05em; line-height: 1.25; cursor: pointer;
}
.seat .who .empty { color: rgba(42,33,20,0.4); font-style: italic;
  font-family: 'IM Fell English', serif; }
.seat.droptarget { outline: 2px dashed rgba(110,44,31,0.6); outline-offset: -3px; }
.seat.fixed { background: #e5d9bb; }
.seat.memorial { background: rgba(237,228,204,0.5); }
.seat.memorial .who { cursor: default; }
.seat.head-seat, .seat.foot-seat { grid-column: 2 / 3; justify-self: center; min-width: 150px; }
.seat img.plate {
  width: 34px; height: 42px; object-fit: cover;
  border: 1px solid rgba(42,33,20,0.4); display: block; flex: 0 0 auto;
}
.pistol {
  flex: 0 0 34px; width: 34px; height: 26px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.seat.memorial .pistol, .pistol.locked { cursor: default; }
.pistol svg { display: block; width: 30px; height: 20px; }
.pistol .barrel { stroke: #2a2114; stroke-width: 2; fill: none; }
.pistol.charged .body { fill: #6e2c1f; }
.pistol.uncharged .body { fill: none; stroke: #2a2114; stroke-width: 1.4; }
.pistol.absent svg { opacity: 0.22; }
.pistol.absent .body { fill: none; stroke: #2a2114; stroke-width: 1;
  stroke-dasharray: 3 3; }
.pistol-caption {
  position: absolute; right: 6px; bottom: 1px;
  font-size: 10.5px; font-style: italic; color: #5d5140;
}

.checkrow { display: flex; justify-content: center; align-items: baseline;
  gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  font-family: 'IM Fell English SC', serif; font-size: 16px;
  letter-spacing: 0.12em; color: #2a2114; background: #f2ead4;
  border: 1px solid #2a2114; padding: 10px 22px; cursor: pointer;
  box-shadow: 3px 3px 0 rgba(42,33,20,0.25);
}
.btn:hover { color: #6e2c1f; }
.btn:active { box-shadow: 1px 1px 0 rgba(42,33,20,0.25);
  transform: translate(2px, 2px); }
.check-word { font-style: italic; font-size: 17px; color: #5d5140;
  max-width: 340px; }
.check-word.right { color: #2f4c2f; }
.check-word.wrong { color: #6e2c1f; }

.hidden { display: none; }

.reveal { max-width: 680px; }
#brief {
  background: #f4eedd; border: 1px solid rgba(42,33,20,0.55);
  box-shadow: 0 2px 0 rgba(42,33,20,0.25), 0 14px 34px rgba(42,28,10,0.22);
  padding: clamp(24px, 5vw, 48px); font-size: 18.5px; line-height: 1.68;
}
#brief p { margin: 0 0 18px 0; }
#brief p:last-child { margin-bottom: 0; }
.board.small { margin-top: 24px; }
.board.small .seat { min-height: 40px; }
.board.small .who { font-size: 12px; }
.deviant { outline: 2px solid #6e2c1f; outline-offset: -2px; }

/* the murder-deduction rules (the Club's reckoning; oxblood-set) */
#murder-rules h2 { color: #6e2c1f; }
.murder-sub {
  text-align: center; font-style: italic; font-size: 16px;
  color: #7a6a52; margin: -6px 0 18px 0; line-height: 1.45;
}
.oxrule {
  border-left: 4px solid #6e2c1f; background: rgba(110,44,31,0.06);
  padding: 12px 16px; margin: 12px 0; font-size: 17.5px; line-height: 1.55;
  color: #3c2a22; font-style: italic;
}
.oxrule .lead {
  font-family: 'IM Fell English SC', serif; font-style: normal;
  letter-spacing: 0.1em; font-size: 13px; color: #6e2c1f;
  display: block; margin-bottom: 4px;
}

.page-footer {
  width: 100%; max-width: 720px; margin-top: 72px;
  border-top: 1px solid rgba(42,33,20,0.35); padding-top: 16px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 15px; color: #5d5140;
}
.page-footer .tagline { font-style: italic; }
.page-footer a {
  font-family: 'IM Fell English SC', serif; letter-spacing: 0.12em;
  color: #6e2c1f; text-decoration: none;
}

@media (max-width: 560px) {
  .page { padding: 0 14px 72px 14px; }
  .site-nav { flex-wrap: wrap; justify-content: center; gap: 4px 24px;
    font-size: 13.5px; letter-spacing: 0.1em; text-align: center; }
  .site-nav > span { flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
  .board { grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr);
    padding: 10px 6px; }
  .seat { min-height: 48px; padding: 3px 5px; gap: 5px; }
  .seat .who { font-size: 11.5px; }
  .seat img.plate { width: 26px; height: 32px; }
  .seat.head-seat, .seat.foot-seat { min-width: 120px; }
  .pistol { flex-basis: 26px; width: 26px; }
  .pistol svg { width: 24px; height: 16px; }
  .page-footer { flex-direction: column; align-items: center; gap: 12px;
    text-align: center; }
}
