/* Reading pages (house rules, strategy, stories) of roulette, craps, sic bo and
   the three poker games. The page shell and the article typography are in
   style.css; this file adds the hero photo, small inline figures and the
   phone adjustments shared by these pages. */

.game-doc .doc-hero {
  max-width: 820px;
}

.doc-photo {
  margin: 22px 0 0;
}

.doc-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1344 / 752;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  background: #12070a;
}

.doc-photo figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.doc-photo.is-broken {
  display: none;
}

/* ---------- inline dice ---------- */

.die {
  display: inline-block;
  width: 1.35em;
  height: 1.35em;
  margin: 0 1px;
  vertical-align: -0.28em;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

.dice-ex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 12px 0 18px;
  padding: 0;
  list-style: none;
}

.dice-ex li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.dice-ex .die {
  width: 1.7em;
  height: 1.7em;
}

.dice-ex .dgap {
  display: inline-block;
  width: 0.45em;
}

.dice-ex .eq {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- roulette numbers ---------- */

.rn {
  display: inline-grid;
  place-items: center;
  min-width: 1.75em;
  height: 1.75em;
  margin: 0 1px;
  padding: 0 3px;
  border-radius: 50%;
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  font-size: 0.86em;
  line-height: 1;
  color: var(--ivory);
  background: #17171b;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 106, 0.55);
  vertical-align: 0.06em;
}

.rn.r {
  background: var(--card-red);
}

.rn.g {
  background: #0f7a57;
}

.rl-fig {
  margin: 14px 0 20px;
}

.rl-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(12, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 2px;
  max-width: 640px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 106, 0.32);
  background: var(--felt-deep);
}

.rl-grid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.15;
  border-radius: 3px;
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ivory);
  background: #17171b;
}

.rl-grid span.r {
  background: var(--card-red);
}

.rl-grid span.z {
  grid-row: 1 / span 3;
  aspect-ratio: auto;
  background: #0f7a57;
}

.rl-fig figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- tables ---------- */

.doc table.data td.hl,
.doc table.data tr.hl td {
  background: rgba(212, 175, 106, 0.1);
}

.doc table.data.pay td:nth-child(n+2) {
  white-space: nowrap;
}

.doc table.data .sub {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  white-space: normal;
}

/* ---------- phones ---------- */

@media (max-width: 760px) {
  .game-doc .doc table.data thead th {
    white-space: normal;
  }

  .game-doc .doc table.data.pay thead th:nth-child(2) {
    white-space: nowrap;
  }

  .doc table.data.pay {
    font-size: 13px;
  }

  .doc table.data.pay th,
  .doc table.data.pay td {
    padding: 7px 8px;
  }

  .doc table.data.matrix {
    font-size: 12.5px;
  }

  .doc table.data.matrix th,
  .doc table.data.matrix td {
    padding: 7px 6px;
  }

  .game-doc .doc table.data.matrix thead th {
    white-space: nowrap;
  }

  .rl-grid {
    gap: 1px;
    padding: 4px;
  }

  .rl-grid span {
    font-size: 11px;
    border-radius: 2px;
  }
}
