/* Yahtzee board table tweaks */
.yb-table { table-layout: auto; width: auto; display: inline-table; }
/* Ensure feature-specific table width override beats generic admin-table width */
.admin-table.yb-table { width: auto; }
/* Center all cells by default on the Yahtzee board */
.yb-table th, .yb-table td { text-align: center; }
/* When the board table also has admin-table, out-specify admin.css and keep center alignment for non-station cells */
.admin-table.yb-table th:not(.yb-station), .admin-table.yb-table td:not(.yb-station) { text-align: center; }
/* Post/label column (first column) stays left-aligned */
.yb-table .yb-station { text-align: left; white-space: nowrap; background: rgba(255,255,255,0.02); border-right: 1px solid var(--color-border); }
/* Accent rows (Deltakere header cell, Sum, Bonus, Totalt) */
.yb-table thead .yb-accent,
.yb-table tbody tr.yb-accent-row td { background: rgba(255,255,255,0.045); font-weight: 700; }
/* Last updated cell highlight */
.yb-table td.yb-last { background: rgba(255, 196, 0, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 196, 0, 0.35); }
/* Narrow player columns by default and allow click */
.yb-table .yb-col { width: 72px; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.yb-table .yb-col.yb-expanded { width: 180px; max-width: 260px; }
/* Highlight current player's entire column using same tone as row hover */
.yb-table .yb-current { background: rgba(255,255,255,0.03); }
/* Yahtzee board: selected/expanded column tint (transparent green) */
.yb-table .yb-selected { background: rgba(16,185,129,0.10); }

/* Yahtzee board: transient highlight for updated score/column */
@keyframes ybFlash {
  0% { background-color: rgba(227, 6, 19, 0.22); box-shadow: inset 0 0 0 1px rgba(227,6,19,0.55); }
  60% { background-color: rgba(227, 6, 19, 0.10); box-shadow: inset 0 0 0 1px rgba(227,6,19,0.35); }
  100% { background-color: transparent; box-shadow: inset 0 0 0 0 rgba(227,6,19,0); }
}
.yb-table .yb-flash,
.yb-table td.yb-last { animation: ybFlash 1s ease-out; }

/* Reset cells show X in red and bold for accessibility */
.yb-table td.yb-reset { color: #d32f2f; font-weight: 700; }
