/* Go Fish: stock, books, the two-step ask. Builds on table.css (cards, seats, hand). */
.gf .gf-stock { display: grid; justify-items: center; gap: 2px; }
.gf .gf-stock .card { --cw: calc(var(--cw0, 62px) * .72); }
.gf .gf-stock .card.slot { background: transparent; border: 2px dashed rgba(255, 255, 255, .35); box-shadow: none; }
.gf .gf-stock b { font-size: 20px; line-height: 1; }
.gf .gf-stock small { color: rgba(255, 255, 255, .78); font-size: 12px; }
.gf .gf-event { margin: 6px 0 0; max-width: 300px; line-height: 1.3; color: #fff; font-size: 15px; font-weight: 650; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.gf .gf-event .card.tiny { --cw: 26px; display: inline-block; vertical-align: middle; }
.gf .gf-backs { display: flex; gap: 2px; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); }
.gf .gf-backs i { width: 9px; height: 13px; border-radius: 2px; background: repeating-linear-gradient(45deg, #3a2a7a 0 3px, #4b3a96 3px 6px); border: 1px solid rgba(255, 255, 255, .7); }
.gf .gf-books { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 110px; }
.gf .gf-books span { min-width: 18px; padding: 1px 4px; border-radius: 6px; background: var(--gold, #f2c14e); color: #3b2c00; font-size: 11px; font-weight: 800; text-align: center; }
.gf .gf-askable { cursor: pointer; }
.gf .gf-askable .av { box-shadow: 0 0 0 3px rgba(242, 193, 78, .85); }
.gf .gf-picked .av { box-shadow: 0 0 0 4px var(--gold, #f2c14e), 0 0 18px rgba(242, 193, 78, .7); }
.gf .gf-empty { text-align: center; padding: 18px 8px; color: rgba(255, 255, 255, .75); }
.gf .gf-ask { display: grid; gap: 10px; margin-top: 8px; }
.gf .gf-row { display: grid; gap: 6px; }
.gf .gf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gf .gf-chip { display: inline-flex; align-items: baseline; gap: 5px; min-width: 44px; min-height: 44px; padding: 6px 12px; justify-content: center; border-radius: 12px; border: 2px solid var(--panel-line, rgba(255, 255, 255, .2)); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-weight: 800; font-size: 18px; cursor: pointer; }
.gf .gf-chip.wide { font-size: 15px; }
.gf .gf-chip small { font-size: 11px; opacity: .75; font-weight: 600; }
.gf .gf-chip.on { border-color: var(--gold, #f2c14e); background: rgba(242, 193, 78, .22); }
.gf .gf-chip:focus-visible { outline: 3px solid var(--gold, #f2c14e); outline-offset: 2px; }
.gf .gf-final { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.gf .gf-final li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.gf .gf-final li.win { background: rgba(242, 193, 78, .2); }

/* Short phones: the table, the ask and the hand share one screen. */
@media (max-width: 520px) and (max-height: 700px) {
  .gf .pt { --pt-min: 204px; }
  .gf .wz-status { min-height: 0; padding: 6px 12px; }
  .gf .gf-ask { gap: 6px; margin-top: 4px; padding: 8px 10px; }
  .gf .gf-row { gap: 0; }
  .gf .gf-row .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* still read by screen readers */
  .gf .gf-chip small { display: none; }
  .gf .gf-chips { gap: 4px; }
  .gf .gf-chip { min-width: 44px; min-height: 38px; padding: 2px 8px; }
  .gf .gf-ask .btn.big { min-height: 44px; padding-block: 8px; font-size: 16px; }
  .gf .gf-event { font-size: 14px; margin-top: 2px; }
}
@media (max-width: 520px) { .gf .gf-stock .card { --cw: calc(var(--cw0, 62px) * .5); } }
@media (max-width: 520px) and (max-height: 700px) { .gf .gf-stock .gf-pile { display: none; } .gf .gf-stock b { font-size: 22px; } } /* on a short phone the stock is just its count, so it never covers a seat plate */
@media (max-width: 520px) and (min-height: 701px) { .gf .gf-stock .card { --cw: calc(var(--cw0, 62px) * .6); } }
.gf .gf-event-bar { margin: 8px 0 0; max-width: none; padding: 8px 12px; text-align: center; border-radius: 12px; background: var(--panel); border: 1px solid var(--panel-line); font-size: 13px; color: var(--ink); }
