/* shared game page chrome */
.gamehead { display: flex; align-items: center; gap: 12px 14px; margin-bottom: 16px; flex-wrap: wrap; }
.gamehead__art { flex: none; width: 44px; height: 44px; object-fit: contain; }
.gamehead__txt { display: grid; gap: 4px; min-width: 0; }
.gamehead h1 { font: 400 34px/1 var(--pixel); letter-spacing: 0.01em; text-transform: uppercase; }
.gamehead__blurb { font-size: 13px; color: var(--dim); }
.gamehead .spacer { flex: 1; }
@media (max-width: 640px) {
  .gamehead { gap: 10px 12px; }
  .gamehead__txt { flex: 1 1 calc(100% - 64px); }
  .gamehead h1 { font: 400 34px/1 var(--pixel); letter-spacing: 0.01em; text-transform: uppercase; }
  .gamehead .spacer { display: none; }
}

.gl { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 16px; align-items: start; }
.gl--wide { grid-template-columns: 390px minmax(0, 1fr); }
.gl__panel { display: grid; gap: 18px; position: sticky; top: calc(var(--top) + 16px); }
.gl__stage { position: relative; min-height: 540px; padding: 24px; overflow: hidden; display: grid; align-content: center; justify-items: center; gap: 18px; isolation: isolate; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-soft); }
.gl__below { grid-column: 1 / -1; display: grid; gap: 14px; order: 3; }
@media (max-width: 960px) {
  .gl, .gl--wide { grid-template-columns: minmax(0, 1fr); }
  .gl__panel { position: static; order: 2; }
  .gl__stage { order: 1; min-height: 420px; padding: 14px; }
}

.hist { display: flex; gap: 6px; flex-wrap: wrap; min-height: 30px; }
.hist__item { padding: 7px 11px; border-radius: 8px; font: 600 12px/1 var(--mono); background: var(--surface-2); color: var(--dim); }
.hist__item.win { background: rgba(62, 207, 142, 0.16); color: var(--green); }
.hist__item.lose { background: rgba(240, 100, 111, 0.14); color: var(--red); }
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.panel-actions { display: grid; gap: 10px; }
.note { font-size: 12.5px; color: var(--faint); line-height: 1.55; }
.chiprow { display: flex; gap: 8px; flex-wrap: wrap; }

.cr-stage { align-content: start; justify-items: stretch; padding: 18px; }
.cr-hist { display: flex; gap: 6px; overflow: hidden; min-height: 32px; flex-wrap: nowrap; }
.cr-hist .hist__item { padding: 7px 11px; border-radius: 8px; font: 600 12px/1 var(--mono); background: var(--surface-2); color: var(--dim); }
.hist__item.big { background: rgba(230, 179, 79, 0.16); color: var(--gold); }

.dice-top { width: 100%; display: flex; justify-content: center; min-height: 34px; }

/* felt table shared by card games */
.hd-table { display: grid; gap: 14px; justify-items: center; width: 100%; padding: 18px 10px; border-radius: 14px; background: #10332a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.hd-tag { font: 500 12px/1 var(--sans); color: rgba(255, 255, 255, 0.65); }

/* chip shown on a table spot */
.rt-chip { position: absolute; left: 50%; top: 50%; z-index: 5; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px; margin: -15px 0 0 -15px; border-radius: 50%; font: 650 10px/1 var(--display); font-style: normal; color: #fff;  background: var(--cc, #888); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75), 0 2px 6px rgba(0, 0, 0, 0.5); pointer-events: none; }
