/* Window Bingo only: a compact paper game card inside the existing Travel Games shell. */
.bingo-page { --bingo-navy: #0a3161; --bingo-cream: #e8d4b4; --bingo-red: #bf0d3e; }
.bingo-sheet { width: min(100%, 740px); margin: 0 auto; padding: 20px; box-sizing: border-box; color: var(--bingo-navy); background: #f8edda; border: 1px solid #c5aa82; border-top: 5px solid var(--bingo-red); box-shadow: 0 8px 22px #0003; }
.bingo-sheet-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.bingo-sheet-head p { margin: 0; font-family: Georgia, serif; font-size: 1.12rem; }
.bingo-back { color: var(--bingo-navy); font-size: .85rem; text-underline-offset: 3px; }
.bingo-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.bingo-stampers { border: 0; padding: 0; margin: 0; min-width: 0; }
.bingo-stampers legend, .bingo-ink { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.bingo-stampers legend { margin-bottom: 6px; }
#bingo-stampers { display: flex; gap: 5px; }
#bingo-stampers button { width: 48px; min-height: 58px; display: grid; place-items: center; padding: 5px; border: 1px solid #bda680; background: #fff9ed; border-radius: 3px; cursor: pointer; }
#bingo-stampers button[aria-pressed="true"] { outline: 2px solid var(--bingo-navy); outline-offset: 1px; background: var(--bingo-cream); box-shadow: inset 0 -3px var(--bingo-navy); }
#bingo-stampers svg { width: 30px; height: 30px; }
.bingo-ink { position: relative; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 10px; background: #fff9ed; border: 1px solid #bda680; cursor: pointer; }
#bingo-ink-swatch { width: 26px; height: 26px; border: 1px solid #0a3161; border-radius: 50%; }
.bingo-ink input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.bingo-board { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 5px; }
.bingo-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 108px; padding: 7px 5px; color: var(--bingo-navy); background: linear-gradient(145deg,#fffcf4,#eee0c7); border: 1px solid #bda680; border-radius: 2px; font: 600 .94rem/1.15 Georgia,serif; cursor: pointer; box-shadow: inset 0 0 0 2px #fff6; }
.bingo-tile:hover { border-color: var(--bingo-navy); }
.bingo-tile-label { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.bingo-imprint { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; transform: rotate(-9deg); opacity: .9; }
.bingo-imprint svg { width: 100%; height: 100%; filter: drop-shadow(0 0 .6px #0a3161); }
.is-stamped .bingo-imprint { animation: bingo-press 160ms ease-out; }
.bingo-free { background: var(--bingo-navy); }
.bingo-free img { width: 92%; max-width: 100px; height: auto; }
.bingo-free .bingo-imprint:has(svg) { background: #f8edda; border-radius: 50%; padding: 2px; box-sizing: border-box; }
.bingo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bingo-actions button { min-height: 44px; font-size: .78rem; }
.bingo-status { margin: 10px 0 0; min-height: 1.2em; font-size: .8rem; line-height: 1.4; }
.bingo-page button:focus-visible, .bingo-back:focus-visible, .bingo-ink:focus-within, .bingo-win button:focus-visible { outline: 3px solid #bf0d3e; outline-offset: 3px; }
.bingo-win { color: #0a3161; background: #f8edda; border: 2px solid #bf0d3e; padding: 24px; width: min(420px,calc(100% - 40px)); box-sizing: border-box; max-height: calc(100dvh - 40px); overflow: auto; box-shadow: 0 10px 40px #0005; }
.bingo-win::backdrop { background: #071c35a6; }
.bingo-win [hidden] { display: none; }
.bingo-win a:focus-visible { outline: 3px solid #bf0d3e; outline-offset: 3px; }
.bingo-win h2 { font: bold 2.7rem Georgia,serif; margin: 8px 0; }
.bingo-win > p { line-height: 1.5; }
.bingo-win .eyebrow { color: #bf0d3e; }
.bingo-toast {
  position: fixed; top: 14px; right: 14px; z-index: 100;
  max-width: calc(100vw - 28px); box-sizing: border-box;
  margin: 0; padding: 10px 14px; pointer-events: none;
  color: #0a3161; background: #f8edda; border-left: 3px solid #bf0d3e;
  box-shadow: 0 3px 12px #0002; font: bold .85rem/1.4 Georgia,serif;
  animation: bingo-toast-fade 1900ms ease both;
}
.bingo-toast[hidden] { display: none; }
@keyframes bingo-toast-fade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bingo-press { from { transform: rotate(-9deg) scale(1.18); opacity: .4; } to { transform: rotate(-9deg) scale(1); opacity: .9; } }
@media (max-width: 600px) {
  .bingo-sheet { padding: 10px; }
  .bingo-sheet-head { gap: 5px; margin-bottom: 10px; }
  .bingo-sheet-head p { font-size: 1rem; }
  .bingo-tools { gap: 9px; margin-bottom: 12px; }
  .bingo-board { gap: 3px; }
  .bingo-tile { min-height: 86px; padding: 5px 2px; font-size: .78rem; font-weight: 500; }
  .bingo-imprint { width: 28px; height: 28px; flex-basis: 28px; }
  .bingo-actions { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .is-stamped .bingo-imprint { animation: none; } }
@media (prefers-reduced-motion: reduce) { .bingo-toast { animation: none; } }
/* Sight artwork only; the original center mark and game controls retain their treatment. */
.bingo-tile:not(.bingo-free) { gap: 3px; }
.bingo-sight-box { position: relative; display: grid; place-items: center; width: 100%; height: 58px; flex: 0 0 58px; }
.bingo-sight { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.bingo-sight[hidden] { display: none; }
.bingo-sight-box .bingo-imprint { position: absolute; inset: 0; margin: auto; z-index: 1; width: 46px; height: 46px; }
.is-stamped .bingo-sight { opacity: .65; }
.is-stamped .bingo-sight-box .bingo-imprint { background: #fff9ed66; border-radius: 50%; padding: 1px; box-sizing: border-box; }
@media (max-width:600px) {
  .bingo-board { grid-auto-rows: 1fr; }
  .bingo-sight-box { height: 40px; flex-basis: 40px; }
  .bingo-sight-box .bingo-imprint { width: 32px; height: 32px; }
}

/* Compact final stamp family; the dauber is a decorative pointer cue only. */
#bingo-stampers button span { font: 700 9px/1.2 system-ui,sans-serif; white-space: nowrap; color: var(--bingo-navy); }
.bingo-tile { position: relative; }
.bingo-dauber { display: none; position: absolute; top: var(--dauber-y, 3px); left: var(--dauber-x, 3px); width: 20px; height: 20px; z-index: 2; color: var(--bingo-navy); pointer-events: none; transform: rotate(-25deg); background: #fff9eddd; border-radius: 50%; }
.bingo-dauber svg { width: 100%; height: 100%; }
@media (hover:hover) and (pointer:fine) {
  .bingo-tile.has-dauber:not(.is-stamped):hover { cursor: none; }
  .bingo-tile.has-dauber:not(.is-stamped):hover .bingo-dauber { display: block; }
}
