/* PokerIndex mobile overview: the three-card flop, then independent turn and river.
   Load after the existing home/board styles. Canonical raster assets and desktop
   card motion remain authoritative; this patch changes only the narrow layout. */
@media (max-width: 760px) {
  body.pk-app #app .hba-board.pb-board.ob-living-board {
    container-type: inline-size;
    display: grid;
    grid-template-columns: 141fr 145fr;
    column-gap: 12px;
    row-gap: 14px;
    padding: 3px 0 6px;
    overflow: visible;
    scroll-snap-type: none;
    overscroll-behavior-x: auto;
    touch-action: pan-y;
    align-items: start;
    scroll-margin-block: 138px 20px;
  }

  body.pk-app #app .hba-board.pb-board.ob-living-board .ob-flop {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    flex: none;
    scroll-snap-align: none;
  }

  body.pk-app #app .hba-board.pb-board.ob-living-board .ob-flop-cards {
    display: grid;
    grid-template-columns: 146fr 141fr 139fr;
    gap: 8px;
    width: 100%;
    position: relative;
  }

  body.pk-app #app .hba-board.pb-board.ob-living-board .ob-slot[data-board-card] {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
    height: calc((100cqw - 12px) * 207 / 286 + 24px);
    aspect-ratio: auto;
    scroll-snap-align: none;
  }

  body.pk-app #app .hba-board.pb-board.ob-living-board .ob-flop .ob-slot[data-board-card] {
    height: calc((100cqw - 16px) * 207 / 426 + 24px);
  }

  /* Native-width captions stay readable even where text baked into the
     protected image becomes small. They share the original trigger hit area. */
  body.pk-app #app .hba-board.pb-board.ob-living-board .ob-front-face {
    height: calc(100% - 24px);
    overflow: visible;
  }

  body.pk-app #app .hba-board.pb-board.ob-living-board .ob-front-face > strong.hba-accessible {
    display: block;
    position: absolute !important;
    inset: 100% 0 auto;
    width: 100% !important;
    height: 24px !important;
    padding: 6px 0 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
    color: var(--hba-ivory, #eee6d6);
    font: 500 13px/18px Manrope, Arial, sans-serif;
    letter-spacing: 0;
    text-align: center;
  }

  body.pk-app #app .hba-board.pb-board.ob-living-board .ob-entry .ob-card-copy {
    padding: 12px 10px;
  }

  body.pk-app #app .hba-board.pb-board.ob-living-board .ob-entry .ob-desktop-menu {
    inset: auto 8px 7px;
  }

  body.pk-app #app .hba-board.pb-board.ob-living-board .ob-entry .ob-desktop-menu a {
    min-height: 44px;
    padding-block: 7px;
    font-size: 12px;
    line-height: 1.3;
  }

  body.pk-app #app .hba-board.pb-board.ob-living-board .ob-front-trigger:focus-visible,
  body.pk-app #app .hba-board.pb-board.ob-living-board .ob-back a:focus-visible {
    outline: 2px solid #ffe0aa;
    outline-offset: 3px;
  }
}
