/* Pinochle (js/games/pinochle.js). The table and cards are Solitaire's (css/games/solitaire.css)
 * and the trick-game layout and panels are css/games/tricks.css, both loaded with this file. */
.pn-room .tk-panel { max-width: min(34rem, calc(100% - 16px)); }
.pn-bid, .pn-pass { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); width: min(100%, 26rem); }
.pn-bid b { font-weight: 600; }

/* the bid: −10, the amount, +10 */
.pn-stepper { display: flex; align-items: center; justify-content: center; gap: var(--space-3); }
.pn-step { min-width: 4.2rem; min-height: var(--tap-min, 48px); font-size: 1rem; }
.pn-step:disabled { opacity: .4; }
.pn-val { min-width: 4.5rem; text-align: center; font-size: 1.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pn-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); width: 100%; }
.pn-actions .btn { flex: 1 1 8rem; }

/* naming trumps: four suits with their meld */
.pn-suits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.pn-suit { min-height: 3.4rem; gap: .55rem; padding: .3rem .6rem; justify-content: flex-start; text-align: left; height: auto; border-radius: var(--radius-md); }
.pn-suit > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.pn-suit small { font-size: .85rem; color: var(--ink-muted); }
.pn-pip { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 6px; background: #fff; flex: none; vertical-align: middle; }
.pn-pip svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.pn-hinted { box-shadow: 0 0 0 3px var(--positive) !important; }
.pn-quiet p { background: var(--surface-200); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .6rem 1rem; }

/* cards written small: "A 10 K Q J" and the suit */
.pn-cards { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; padding: .05rem .3rem .05rem .45rem; border-radius: 6px; background: #fff; color: #16181D; font-weight: 600; font-size: .85rem; box-shadow: inset 0 0 0 1px #C9CCD1; }
.pn-cards.sc-s1, .pn-cards.sc-s2 { color: #C62828; }
.pn-cards .pn-pip { width: 1.1rem; height: 1.1rem; background: none; }
.sc-four .pn-cards.sc-s0 { color: #1B7F3B; }
.sc-four .pn-cards.sc-s1 { color: #1C5BD6; }

/* the meld: two sides, two players each */
.pn-room .tk-panel.pn-meldpanel { width: min(46rem, calc(100% - 16px)); max-width: min(46rem, calc(100% - 16px)) !important; }
.pn-meld { overflow-wrap: normal; word-break: normal; }
.pn-meld { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); width: 100%; text-align: left; }
.pn-meld h2, .pn-meld > .tk-sub { text-align: center; }
.pn-meld .btn { align-self: center; }
.pn-melds { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.pn-side { display: flex; flex-direction: column; gap: .35rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-md); }
.pn-seat p { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.pn-seat.is-you p b { text-decoration: underline; text-underline-offset: 3px; }
.pn-seat ul { list-style: none; margin: .15rem 0 .2rem; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.pn-seat li { display: grid; grid-template-columns: minmax(0, 1fr) auto 2.6rem; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink); }
.pn-seat li b { text-align: right; font-weight: 600; }
.pn-seat li.pn-none { display: block; color: var(--ink-muted); }
.pn-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .35rem; font-size: .95rem; }
@media (min-width: 640px) { .pn-melds { grid-template-columns: 1fr 1fr; } }
/* the meld list scrolls inside the panel; the Play button stays in view */
.tk-panel.pn-meldpanel { overflow: hidden; }
.pn-meldpanel .pn-meld { flex: 1 1 auto; min-height: 0; }
.pn-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.pn-meld .btn { flex: none; }
/* end of the hand: five columns, so a little tighter on phones */
.pn-room .tk-roundend { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); max-width: 100%; }
.pn-room .tk-scores th, .pn-room .tk-scores td { padding: .3rem .4rem; }
.pn-room .tk-scores td:first-child { white-space: normal; }
@media (max-width: 480px) { .pn-room .tk-scores { font-size: .85rem; } .pn-room .tk-scores th, .pn-room .tk-scores td { padding: .3rem .25rem; } }
