.borjesson-board { --b-gold: #ecc58a; }
.b-seating { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.b-seating:has(.b-seat:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b-seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.b-seat.active { border-color: var(--accent); background: var(--accent-soft); }
.b-seat img { border-radius: 10px; }
.b-seat strong { font-size: 12px; max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.b-seat strong small { margin-left: 5px; font-size: 10px; color: var(--muted); }
.b-seat > span { color: var(--muted); font-size: 10px; }
.b-seat i { position: absolute; right: -8px; top: 32px; z-index: 1; color: var(--accent); font-style: normal; }
.b-seat:last-child i { display: none; }
.b-table { border: 1px solid var(--table-edge); border-radius: 22px; background: radial-gradient(ellipse at top, color-mix(in srgb, var(--table) 80%, #9b7654), var(--table) 75%); min-height: 350px; padding: 25px 20px; position: relative; overflow: hidden; }
.b-lobby { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 0; }
.b-lobby .table-wordmark { position: static; transform: none; }
.b-lobby h2 { font-size: 27px; }
.b-lobby p { font-size: 14px; }
.b-lobby .b-lobby-rules { font-size: 12px; max-width: 420px; }
.b-round-goal { display: flex; align-items: center; gap: 23px; text-align: left; padding: 21px 25px; border: 1px solid color-mix(in srgb, var(--b-gold) 24%, transparent); border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--b-gold) 10%, transparent), #00000012); }
.b-goal-art { position: relative; flex: none; width: 70px; height: 88px; display: grid; place-items: center; }
.b-goal-art .playing-card { width: 52px; height: 76px; transform: rotate(-9deg); box-shadow: 0 5px 10px #0002; }
.b-goal-art .playing-card + .playing-card { position: absolute; top: 9px; right: -3px; transform: rotate(9deg); }
.b-goal-art .card-corner { font-size: 10px; top: 4px; left: 4px; }
.b-goal-art .card-corner b { font-size: 16px; }
.b-goal-art .corner-bottom { top: auto; left: auto; bottom: 4px; right: 4px; }
.b-goal-art .card-pip { font-size: 28px; }
.b-goal-spark { position: absolute; top: -7px; right: -5px; color: var(--b-gold); font-size: 21px; }
.b-goal-copy { flex: 1; min-width: 0; }
.b-round-goal .eyebrow { font-size: 10px; letter-spacing: 1.3px; }
.b-round-goal .eyebrow > span { color: var(--muted); font-weight: 500; }
.b-round-goal h2 { font-size: 27px; margin: 4px 0 6px; }
.b-round-goal p { font-size: 14px; max-width: 420px; margin: 0; line-height: 1.6; }
.b-round-progress { display: flex; gap: 5px; margin-top: 13px; max-width: 150px; }
.b-round-progress span { flex: 1; height: 4px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 22%, transparent); }
.b-round-progress .done { background: color-mix(in srgb, var(--accent) 50%, transparent); }
.b-round-progress .current { background: var(--accent); }
.b-pass-status, .b-round-result { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding: 40px 0 18px; }
.b-pass-status > svg { color: var(--accent); }
.b-pass-status small, .b-trick-area > small { color: var(--muted); font-size: 11px; }
.b-trick-area { text-align: center; padding-top: 20px; }
.b-trick-label { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.b-trick { display: flex; justify-content: center; gap: 14px; padding: 17px 0; }
.b-trick-seat { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; max-width: 110px; }
.b-trick-seat > span:last-child { max-width: 100%; overflow-wrap: anywhere; font-size: 11px; color: var(--muted); }
.b-trick-seat.trick-winner > .playing-card { outline: 2px solid var(--accent); outline-offset: 3px; }
.b-trick-seat.trick-winner > span:last-child { color: var(--accent); font-weight: 700; }
.showing-result > p strong { color: var(--text); }
.b-trick .playing-card, .b-card-slot { width: 100%; height: auto; aspect-ratio: 2 / 3; }
.b-card-slot { display: grid; place-items: center; border: 1px dashed var(--muted); border-radius: 8px; opacity: .5; font-size: 12px; }
.b-card-slot.next { color: var(--accent); border-color: var(--accent); opacity: 1; }
.b-trick-area > p { font-size: 13px; margin-bottom: 5px; }
.b-hand { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px 7px; padding: 7px 0 12px; }
.b-hand-card { padding: 0; position: relative; border-radius: 7px; transition: transform 160ms ease; }
.b-hand-card:disabled { opacity: .6; }
.pass-hand .b-hand-card:disabled { opacity: .78; }
.b-hand-card .playing-card { width: 100%; height: auto; aspect-ratio: 2 / 3; }
.b-hand-card .card-corner { top: 5px; left: 5px; font-size: 10px; line-height: 1; }
.b-hand-card .card-corner b { font-size: 16px; }
.b-hand-card .corner-bottom { top: auto; left: auto; bottom: 5px; right: 5px; }
.b-hand-card .card-pip { font-size: 25px; }
.b-hand-card.legal { outline: 2px solid var(--accent); outline-offset: 2px; }
.b-hand-card.chosen { outline: 3px solid var(--accent); outline-offset: 2px; transform: translateY(-4px); }
.pass-check { position: absolute; top: -7px; right: -5px; display: grid; place-items: center; border-radius: 50%; width: 20px; height: 20px; background: var(--accent); color: var(--accent-ink); }
.pass-instruction { font-size: 13px; margin: 0 0 15px; }
.pass-submit { margin-top: 12px; }
.b-last-trick { margin-top: 12px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.b-last-trick summary { cursor: pointer; }
.b-last-trick summary strong { float: right; }
.b-last-trick > div { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; }
.b-last-trick p { font-size: 12px; }
.b-last-trick .b-last-trick-cards { display: flex; justify-content: center; gap: 16px; padding: 5px 0; }
.b-last-trick-cards .b-trick-seat { max-width: 70px; }
.b-last-trick-cards .playing-card { width: 100%; height: auto; aspect-ratio: 2 / 3; }
.b-last-trick-cards .card-corner { top: 5px; left: 5px; font-size: 11px; }
.b-last-trick-cards .card-corner b { font-size: 17px; }
.b-last-trick-cards .corner-bottom { top: auto; left: auto; bottom: 5px; right: 5px; }
.b-last-trick-cards .card-pip { font-size: 30px; }
.b-results-scroll { overflow-x: auto; }
.b-results table { border-collapse: collapse; width: 100%; margin-top: 16px; font-size: 11px; }
.b-results th, .b-results td { text-align: right; padding: 7px 5px; border-bottom: 1px solid var(--line); }
.b-results th:first-child { text-align: left; max-width: 80px; overflow-wrap: anywhere; }
.b-results thead { color: var(--muted); }
.game-picker { display: flex; gap: 8px; margin-bottom: 20px; }
.game-picker button { flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); font-size: 13px; }
.game-picker button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
@media (max-width: 760px) {
  .game-sidebar { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 22px; }
  .game-sidebar .score-panel, .game-sidebar .activity-panel, .game-sidebar .history-panel { padding: 22px 20px; border-radius: 16px; }
  .game-sidebar .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .game-sidebar h3 { font-size: 19px; margin-bottom: 18px; }
  .game-sidebar .score-row { font-size: 15px; gap: 12px; padding: 15px 0; align-items: center; }
  .game-sidebar .score-row .grow { overflow-wrap: anywhere; }
  .game-sidebar .score-row .grow small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; }
  .game-sidebar .score-row > strong { font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; text-align: right; flex: none; }
  .game-sidebar .score-row > strong small { display: block; font-size: 11px; margin-top: 4px; }
  .game-sidebar .activity-panel li { display: flex; font-size: 14px; line-height: 1.7; margin-top: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .game-sidebar .activity-panel li:last-child { border-bottom: 0; padding-bottom: 0; }
  .game-sidebar .activity-dot { margin-top: 9px; width: 6px; height: 6px; }
  .game-sidebar .b-results table { font-size: 13px; }
  .game-sidebar .b-results th, .game-sidebar .b-results td { padding: 12px 7px; }
  .game-sidebar > .button, .game-sidebar .table-theme-link { font-size: 14px; min-height: 48px; }
  .game-sidebar .history-panel summary { font-size: 15px; }
  .game-sidebar .history-panel p { font-size: 14px; }
  .b-table { padding: 20px 12px; min-height: 310px; }
  .b-last-trick { padding: 16px; font-size: 14px; }
  .b-last-trick-cards .b-trick-seat > span:last-child { font-size: 12px; line-height: 1.5; }
  .b-trick { gap: 9px; }
  .b-hand { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
  .b-hand-card:disabled { opacity: .8; }
  .b-hand-card .card-corner { font-size: 13px; top: 6px; left: 6px; }
  .b-hand-card .card-corner b { font-size: 21px; }
  .b-hand-card .corner-bottom { top: auto; left: auto; right: 6px; bottom: 6px; }
  .b-hand-card .card-pip { font-size: 33px; }
  .b-trick .card-corner { font-size: 12px; top: 5px; left: 5px; }
  .b-trick .card-corner b { font-size: 20px; }
  .b-trick .corner-bottom { top: auto; left: auto; right: 5px; bottom: 5px; }
  .b-round-goal { gap: 16px; padding: 17px 14px; border-radius: 13px; }
  .b-goal-art { width: 54px; }
  .b-goal-art .playing-card { width: 47px; height: 70px; }
  .b-goal-spark { right: -4px; font-size: 17px; }
  .b-round-goal h2 { font-size: 23px; line-height: 1.2; }
  .b-round-goal p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .b-hand-card { transition: none; } }
@media (max-width: 360px) {
  .b-hand { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
