@font-face{font-family:'Assistant';font-weight:400;font-style:normal;font-display:swap;src:url(/fonts/assistant-400.ttf) format('truetype')}
@font-face{font-family:'Assistant';font-weight:600;font-style:normal;font-display:swap;src:url(/fonts/assistant-600.ttf) format('truetype')}
@font-face{font-family:'Assistant';font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/assistant-700.ttf) format('truetype')}
@font-face{font-family:'Assistant';font-weight:800;font-style:normal;font-display:swap;src:url(/fonts/assistant-800.ttf) format('truetype')}
@font-face{font-family:'Secular One';font-weight:400;font-style:normal;font-display:swap;src:url(/fonts/secular-one-400.ttf) format('truetype')}
/* friend-d3.css - friend-mode (2p, 4p, coins) additions to the Direction 3 look: bigger turn label + captured-card piles (backs only, real counts). */
body.in-game{font-family:Assistant,Arial,sans-serif}
body.in-game .game>.table-label #turn{font-size:21px;font-weight:800;color:#3d2616;text-shadow:0 1px 0 #fff8}
.capture-pile{position:absolute;z-index:6;text-align:center;font-family:Assistant,sans-serif;pointer-events:none}
.capture-pile .stack{position:relative;display:block;width:20px;height:30px;margin:0 auto}
.capture-pile .stack i{position:absolute;inset:0;display:block;border:1.5px solid #214b8e;border-radius:3px;background:repeating-linear-gradient(45deg,#2159a3,#2159a3 3px,#6599df 3px,#6599df 6px)}
.capture-pile .stack i:nth-child(1){transform:translate(4px,-4px)}
.capture-pile .stack i:nth-child(2){transform:translate(2px,-2px)}
.capture-pile b{display:block;margin-top:5px;font-size:12px;font-weight:800;color:#3d2616}
.capture-pile.pile-opponent{top:60px;right:98px}
.capture-pile.pile-me{bottom:84px;right:26px}
body.four-mode .capture-pile.pile-opponent{top:172px}

/* Match over (rematch offered): move both piles to the free top corners so they never overlap the result panel */
body:has(#rematch) .capture-pile.pile-opponent{top:48px;right:64px}
body:has(#rematch) .capture-pile.pile-me{top:48px;bottom:auto;right:auto;left:64px}

/* Coins page: keep the fixed coin bar from covering the bottom stats line */
body.in-game:has(.bc-bar) .game{height:calc(100dvh - 64px)}

/* Short landscape (e.g. 568x320): keep own pile clear of the right-hand character */
@media (max-height:340px){
  .capture-pile.pile-me{right:96px}
}

/* Short landscape: give the table-stage room so table cards, dealer notice and hand are readable (page scrolls) */
@media (max-height:340px){
  body.in-game .game{min-height:560px}
  body.in-game:has(.bc-bar){padding-bottom:64px}
}
